Skip to content

Instantly share code, notes, and snippets.

@PrivateDonut
Last active February 1, 2023 04:34
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
[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