Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Mar 21st, 2010 | Syntax: Lua | Size: 0.75 KB | Hits: 81 | Expires: Never
This paste has a previous version, view the difference. Copy text to clipboard
  1. function Copperplast_OnGossip(pUnit, Event, player)
  2. pUnit:GossipCreateMenu(51, player, 0)
  3. pUnit:GossipMenuAddItem(1, "Are you ready to fight Estavon?", 999, 0)
  4. pUnit:GossipMenuAddItem(2, "I am ready to fight Estavon", 1, 0)
  5. pUnit:GossipMenuAddItem(2, "No thanks. Im scared", 2, 0,)
  6. pUnit:GossipSendMenu(player)
  7. end
  8.  
  9. function Copperplast_SubMenus(pUnit, Event, player, id, intid, code)
  10.  
  11. if (intid == 1) then
  12. pUnit:SendChatMessage(41, 0, "Estavon Appears in the Arena")
  13. pUnit:SpawnCreature(800030, 746.769714, 617.819824, 411.090.485 1.584804, 16, 0
  14. pUnit:Despawn(1000, 0)
  15. end
  16.  
  17. if (intid == 2) then
  18. player:GossipComplete()
  19. end
  20. end
  21.  
  22. RegisterUnitGossipEvent(800035, 1, "Copperplast_OnGossip")
  23. RegisterUnitGossipEvent(800035, 2, "Copperplast_SubMenus")