Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[ Made by Ground Zero of MMOwned ]--
- local ReloadMessage = "#reload"
- local Buffmessage = "#buff"
- local Foodmessage = "#food"
- local Healmessage = "#heal"
- local Mallreturn = "#mall"
- local Nudgeleftmessage = "#nudgeleft"
- local Nudgerightmessage = "#nudgeright"
- local Nudgebackmessage = "#nudgeback"
- local Nudgeforwardmessage = "#nudgeforward"
- local Commandlist = "#commands"
- local GMCommandlist = "#gmcommands"
- local Nudgeupmessage = "#nudgeup"
- local Nudgedownmessage = "#nudgedown"
- function OnChat(event, plr, message, type, language)
- if message == ReloadMessage then
- if plr:IsGm() == true then
- ReloadLuaEngine()
- plr:SendAreaTriggerMessage("Lua HypArc Engine Successfully Reloaded!")
- else
- plr:SendAreaTriggerMessage("You are not a Game Master!")
- end
- return 0
- end
- if (message == Buffmessage) then
- if (plr:HasAura(25472) == false) then
- plr:CastSpell(48162)
- plr:CastSpell(42995)
- plr:CastSpell(58499)
- plr:CastSpell(43046)
- plr:CastSpell(25472)
- plr:SendBroadcastMessage("Enjoy your Buffs!")
- else
- plr:SendAreaTriggerMessage("You already have buffs on, wait a while and try again.")
- end
- return 0
- end
- if (message == Foodmessage) then
- if plr:IsInCombat() == false then
- plr:AddItem(45932, 20)
- plr:SendBroadcastMessage("You have been given 20x Black Jelly, Enjoy your Food!")
- else
- plr:SendAreaTriggerMessage("You are currently in Combat!")
- end
- return 0
- end
- if (message == Healmessage) then
- if plr:IsInCombat() == false then
- plr:CastSpell(69693)
- plr:SendBroadcastMessage("Your health has been restored.")
- else
- plr:SendAreaTriggerMessage("You are currently in Combat!")
- end
- return 0
- end
- if (message == Mallreturn) then
- if plr:IsInCombat() == false then
- plr:Teleport(1, 16224.015625, 16265.496094, 13.209516) -- Change to your Mall Coords, currently GM Island.
- else
- plr:SendAreaTriggerMessage("You are in Combat!")
- end
- end
- if (message == Nudgeleftmessage) then -- gm only
- if plr:IsGm() == true then
- plr:Teleport(plr:GetMapId(), plr:GetX(), plr:GetY()+5, plr:GetZ())
- else
- plr:SendAreaTriggerMessage("You need to be a Game Master to access this Function!")
- end
- return 0
- end
- if (message == Nudgerightmessage) then -- gm only
- if plr:IsGm() == true then
- plr:Teleport(plr:GetMapId(), plr:GetX(), plr:GetY()-5, plr:GetZ())
- else
- plr:SendAreaTriggerMessage("You need to be a Game Master to access this Function!")
- end
- return 0
- end
- if (message == Nudgebackmessage) then -- gm only
- if plr:IsGm() == true then
- plr:Teleport(plr:GetMapId(), plr:GetX()-5, plr:GetY(), plr:GetZ())
- else
- plr:SendAreaTriggerMessage("You need to be a Game Master to access this Function!")
- end
- return 0
- end
- if (message == Nudgeforwardmessage) then -- gm only
- if plr:IsGm() == true then
- plr:Teleport(plr:GetMapId(), plr:GetX()+5, plr:GetY(), plr:GetZ())
- else
- plr:SendAreaTriggerMessage("You need to be a Game Master to access this Function!")
- end
- return 0
- end
- if (message == Nudgeupmessage) then -- gm only
- if plr:IsGm() == true then
- plr:Teleport(plr:GetMapId(), plr:GetX(), plr:GetY(), plr:GetZ()+5)
- else
- plr:SendAreaTriggerMessage("You need to be a Game Master to access this Function!")
- end
- return 0
- end
- if (message == Nudgedownmessage) then -- gm only
- if plr:IsGm() == true then
- plr:Teleport(plr:GetMapId(), plr:GetX()+5, plr:GetY(), plr:GetZ()-5)
- else
- plr:SendAreaTriggerMessage("You need to be a Game Master to access this Function!")
- end
- return 0
- end
- if (message == Commandlist) then
- if plr:IsGm() == false then
- plr:SendBroadcastMessage("Player Commands = #buff - Gives you Buffs. #food - gives you food. #heal - Restores you too full Health. #mall - Teleports you to the Mall.")
- else
- plr:SendBroadcastMessage("Player Commands = #buff - Gives you Buffs. #food - gives you food. #heal - Restores you too full Health. #mall - Teleports you to the Mall.")
- end
- return 0
- end
- if (message == GMCommandlist) then
- if plr:IsGm() == true then
- 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.")
- else
- plr:SendAreaTriggerMessage("You need to be a Game Master to access this Feature!")
- end
- return 0
- end
- end
- RegisterServerHook(16, "OnChat")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement