Good morning everyone (GMT+1).
I'm currently studying program developing in The Netherlands. Which means i can just program OSbot scripts at school
A classmate/friend of mine challenged me to make a tutorial island script, so he can do the tutorial that he doesn't want to do with hand.
I know there are scripts for Tutorial Island, but i'm making this for my own knowledge and will not post the script on the forums..
Now my question is: MyPlayer keeps clicking the guide. Like, spam clicking. I tried a lot of things to solve this.
At first i was like: I'm going to add a sleep timer. But this sleeps the whole script, and that's what we don't want.
Im clueless now lol.
This is my code:
if (spawnArea.contains(myPlayer())) {
NPC guide = npcs.closest("RuneScape Guide");
if(guide != null && !myPlayer().isInteracting(guide)){
guide.interact("Talk-To");
// Need to do something here
}
if(guide != null && myPlayer().isInteracting(guide)) {
dialogueGuide();
}