Download
(1Kb)
Download
Updated: 08-09-14 04:21 AM
Updated:08-09-14 04:21 AM
Created:01-22-11 05:47 AM
Downloads:3,029
Favorites:11
MD5:

Real Auto Dismount

Version: 1.0.8
by: DarkStarX [More]

For updates,news and whats coming next etc, follow on :
https://twitter.com/Dorwido
https://www.facebook.com/pages/Wido/109100089154987
Contact in battle.net:
Dorwido#2368


This addon only does 1 little thing whenever the error messages triggers "You are mounted." , you get a dismount.

If you have "Auto Dismount in Flight" unchecked in the Interface options under Controls the addon will only dismount you when not flying, otherwise while flying too.

I wrote this, because most times the game takes care of dismounting you if needed, but some rare cases it dont a good example is the cooking daily Crawfish Creole which want you to pickup the Muddy Crawfish.

This does work with all language.

-1.0.8
-updated toc

-1.0.5
-updated toc

v1.0.4
-updated toc for 4.2

v1.0.3
-changed a global variable (which shouldn't be one) to a local one

v1.0.2
while leveling i got quite a lot the message
"You are already mounted! Dismount first."
this is now added

v1.0.1
-updated toc
Post A Reply Comment Options
Unread 11-04-12, 04:12 AM  
Tonyleila
A Molten Giant
 
Tonyleila's Avatar
AddOn Author - Click to view AddOns

Forum posts: 758
File comments: 2021
Uploads: 37
PROBLEM

Download Updated version here Auto Dismount

------------
The addon will dismount you in Jade Forest and Kun-Lai for no reason.
Dridzt posted this fix maybe I'm not the only one interessted in this

Originally Posted by Dridzt View Post
Replace the contents of the addon's Lua file with this:
Code:
local MOUNTERRORS,supress = {
  [SPELL_FAILED_NOT_MOUNTED] = true,
  [ERR_NOT_WHILE_MOUNTED] = true,
  [ERR_ATTACK_MOUNTED] = true,
  [ERR_TAXIPLAYERALREADYMOUNTED] = true,
  [SPELL_FAILED_NOT_FLYING] = true,
  [ERR_PETBATTLE_NOT_WHILE_FLYING] = true,
}
local f=CreateFrame("frame")
f.OnUpdate=function(self,elapsed)
  if supress then 
    supress=nil 
    f:SetScript("OnUpdate",nil) 
    return 
  end
  Dismount()
  f:SetScript("OnUpdate",nil)
end
f.OnEvent=function(self,event,...)
  if event=="UNIT_SPELLCAST_FAILED" then
    local _,_,_,_,id = ...
	if id == 129356 or id == 110668 then -- Overcome by Anger, or Fleet Winds
      supress = IsMounted() or IsFlying()
    end
  end
  if not MOUNTERRORS[...] then return end -- not an error message we care about, return immediately.
  if IsFlying() and not GetCVarBool("autoDismountFlying") then return end -- we are flying and don't have flight auto-dismount option checked, do nothing.
  if supress then supress = nil return end -- one time suppression for sha voidzones, and since we're not sure of the order of events do it both ways.
  f:SetScript("OnUpdate",f.OnUpdate) -- dismount on next frame
end
f:RegisterEvent("UI_ERROR_MESSAGE")
f:RegisterUnitEvent("UNIT_SPELLCAST_FAILED","player")
f:SetScript("OnEvent",f.OnEvent)
If you want to add more zones, you can find a list of Map IDs here:
http://www.wowpedia.org/MapID
http://www.wowinterface.com/forums/s...787#post268787
__________________
Author of: LeilaUI and Aurora: Missing Textures
__________________
Last edited by Tonyleila : 11-03-13 at 07:03 PM.
Report comment to moderator  
Reply With Quote
Unread 06-29-11, 09:03 AM  
Tonyleila
A Molten Giant
 
Tonyleila's Avatar
AddOn Author - Click to view AddOns

Forum posts: 758
File comments: 2021
Uploads: 37
Thx

Thanks for the nice addon!

I downloadet it for the boilers in ZG were you always have to dismount manually for the green one.

sry for my bad english
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.