Jump to content

d0zza

Scripter II
  • Posts

    780
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    100%

Everything posted by d0zza

  1. You can have a counter that you use as the element number for the array. Increment the counter every time a trade is completed.
  2. Yo I'm trying to use a conditional webWalk event but whenever the condition is met and the webWalk is terminated the script will do what it's supposed to (eat in this case) but then never execute the event again. walkToSpot.setBreakCondition(new Condition() { @Override public boolean evaluate() { return getState() == State.EAT; } }); log("Walking to spot"); execute(walkToSpot); //executing the event That's my code. When it goes back to the walk state it just spams "Walking to spot" in the logger. What am I doing wrong?
  3. Nah mate this was while on karamja but it seems to be fixed now
  4. Hey boys, I know the update just happened which is why everything is broken but I haven't seen a post about this and thought I'd make one to inform the developers just in case. dialogue.inDialogue() always returns true now no matter if the character is in dialogue or not.
  5. Hmm I'm not sure then, but why are you trying to simulate the space key being held down? If it's for when you're talking to npcs look into the dialogue section of the API
  6. I'm not really sure what you're asking in the op but you can use Writer and Reader to write and read to files respectively. Then you can use this information to select where to start the script from. For example write the number 5 to a file, then when you run the script again read that file and you know to start from point 5.
  7. There's a keyboard section in the API. getKeyboard().pressKey(int keyCode) When you want to release the key do: getKeyboard().releaseKey(int keyCode)
×
×
  • Create New...