Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function On_Gossip(unit, event, pPlayer)
- unit:GossipCreateMenu(3000, pPlayer, 0)
- unit:GossipMenuAddItem(2, "Enter Battle!", 1, 0)
- if(intid == 3) then
- pPlayer:Teleport(0, Coords)
- unit:FullCastSpellOnTarget(SpellID, pPlayer)
- pPlayer:SendBroadcastMessage("|cffE4287CBeware you enter the battle!")
- end
- RegisterUnitGossipEvent(<NPCID>, 1, "On_Gossip")
- RegisterUnitGossipEvent(<NPCID>, 2, "Gossip_Submenus")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement