Advertisement
Guest User

zero

a guest
Dec 6th, 2009
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.16 KB | None | 0 0
  1. --[ Made by Ground Zero Event-Player Script]--
  2.  
  3. function idaisy(unit, event, player)
  4.     unit:GossipCreateMenu(23822, player, 0)
  5.     unit:GossipMenuAddItem(0, "I want to hear the Rules.", 213, 0)
  6.     unit:GossipMenuAddItem(3, "I want to Represent the Gnomes!", 210, 0)
  7.     unit:GossipMenuAddItem(3, "I want to Represent the Goblins!", 211, 0)
  8.     unit:GossipMenuAddItem(3, "I want to Represent Myself!", 212, 0)
  9.     unit:GossipMenuAddItem(3, "I want to Demorph!", 214, 0)
  10.     unit:GossipMenuAddItem(3, "(GM) Despawn this Unit", 220, 0)
  11.     unit:GossipMenuAddItem(0, "Nevermind", 215, 0)
  12.     unit:GossipSendMenu(player)
  13. end
  14.  
  15. function morphi(pUnit, event, player, id, intid, code)
  16.     if(intid == 213) then
  17.     player: SendBroadcastMessage("The rules are simple! 1# Do not start until the countdown has reached 0 and the Race Master has yelled Go! 2# Stay on the tracks. 3# If you pass through the trees you will be disqualified! 4# You must represent either the Goblins, Gnomes or yourself. 5# Do not attack other players. 6# You must wait for a Gamemaster to start the Event by speaking to Race Master Kronkider.")
  18.     player:GossipComplete()
  19.     end
  20.     if(intid == 210) then
  21.     local name = player:GetName()
  22.     pUnit:SendChatMessage(42, 0, "Player "..name.." is Representing the Gnomes!")
  23.     player:SetModel(2490)
  24.     player:SetPlayerSpeed(15)
  25.     player:GossipComplete()
  26.     end
  27.     if(intid == 211) then
  28.     local name = player:GetName()
  29.     pUnit:SendChatMessage(42, 0, "Player "..name.." is Representing the Goblins!")
  30.     player:SetModel(10318)
  31.     player:SetPlayerSpeed(15)
  32.     player:GossipComplete()
  33.     end
  34.     if(intid == 212) then
  35.     local name = player:GetName()
  36.     player:DeMorph()
  37.     pUnit:SendChatMessage(42, 0, "Player "..name.." is Representing themself!")
  38.     player:SetPlayerSpeed(15)
  39.     player:GossipComplete()
  40.     end
  41.     if(intid == 214) then
  42.     player:DeMorph()
  43.     player:SetPlayerSpeed(7)
  44.     player:GossipComplete()
  45.     end
  46.     if(intid == 215) then
  47.     player:GossipComplete()
  48.     end
  49.     if(intid == 220) then
  50.         if (player:IsGm() == true) then
  51.         pUnit:Despawn(1 ,0)
  52.         else
  53.         pUnit:SendChatMessage(42, 0, "You are not a GM!")
  54.         end
  55.     end
  56. end
  57.  
  58. RegisterUnitGossipEvent(YOURENTRYID, 1, "idaisy")
  59. RegisterUnitGossipEvent(YOURENTRYID, 2, "morphi")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement