Simonfrisk
29-03-11, 01:26 AM
Hello guys, i have just downloaded " Broxxys guide npc "
i have some problem with it.
Here is the script:
---Made by noobcraft----
local npcid = 400009
function NPC_main_menu(pUnit, player)
pUnit:GossipCreateMenu(3543, player, 0)
pUnit:GossipMenuAddItem(0, "What do i do in this server?", 4, 0)
pUnit:GossipSendMenu(player)
end
function NPC_on_gossip_talk(pUnit, event, player)
NPC_main_menu(pUnit, player)
end
function NPC_on_gossip_select(pUnit, event, player, id, intid, code)
if(intid == 4) then
pUnit:SendChatMessage(12, 0, "Messege")
player:GossipComplete()
end
end
RegisterUnitGossipEvent(npcid, 1, "NPC_on_gossip_talk")
RegisterUnitGossipEvent(npcid, 2, "NPC_on_gossip_select"
Anyway, it's working when i only got 1 thing in the menu, but
if i am going to add another thing in menu, example " Donation Support "
then " Donation Support " working, & the old one stops working.
Anyone as can help me ? :p
i have some problem with it.
Here is the script:
---Made by noobcraft----
local npcid = 400009
function NPC_main_menu(pUnit, player)
pUnit:GossipCreateMenu(3543, player, 0)
pUnit:GossipMenuAddItem(0, "What do i do in this server?", 4, 0)
pUnit:GossipSendMenu(player)
end
function NPC_on_gossip_talk(pUnit, event, player)
NPC_main_menu(pUnit, player)
end
function NPC_on_gossip_select(pUnit, event, player, id, intid, code)
if(intid == 4) then
pUnit:SendChatMessage(12, 0, "Messege")
player:GossipComplete()
end
end
RegisterUnitGossipEvent(npcid, 1, "NPC_on_gossip_talk")
RegisterUnitGossipEvent(npcid, 2, "NPC_on_gossip_select"
Anyway, it's working when i only got 1 thing in the menu, but
if i am going to add another thing in menu, example " Donation Support "
then " Donation Support " working, & the old one stops working.
Anyone as can help me ? :p