I'm trying to make it so that if you talk to the Lumbridge guide, and questOneStage == 2, then it removes 3 items.
Here's my code for the dialogue:
Code:
case 5:
if(c.questOneStage == 0) {
sendNpcChat4("I'm the Lumbridge Guide!",
"And HonorRealm,.. Well, you're in it!",
"You look ready for a quest!",
"Are you?", c.talkingNpc, "Lumbridge Guide");
} else if(c.questOneStage == 2) {
sendStatement("The Lumbridge Guide takes the items.");
c.dialogueAction = 7;
}
c.nextChat = 6;
break;
And here's "dialougeAction 7":
Code:
case 7:
c.getItems().deleteItem(436, c.getItems().getItemSlot(436), 1);
c.getItems().deleteItem(438, c.getItems().getItemSlot(438), 1);
c.getItems().deleteItem(1511, c.getItems().getItemSlot(1511), 1);
break;
Now, it sends the stament in the dialogue box, but doesn't remove the items from the player. Also, clicking "click here to continue..." on the dialogue does nothing. Any ideas?