r3nnoc Posted November 19, 2020 Share Posted November 19, 2020 so i have this bit of code this is supposed to have the player talk to the NPC in karamja and pay the fare but he keeps walking away from the customs officer. the webwalk seems to be looping but I don't know why. the if statement has animation and dialogue checks so the code shouldn't execute ??? Position pos1 = new Position(2943, 3146, 0); NPC sailor = getNpcs().closest(3648); if (getInventory().isFull() && (!myPlayer().isAnimating() && (!getDialogues().inDialogue()))) { getSettings().setRunning(true); getWalking().webWalk(pos1); if (sailor != null) { sailor.interact("Pay-Fare"); sleep(getRandomNumber(1000, 3000)); if (dialogues.isPendingContinuation()) { dialogues.clickContinue(); } any help would be appreciated Quote Link to comment Share on other sites More sharing options...
Khaleesi Posted November 19, 2020 Share Posted November 19, 2020 2 hours ago, r3nnoc said: so i have this bit of code this is supposed to have the player talk to the NPC in karamja and pay the fare but he keeps walking away from the customs officer. the webwalk seems to be looping but I don't know why. the if statement has animation and dialogue checks so the code shouldn't execute ??? Position pos1 = new Position(2943, 3146, 0); NPC sailor = getNpcs().closest(3648); if (getInventory().isFull() && (!myPlayer().isAnimating() && (!getDialogues().inDialogue()))) { getSettings().setRunning(true); getWalking().webWalk(pos1); if (sailor != null) { sailor.interact("Pay-Fare"); sleep(getRandomNumber(1000, 3000)); if (dialogues.isPendingContinuation()) { dialogues.clickContinue(); } any help would be appreciated Because you keep walking every time before you interact with the npc.. Might wanna do some check where your player is located. Quote Link to comment Share on other sites More sharing options...
PurpGaming Posted November 20, 2020 Share Posted November 20, 2020 Shouldn't there be a function, for example if 1square from npc id then interact else move to npc? Quote Link to comment Share on other sites More sharing options...