508 how to add item with your npc dialogue
I don't care if someone made this already atleast this is recent.
Ok first, you go to npcoption1,
then under
Code:
switch (p.clickId) {
Put
Code:
case ###:
p.frames.showChatboxInterface(p, 241);
p.frames.animateInterfaceId(p, 9827, 241, 2);
p.frames.setNPCId(p, npc_id, 241, 2);
p.frames.setString(p, "npc_name", 241, 3);
p.frames.setString(p, "npc_message", 241, 4);
Engine.playerItems.addItem(p, item_id, 1);
break;
Just edit the npc name, id the case number, the npc message and the item id and your done.