Hi guys,I'm doing an event for my server,and I'm stucked in this gossip script.
The npcs after you click on the option "We're ready to Start" he must yell "Let's go" and then do the function Registered,but he stops here,doesn't do the other functions.
Here's the code:
Code:
function Salvatore_Gossip(unit, event, player)
unit:GossipCreateMenu(104, player, 0)
unit:GossipMenuAddItem(0,"We're ready toStart", 4, 0)
unit:GossipSendMenu(player)
end
function Salvatore_Submenus(unit, event, player, id, intid, code)
if(intid == 4) then
unit:SendChatMessage(14,0,"Let's go!")
unit:RegisterEvent("Emote_Salvatore", 5000,1)
unit:RegisterEvent("Yell_Salvatore", 7000,1)
player:GossipComplete()
end
end
function Emote_Salvatore(unit,Event)
unit:SendChatMessage(42,0,"Lieutenant Sawer in 3 seconds!")
end
function Yell_Salvatore(unit,Event)
unit:SendChatMessage(14,0,"You will dye!")
unit:MoveTo(5845.81,608.71,650.90,0.00)
end
RegisterUnitGossipEvent(85788, 1, "Salvatore_Gossip")
RegisterUnitGossipEvent(85788, 2, "Salvatore_Submenus")