Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[ Made by Ground Zero Event-Player Script]--
- function idaisy(unit, event, player)
- unit:GossipCreateMenu(23822, player, 0)
- unit:GossipMenuAddItem(0, "I want to hear the Rules.", 213, 0)
- unit:GossipMenuAddItem(3, "I want to Represent the Gnomes!", 210, 0)
- unit:GossipMenuAddItem(3, "I want to Represent the Goblins!", 211, 0)
- unit:GossipMenuAddItem(3, "I want to Represent Myself!", 212, 0)
- unit:GossipMenuAddItem(3, "I want to Demorph!", 214, 0)
- unit:GossipMenuAddItem(3, "(GM) Despawn this Unit", 220, 0)
- unit:GossipMenuAddItem(0, "Nevermind", 215, 0)
- unit:GossipSendMenu(player)
- end
- function morphi(pUnit, event, player, id, intid, code)
- if(intid == 213) then
- 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.")
- player:GossipComplete()
- end
- if(intid == 210) then
- local name = player:GetName()
- pUnit:SendChatMessage(42, 0, "Player "..name.." is Representing the Gnomes!")
- player:SetModel(2490)
- player:SetPlayerSpeed(15)
- player:GossipComplete()
- end
- if(intid == 211) then
- local name = player:GetName()
- pUnit:SendChatMessage(42, 0, "Player "..name.." is Representing the Goblins!")
- player:SetModel(10318)
- player:SetPlayerSpeed(15)
- player:GossipComplete()
- end
- if(intid == 212) then
- local name = player:GetName()
- player:DeMorph()
- pUnit:SendChatMessage(42, 0, "Player "..name.." is Representing themself!")
- player:SetPlayerSpeed(15)
- player:GossipComplete()
- end
- if(intid == 214) then
- player:DeMorph()
- player:SetPlayerSpeed(7)
- player:GossipComplete()
- end
- if(intid == 215) then
- player:GossipComplete()
- end
- if(intid == 220) then
- if (player:IsGm() == true) then
- pUnit:Despawn(1 ,0)
- else
- pUnit:SendChatMessage(42, 0, "You are not a GM!")
- end
- end
- end
- RegisterUnitGossipEvent(YOURENTRYID, 1, "idaisy")
- RegisterUnitGossipEvent(YOURENTRYID, 2, "morphi")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement