Untitled
By: a guest | Mar 21st, 2010 | Syntax:
Lua | Size: 0.75 KB | Hits: 81 | Expires: Never
function Copperplast_OnGossip(pUnit, Event, player)
pUnit:GossipCreateMenu(51, player, 0)
pUnit:GossipMenuAddItem(1, "Are you ready to fight Estavon?", 999, 0)
pUnit:GossipMenuAddItem(2, "I am ready to fight Estavon", 1, 0)
pUnit:GossipMenuAddItem(2, "No thanks. Im scared", 2, 0,)
pUnit:GossipSendMenu(player)
end
function Copperplast_SubMenus(pUnit, Event, player, id, intid, code)
if (intid == 1) then
pUnit:SendChatMessage(41, 0, "Estavon Appears in the Arena")
pUnit:SpawnCreature(800030, 746.769714, 617.819824, 411.090.485 1.584804, 16, 0
pUnit:Despawn(1000, 0)
end
if (intid == 2) then
player:GossipComplete()
end
end
RegisterUnitGossipEvent(800035, 1, "Copperplast_OnGossip")
RegisterUnitGossipEvent(800035, 2, "Copperplast_SubMenus")