-
-
Save PrivateDonut/ee5ea6874648ad9a2b506c049a48932c to your computer and use it in GitHub Desktop.
[Eluna] Mall Speed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
- 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