Advertisement
Guest User

zero

a guest
Dec 21st, 2009
471
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.50 KB | None | 0 0
  1. --[ Made by Ground Zero of MMOwned ]--
  2.  
  3. local ReloadMessage = "#reload"
  4. local Buffmessage = "#buff"
  5. local Foodmessage = "#food"
  6. local Healmessage = "#heal"
  7. local Mallreturn = "#mall"
  8. local Nudgeleftmessage = "#nudgeleft"
  9. local Nudgerightmessage = "#nudgeright"
  10. local Nudgebackmessage = "#nudgeback"
  11. local Nudgeforwardmessage = "#nudgeforward"
  12. local Commandlist = "#commands"
  13. local GMCommandlist = "#gmcommands"
  14. local Nudgeupmessage = "#nudgeup"
  15. local Nudgedownmessage = "#nudgedown"
  16.  
  17.  
  18. function OnChat(event, plr, message, type, language)
  19.     if message == ReloadMessage then
  20.         if plr:IsGm() == true then
  21.             ReloadLuaEngine()
  22.             plr:SendAreaTriggerMessage("Lua HypArc Engine Successfully Reloaded!")
  23.             else
  24.             plr:SendAreaTriggerMessage("You are not a Game Master!")
  25.         end
  26.         return 0
  27.     end
  28.     if (message == Buffmessage) then
  29.             if (plr:HasAura(25472) == false) then
  30.                 plr:CastSpell(48162)
  31.                 plr:CastSpell(42995)
  32.                 plr:CastSpell(58499)
  33.                 plr:CastSpell(43046)
  34.                 plr:CastSpell(25472)
  35.                 plr:SendBroadcastMessage("Enjoy your Buffs!")
  36.                 else
  37.                 plr:SendAreaTriggerMessage("You already have buffs on, wait a while and try again.")
  38.                
  39.             end
  40.         return 0
  41.     end
  42.    
  43.     if (message == Foodmessage) then
  44.         if plr:IsInCombat() == false then
  45.             plr:AddItem(45932, 20)
  46.             plr:SendBroadcastMessage("You have been given 20x Black Jelly, Enjoy your Food!")
  47.             else
  48.             plr:SendAreaTriggerMessage("You are currently in Combat!")
  49.         end
  50.                 return 0
  51.     end
  52.    
  53.     if (message == Healmessage) then
  54.         if plr:IsInCombat() == false then
  55.             plr:CastSpell(69693)
  56.             plr:SendBroadcastMessage("Your health has been restored.")
  57.             else
  58.             plr:SendAreaTriggerMessage("You are currently in Combat!")
  59.         end
  60.                 return 0
  61.     end
  62.    
  63.     if (message == Mallreturn) then
  64.         if plr:IsInCombat() == false then
  65.             plr:Teleport(1, 16224.015625, 16265.496094, 13.209516) -- Change to your Mall Coords, currently GM Island.
  66.             else
  67.             plr:SendAreaTriggerMessage("You are in Combat!")
  68.         end
  69.     end
  70.    
  71.     if (message == Nudgeleftmessage) then -- gm only
  72.         if plr:IsGm() == true then
  73.             plr:Teleport(plr:GetMapId(), plr:GetX(), plr:GetY()+5, plr:GetZ())
  74.             else
  75.             plr:SendAreaTriggerMessage("You need to be a Game Master to access this Function!")
  76.         end
  77.             return 0
  78.     end
  79.    
  80.     if (message == Nudgerightmessage) then -- gm only
  81.         if plr:IsGm() == true then
  82.             plr:Teleport(plr:GetMapId(), plr:GetX(), plr:GetY()-5, plr:GetZ())
  83.             else
  84.             plr:SendAreaTriggerMessage("You need to be a Game Master to access this Function!")
  85.         end
  86.             return 0
  87.     end
  88.  
  89.     if (message == Nudgebackmessage) then -- gm only
  90.         if plr:IsGm() == true then
  91.             plr:Teleport(plr:GetMapId(), plr:GetX()-5, plr:GetY(), plr:GetZ())
  92.             else
  93.             plr:SendAreaTriggerMessage("You need to be a Game Master to access this Function!")
  94.         end
  95.             return 0
  96.     end
  97.    
  98.     if (message == Nudgeforwardmessage) then -- gm only
  99.         if plr:IsGm() == true then
  100.             plr:Teleport(plr:GetMapId(), plr:GetX()+5, plr:GetY(), plr:GetZ())
  101.             else
  102.             plr:SendAreaTriggerMessage("You need to be a Game Master to access this Function!")
  103.         end
  104.             return 0
  105.     end
  106.  
  107.     if (message == Nudgeupmessage) then -- gm only
  108.         if plr:IsGm() == true then
  109.             plr:Teleport(plr:GetMapId(), plr:GetX(), plr:GetY(), plr:GetZ()+5)
  110.             else
  111.             plr:SendAreaTriggerMessage("You need to be a Game Master to access this Function!")
  112.         end
  113.             return 0
  114.     end
  115.    
  116.     if (message == Nudgedownmessage) then -- gm only
  117.         if plr:IsGm() == true then
  118.             plr:Teleport(plr:GetMapId(), plr:GetX()+5, plr:GetY(), plr:GetZ()-5)
  119.             else
  120.             plr:SendAreaTriggerMessage("You need to be a Game Master to access this Function!")
  121.         end
  122.             return 0
  123.     end
  124.    
  125.     if (message == Commandlist) then
  126.         if plr:IsGm() == false then
  127.             plr:SendBroadcastMessage("Player Commands = #buff - Gives you Buffs. #food - gives you food. #heal - Restores you too full Health. #mall - Teleports you to the Mall.")
  128.             else
  129.             plr:SendBroadcastMessage("Player Commands = #buff - Gives you Buffs. #food - gives you food. #heal - Restores you too full Health. #mall - Teleports you to the Mall.")
  130.         end
  131.             return 0
  132.     end
  133.    
  134.     if (message == GMCommandlist) then
  135.         if plr:IsGm() == true then
  136.             plr:SendBroadcastMessage("GM Chat Commands = #jump - Jumps you 10yds up in the air. #nudgeleft - Nudges you 5yds left. #nudgeright - Nudges you 5yds right. #nudgeback - Nudges you 5yds behind. #nudgeforward - Nudges you 5yds forward.")
  137.             else
  138.             plr:SendAreaTriggerMessage("You need to be a Game Master to access this Feature!")
  139.         end
  140.             return 0
  141.     end
  142. end
  143.  
  144. RegisterServerHook(16, "OnChat")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement