Only because I don't know how to make it tell the difference on this part where it sends the server trigger, and as I see it the only other place to tell it what to do. Its clientside obviously, checking to see which row they picked, ect ect, sending the this.vars for reply2 or reply3 being false or true, and the npcid set on the level npc (which btw is working fine xD).
PHP Code:
function Npc_Chat_ItemList.onDblClick(entryid,entrytext,entryindex) {
if (entryid == 0)
{
if (entrytext != "")
{
triggerServer("weapon", this.name, "getReply", entryid, this.mynpcid, this.replyarray, this.replyarray2);
}
}
if (entryid == 1)
{
if (entrytext != "")
{
triggerServer("weapon", this.name, "getReply", entryid, this.mynpcid, this.replyarray, this.replyarray2);
}
}
if (entryid == 2)
{
if (entrytext != "")
{
triggerServer("weapon", this.name, "getReply", entryid, this.mynpcid, this.replyarray, this.replyarray2);
}
}
if (entryid == 3)
{
if (entrytext != "")
{
triggerServer("weapon", this.name, "getReply", entryid, this.mynpcid, this.replyarray, this.replyarray2);
}
}
}