Download
(1Kb)
Download
Updated: 04-05-09 05:09 AM
Pictures
File Info
Updated:04-05-09 05:09 AM
Created:03-20-09 05:35 PM
Downloads:1,911
Favorites:9
MD5:

ReallyFlyable

Version: 1.03
by: Spellshaper [More]

What does it do?

Nothing on itself. It simply supplies a global function IsReallyFlyableArea() that works like Blizzards IsFlyableArea(), except it returns if you can REALLY mount your favorite dragon or not.

Why doesn't IsFlyableArea suffice?

IsFlyableArea() returns if the zone you are in generally permits flying. There are exceptions to this, like Dalaran (anything besides Krasus Landing) or Wintergrasp.
I wanted a function that gives me what I want, in an easy way, mainly because I wanted to make myself a mount macro involving CallCompanion().
And checking for those special zones would have exceeded the 255 character limit-


No options, to be used with a macro or to be copy-pasted into your addon.

example macro:

Code:
/script local t={4,7,9,12} if IsAltKeyDown() then t={2} elseif IsReallyFlyableArea() then t={5,6,11} end CallCompanion("MOUNT",t[random(#t)])
order of mounts as shown in mount tab:


Already localised for:
- German
- English
- Chinese (traditional)
- Russian

1.03
- Added localisation for Russian. Thanks to StingerSoft for the translation
- Changed to UTF-8 encoding, all added translations should work now. Sorry for the inconvenience this may have caused.

1.02
- Fixed naming issue.

1.01
- Added localisation for Chinese (traditional). Thanks to jyuny1 for the translation.

1.0
- Release with english and german localisation.
Post A Reply Comment Options
Unread 03-20-09, 11:55 PM  
Saelemar
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 8
Uploads: 1
Works with Squire

Thank you for the great Work. I seen that the Problem occour with Squire too, so i installed your Mod and wow, it works
Report comment to moderator  
Reply With Quote
Unread 03-21-09, 10:01 PM  
jyuny1
A Kobold Labourer

Forum posts: 1
File comments: 12
Uploads: 0
hi, this is a really good idea for IsFlyable() function.
I just done the localization for zhTW.
here is my diff
http://opensvn.csie.org/kevinblue/wo...yable.lua.diff
and compelete file with zhTW localization
http://opensvn.csie.org/kevinblue/wo...llyFlyable.lua

thx for this greate addon :-)
Report comment to moderator  
Reply With Quote
Unread 03-30-09, 12:18 PM  
Spellshaper
A Murloc Raider
 
Spellshaper's Avatar
AddOn Author - Click to view AddOns

Forum posts: 8
File comments: 70
Uploads: 2
thanks. I will add the localisation you supplied :>
__________________
"We shaman don't command the magic we wield. As mages and warlocks strain and sweat to produce a tiny flame, I ask for the elements to lend me their strength."
Report comment to moderator  
Reply With Quote
Unread 03-30-09, 01:38 PM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1710
File comments: 1222
Uploads: 43
You can mount flying mounts up in the tower in The Violet Citadel
Report comment to moderator  
Reply With Quote
Unread 03-30-09, 03:09 PM  
Angrysteel
A Murloc Raider

Forum posts: 6
File comments: 203
Uploads: 0
Any chance at giving a sample macro, for those not really familiar with scripting?


Such as...

/cast [Isreallyflyable] Swift Riding Mount; Ground Mount
Report comment to moderator  
Reply With Quote
Unread 03-30-09, 03:41 PM  
Spellshaper
A Murloc Raider
 
Spellshaper's Avatar
AddOn Author - Click to view AddOns

Forum posts: 8
File comments: 70
Uploads: 2
Originally posted by Angrysteel
Any chance at giving a sample macro, for those not really familiar with scripting?


Such as...

/cast [Isreallyflyable] Swift Riding Mount; Ground Mount
Macros will only accept Blizzard-made conditions. However, you can always use /script to do some lua..

One such example would be (actually, it's my mount macro):
Code:
/script local t={4,7,9,12} if IsAltKeyDown() then t={2} elseif IsReallyFlyableArea() then t={5,6,11} end CallCompanion("MOUNT",t[random(#t)])
Numbers are the order of your mounts in your character's mount tab.

Lets break it down:
Code:
local t={4,7,9,12}
set mount number 4,7,9 and 12 as defaults. (regular mounts)

Code:
 if IsAltKeyDown() then t={2}
if the alt modifier is being pressed, instead use mount number 2. (some special mount, it's mekgineers chopper for me)

Code:
elseif IsReallyFlyableArea() then t={5,6,11} end
However, if the alt key is not down, and you are in an area which allows flying, use mount number 5,6 and 11. (flying mounts)

Code:
CallCompanion("MOUNT",t[random(#t)])
Now choose one of those mounts at random, and mount it.



Also, thanks p3lim. Does the zone have a special name? I can't confirm by myself, I haven't completed the achievement for the Kirin Tor familiar..
__________________
"We shaman don't command the magic we wield. As mages and warlocks strain and sweat to produce a tiny flame, I ask for the elements to lend me their strength."
Last edited by Spellshaper : 03-30-09 at 03:46 PM.
Report comment to moderator  
Reply With Quote
Unread 03-30-09, 05:55 PM  
arnath_vp
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 43
Uploads: 4
Nice addon, been trying to figure out how to do this for a while. Anybody know if there's a /script way to set a macro icon/tooltip?

Also, for some reason I couldn't get this addon to load until I changed the name of the TOC file and the title in the TOC file to "ReallyFlyable". Anybody else have this same issue?
Last edited by arnath_vp : 03-30-09 at 06:01 PM.
Report comment to moderator  
Reply With Quote
Unread 03-31-09, 05:34 AM  
Angrysteel
A Murloc Raider

Forum posts: 6
File comments: 203
Uploads: 0
Originally posted by arnath_vp
Nice addon, been trying to figure out how to do this for a while. Anybody know if there's a /script way to set a macro icon/tooltip?

Also, for some reason I couldn't get this addon to load until I changed the name of the TOC file and the title in the TOC file to "ReallyFlyable". Anybody else have this same issue?
Can confirm the addon was not working until i changed the name of the toc file, and the title in the toc file.


Would also like to know about macro icon as well.
Report comment to moderator  
Reply With Quote
Unread 03-31-09, 06:05 PM  
Spellshaper
A Murloc Raider
 
Spellshaper's Avatar
AddOn Author - Click to view AddOns

Forum posts: 8
File comments: 70
Uploads: 2
Originally posted by Angrysteel
Can confirm the addon was not working until i changed the name of the toc file, and the title in the toc file.


Would also like to know about macro icon as well.
I guess I can't hide it anymore: I r shoopid.

Sorry for that, it's fixed now.

I believe I forgot to change the name of it.. it started out as a sub-module of another addon I only use for myself, and was then named Mounting.lua.
__________________
"We shaman don't command the magic we wield. As mages and warlocks strain and sweat to produce a tiny flame, I ask for the elements to lend me their strength."
Report comment to moderator  
Reply With Quote
Unread 04-01-09, 08:54 PM  
Angrysteel
A Murloc Raider

Forum posts: 6
File comments: 203
Uploads: 0
Because i know nothing about scripting, i will ask here ;p


Everything works perfectly with your script, no problems at all, as far as it picking the mounts correctly. Is it possible to:

1. Have it show an icon based on your mount.

2. If you are mounted, and hit the macro again, it will dismount you and immediately resummon another mount. Looking for a way to dismount, without summoning another mount immediately.


Not sure if these 2 things are possible by scripting. Not worried about a 255 character limit.
Report comment to moderator  
Reply With Quote
Unread 04-02-09, 03:25 AM  
Fonjask
A Fallenroot Satyr
 
Fonjask's Avatar
AddOn Author - Click to view AddOns

Forum posts: 25
File comments: 266
Uploads: 2
Originally posted by Angrysteel
1. Have it show an icon based on your mount.

2. If you are mounted, and hit the macro again, it will dismount you and immediately resummon another mount. Looking for a way to dismount, without summoning another mount immediately.
Change the macro to this:

Code:
/dismount
#showtooltip Swift Green Mechanostrider --(or whatever your mount is)
/script local t={4,7,9,12} if IsAltKeyDown() then t={2} elseif IsReallyFlyableArea() then t={5,6,11} end CallCompanion("MOUNT",t[random(#t)])
Think this should work, please give me feedback on it .
__________________
~~~~~~~~~~~~
Report comment to moderator  
Reply With Quote
Unread 04-02-09, 04:23 AM  
Spellshaper
A Murloc Raider
 
Spellshaper's Avatar
AddOn Author - Click to view AddOns

Forum posts: 8
File comments: 70
Uploads: 2
Almost. :>


Code:
#showtooltip mount name here
/script if IsMounted() then Dismount() return end local t={4,7,9,12} if IsAltKeyDown() then t={2} elseif IsReallyFlyableArea() then t={5,6,11} end CallCompanion("MOUNT",t[random(#t)])
I prefer to put lines that start with "#" at the beginning of the macro, but that's prolly just me and my OCD.

I just put
Code:
if IsMounted() then Dismount() return end
at the beginning of the lua part.
If you are mounted, it will dismount you and stop the macro.
__________________
"We shaman don't command the magic we wield. As mages and warlocks strain and sweat to produce a tiny flame, I ask for the elements to lend me their strength."
Last edited by Spellshaper : 04-02-09 at 04:34 AM.
Report comment to moderator  
Reply With Quote
Unread 04-02-09, 05:31 AM  
Fonjask
A Fallenroot Satyr
 
Fonjask's Avatar
AddOn Author - Click to view AddOns

Forum posts: 25
File comments: 266
Uploads: 2
Originally posted by Spellshaper
Almost. :>


Code:
#showtooltip mount name here
/script if IsMounted() then Dismount() return end local t={4,7,9,12} if IsAltKeyDown() then t={2} elseif IsReallyFlyableArea() then t={5,6,11} end CallCompanion("MOUNT",t[random(#t)])
I prefer to put lines that start with "#" at the beginning of the macro, but that's prolly just me and my OCD.

I just put
Code:
if IsMounted() then Dismount() return end
at the beginning of the lua part.
If you are mounted, it will dismount you and stop the macro.
Also possible, but if used within another macro mine is shorter
__________________
~~~~~~~~~~~~
Report comment to moderator  
Reply With Quote
Unread 04-02-09, 07:15 AM  
Spellshaper
A Murloc Raider
 
Spellshaper's Avatar
AddOn Author - Click to view AddOns

Forum posts: 8
File comments: 70
Uploads: 2
Originally posted by Fonjask
[...]if used within another macro mine is shorter
that it is, but it doesn't work the way he wants it :<
..at least when I tested it. Your macro dismounts and then instantly remounts, too.
__________________
"We shaman don't command the magic we wield. As mages and warlocks strain and sweat to produce a tiny flame, I ask for the elements to lend me their strength."
Last edited by Spellshaper : 04-02-09 at 07:15 AM.
Report comment to moderator  
Reply With Quote
Unread 04-02-09, 08:05 AM  
Fonjask
A Fallenroot Satyr
 
Fonjask's Avatar
AddOn Author - Click to view AddOns

Forum posts: 25
File comments: 266
Uploads: 2
Originally posted by Spellshaper
that it is, but it doesn't work the way he wants it :<
..at least when I tested it. Your macro dismounts and then instantly remounts, too.
Originally posted by Angrysteel
If you are mounted and hit the macro again, it will dismount you and immediately resummon another mount.
__________________
~~~~~~~~~~~~
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: