Credits: Darren
This'll apply the Dismount debuff if a player enters Dalaran while mounted and lower than the set Coords the debuff will be applied along with a on-screen message.
After 10sec (9.9) they will be dismounted and gain slow fall.
Post any bugs + feedback here.Code:--[[ Dalaran Auto-Dismount Written by Daskin DO NOT REMOVE THESE CREDITS. ]] print "Dalaran Dismount Script loaded." function Plr_OnZoneEnter (Event, player, zoneId) if (zoneId == 4395) then if (player:IsMounted() == true) and (player:HasAura(58600) == false) then if (player:GetZ() <= 690) and (player:GetZ() >= 650) then player:SendAreaTriggerMessage("You have entered a no-fly zone and are about to be dismounted!") player:CastSpell(58600) RegisterTimedEvent("Player_Dismount", 9900, 1) end end end end function Plr_OnZoneEnterK (Event, player, zoneId) if (zoneId == 5327) and (player:HasAura(58600) == true) then player:RemoveAura(58600) end end function Player_Dismount (pUnit, Event, player) if (player:HasAura(58600) == true) then player:Dismount() player:CastSpell(50085) -- Slow fall. end end RegisterServerHook(12, "Plr_OnZoneEnter") RegisterServerHook(12, "Plr_OnZoneEnterK")



LinkBack URL
About LinkBacks



Reply With Quote


Bookmarks