Thread Tools Display Modes
11-03-12, 11:10 AM   #1
Tonyleila
A Molten Giant
 
Tonyleila's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 758
RealAutoDismount

RealAutoDismount was a very nice addon to Auto Dismount but has problems with some MoP zones.
I already send a privat massage to DarkStarX it he won't reply.
Problems: If you fly over the black Sha zones in Kun-Lai or if you fly through (invisible yes they are there if you don't have the quest) rings in Jade forest between Arboretum and Windward Isle you will dismounted because there is a massage with "you are sitting on a mount". I don't know an easy resolve for this maybe disable addon if in this zones? I don't want to use the dont dismount if flying option because I always dismount with casting a spell
Maybe someone knows how to disable addon in this zones

local f=CreateFrame("frame");
local function eventhandler(self,event,...)
local arg = ...;
if((arg==SPELL_FAILED_NOT_MOUNTED or arg==ERR_TAXIPLAYERALREADYMOUNTED) and (GetCVarBool("autoDismountFlying")==1 or IsFlying()==nil)) then
Dismount();
end
end
f:RegisterEvent("UI_ERROR_MESSAGE");
f:SetScript("OnEvent",eventhandler);
__________________
Author of: LeilaUI and Aurora: Missing Textures
__________________
  Reply With Quote
11-03-12, 07:53 PM   #2
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Replace the contents of the addon's Lua file with this:
Code:
local ignoreZones = {
	[806] = true, -- The Jade Forest
	[809] = true, -- Kun-Lai Summit
}

local f = CreateFrame("Frame")
f:RegisterEvent("UI_ERROR_MESSAGE")
f:SetScript("OnEvent", function(self, event, message)
	if (message == SPELL_FAILED_NOT_MOUNTED or message == ERR_TAXIPLAYERALREADYMOUNTED)
	and not ignoreZones[GetCurrentMapAreaID()]
	and (GetCVarBool("autoDismountFlying") or not IsFlying())
	then
		Dismount()
	end
end)
If you want to add more zones, you can find a list of Map IDs here:
http://www.wowpedia.org/MapID
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
11-03-12, 08:41 PM   #3
Tonyleila
A Molten Giant
 
Tonyleila's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 758
Thanks Phanx! This works fine you shoud upload this as fix
Just to know: Its only possible to ignore zones with this or is there a ZoneID too?
__________________
Author of: LeilaUI and Aurora: Missing Textures
__________________
  Reply With Quote
11-04-12, 12:54 AM   #4
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
I'm not sure what you mean, as the code I posted does ignore zones...

Also, I have no interest in uploading this as a fix. I don't use the addon -- in fact, I have auto-dismount turned off in-game, and have ever since it was first introduced -- and don't have the time or interest to sign up for maintaining or supporting an addon I don't use, sorry.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
11-04-12, 01:55 AM   #5
Talyrius
An Onyxian Warder
 
Talyrius's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 363
I'm assuming that Tonyleila is referring to subzones.
  Reply With Quote
11-04-12, 04:16 AM   #6
Tonyleila
A Molten Giant
 
Tonyleila's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 758
Also, I have no interest in uploading this as a fix.
Just posted your fix in the addon comments if someone else is interested in it, its easy to find now

Originally Posted by Talyrius View Post
I'm assuming that Tonyleila is referring to subzones.
yes
__________________
Author of: LeilaUI and Aurora: Missing Textures
__________________
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Search/Requests » RealAutoDismount


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off