I'm trying to make my own script I have got some kind of a problem i don't really know how to solve...
if (!LEVERAREA.contains(myPlayer())){
localWalker.walkPath(TOLEVER);
if (LEVERAREA.contains(myPlayer())){
lever.interact("Pull");
if (dialogues.isPendingContinuation()){
dialogues.clickContinue();
if (dialogues.isPendingOption()){
dialogues.selectOption("Yes I'm brave.");
if (players.myPlayer().isAnimating()){
sleep(random(1000,1500));
}
}
}
}
}
So it does walk to the LEVERAREA and when i manually leave it, it walks back.
But when it is AT the LEVERAREA it does not pull the lever...