Welcome to the MMOtop - Arcemu, Mangos, Trinity.
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Jerry's Avatar
    Status : Jerry is offline
    Join Date : Mar 2009
    Location : Serbia
    Posts : 2,321
    Thanks: 223
    Thanked 501 Times in 286 Posts
    Rep Power : 10
    Reputation:2077Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute

    Default [Lua] Dalaran Auto-Dismount

    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.
    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")
    Post any bugs + feedback here.

  2. The Following User Says Thank You to Jerry For This Useful Post:

    Deathwalks (05-05-2011)

  3. #2
    ak47sigh's Avatar
    Status : ak47sigh is offline
    Join Date : Apr 2011
    Location : wow-like.com
    Posts : 76
    Thanks: 18
    Thanked 6 Times in 4 Posts
    Rep Power : 2
    Reputation:20ak47sigh is on a distinguished road

    Default

    Very useful for me +rep

  4. #3
    Deathwalks's Avatar
    Status : Deathwalks is offline
    Join Date : Dec 2010
    Location : Ohio, U.S.A
    Posts : 187
    Thanks: 56
    Thanked 2 Times in 2 Posts
    Rep Power : 2
    Reputation:10Deathwalks is on a distinguished road

    Default

    Very nice Jerry! This should be very useful.

  5. #4
    Status : CanadianBlitz is offline
    Join Date : Aug 2011
    Posts : 25
    Thanks: 2
    Thanked 0 Times in 0 Posts
    Rep Power : 1
    Reputation:10CanadianBlitz is on a distinguished road

    Default

    How would I import a Lua script into my server?
    I use ArcEmu.
    (srry for being a noob I want to run a server for me, family and friends.)


 

Similar Threads

  1. Replies: 4
    Last Post: 09-05-2009, 01:45 AM

Visitors found this page by searching for:

dismount LUA

dalaran dismount script

raid dismount players scripts

arcemu lua if player has debuff

arcemu debuffs bug

script lua auto msg wow

shot down in dalaran

mangos dalaran autodimount

lua /dismount

dismount players mangos

dalaran dismount message

mmotop. arcemu auto restart script

dalaran coordinates trinity

mmotop autovote

wow arcemu Lua flying script

wow repack auto message lua

dalaran automobil

arcemu lua disMount

wow repack message.lua

lua script dismount

script dalaran lua

dalaran lua scripts

coordinates of dalaran wow emu

dalajran auto

dismount script dalaran

SEO Blog

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts