-
Posts
7 -
Joined
-
Last visited
-
Feedback
0%
Posts posted by jeremy4444
-
-
I will try that...
-
I know what I'm doing wrong but I don't know the solution. player.isInCombat doesn't work.
Could I do:else(player.isInCombat()) { Wait until player is out of combat }
I'm not familiar with the API and I'm not really sure how I go about finding the bits and pieces I need for my script. The API website page is really confusing and hard to find exactly what I "think" I'm looking for.
@Override public int onLoop() { NPC manWoman = npcs.closest("Man", "Woman"); if(manWoman != null){ manWoman.interact("Attack"); } return 100; }
If Player is in Combat, Wait
in Scripting Help
Posted · Edited by jeremy4444
Thank you, it works, I'm going to change Return to 1500msec because it's spam clicking them. Also, they're inside a building, sometimes outside, I need something like:
If(manWoman.isUnreachable && doorObject.isClosed)
open door;
If you know any good tutorials for complete beginners, I will definitely read them. I feel bad for basically asking you to make this script for me.