hey guys so ive been working on this miniquest for some time now, i got most of it figured it out on my own, it requires the player to grab ned a bottle of rum from a crate in his cellar. i have it set so when a player talks to ned he asks why there in his house, and then gets to the point that he wants u to grab him his rum, once the player goes down and grabs the rum then they go talk to him again he opens up a new dialouge and the bottle is taken from the players inventory (kinda like oh thanks for the bottle) but for some weird reason once one player gives him his bottle it seems for every other player (or acc i just made) ned talks to them as if they got him the bottle to, so it just dosnt quite make sence. heres my actionhandler to trigger the dialouge with the bottle:
Code:
case 918:
c.getDH().sendDialogues(420, npcType);
if(c.getItems().playerHasItem(8940, 1)) {
c.getItems().deleteItem(8940, 1);
} else {
c.getDH().sendDialogues(428, npcType);
}
break;
and if necessary heres the dialogue
Code:
case 420:
sendNpcChat2("Hey there Friend!","Might i ask why your in my house?", c.talkingNpc, "Al");
c.nextChat = 421;
break;
case 421:
sendPlayerChat1("Oh You know, Just clicking on random door's intruding on things.");
c.nextChat = 422;
break;
case 422:
sendNpcChat2("HAHAHA i like you!","You Have quite a since of humour!", c.talkingNpc, "Al");
c.nextChat = 423;
break;
case 423:
sendPlayerChat1("HaHa yeah, I guess i do. Is there anything you need help with?");
c.nextChat = 424;
break;
case 424:
sendNpcChat2("Well now that you mention it..","Could you grab me a bottle from the cellar?", c.talkingNpc, "Al");
c.nextChat = 425;
break;
case 425:
sendPlayerChat1("Im looking for an Adventure, Im not your bartender!");
c.nextChat = 426;
break;
case 426:
sendNpcChat2("Ohh but wait! Its not just an ordinary cellar..","No, no its a scary place, ive been hearing lots of noises", c.talkingNpc, "Al");
c.nextChat = 427;
break;
case 427:
sendNpcChat2("Grab me some Red rum from the cellar and i will"," tell you all about it.", c.talkingNpc, "Al");
c.nextChat = 0;
break;
case 428:
sendNpcChat2("Thank you very much Friend!","now as i was saying, there seems to be alot of...", c.talkingNpc, "Al");
c.nextChat = 429;
break;
case 429:
sendNpcChat2("Weird stuff happening down there, I was down there yesterday"," and something caught my eye..", c.talkingNpc, "Al");
c.nextChat = 430;
break;
Could someone please tell me an easy fix or what i did/ didnt do right, Thanks