Skip to content

Instantly share code, notes, and snippets.

@PrivateDonut
Last active February 1, 2023 04:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save PrivateDonut/ee5ea6874648ad9a2b506c049a48932c to your computer and use it in GitHub Desktop.
Save PrivateDonut/ee5ea6874648ad9a2b506c049a48932c to your computer and use it in GitHub Desktop.
[Eluna] Mall Speed
--[[
- Script Name : Mall Speed
- Made By : PrivateDonut
- Description : This script will allow your players to gain a small speed boost upon entering the mall.
]]--
local zone = 1519
function OnEnteringMall(event, player, newZone, newArea)
if newZone == zone then
player:CastSpell(player, 58894, true)
player:SendBroadcastMessage("You have entered the mall, enjoy your speed boost!")
player:RegisterEvent(function()
player:CastSpell(player, 58894, true)
end, 30000, 0)
else
player:RemoveAura(58894)
end
end
RegisterPlayerEvent(27, OnEnteringMall)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment