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,910
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 06-02-09, 04:16 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 Angrysteel
Any chance of getting an example macro, using /click ?

/script IsReallyFlyableArea() then /click ButtonName? Is this even remotely close, or possible?


or

/click ButtonName if IsReallyFlyableArea()
/click is in the realm of macros.
with /script, you enter the world of lua scripts.
Mixing them on the same line in that way is not possible, unless you set up a function to accept macros in string form, like an editbox would.

Take a look at the addon info page. I already put an example there.
__________________
"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 05-26-09, 08:44 PM  
Angrysteel
A Murloc Raider

Forum posts: 6
File comments: 203
Uploads: 0
Any chance of getting an example macro, using /click ?

/script IsReallyFlyableArea() then /click ButtonName? Is this even remotely close, or possible?


or

/click ButtonName if IsReallyFlyableArea()
Last edited by Angrysteel : 05-27-09 at 02:56 AM.
Report comment to moderator  
Reply With Quote
Unread 04-07-09, 01:57 AM  
Spellshaper
A Murloc Raider
 
Spellshaper's Avatar
AddOn Author - Click to view AddOns

Forum posts: 8
File comments: 70
Uploads: 2
Heh. I got that problem too, but with Blizzards action bars. That's why I used the alt modifier in the first place, instead of shift. I have no idea what causes that.
IsShiftKeyDown() simply does not return 1, it's always nil.
__________________
"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-05-09, 04:31 PM  
Shrike81
A Murloc Raider

Forum posts: 4
File comments: 31
Uploads: 0
Awesome mod! Finally am able to get all my mounts going with just my middle mouse which is awesome.

Just a question, I am trying to set it up so if I hold shift while clicking in my middle mouse it'll summon a specific mount.

Here's my code:
Code:
/script if IsMounted() then Dismount() return end local t={2,5} if IsAltKeyDown() then t={3} elseif IsShiftKeyDown() then t={4} elseif IsReallyFlyableArea() then t={4,6,7} end CallCompanion("MOUNT",t[random(#t)])
It works if I hold shift and click it, but not if I shift middle mouse. (Using Macaroon I am able to find shift middle mouse, alt middle mouse and middle mouse all to the same button.)

Any help would be appreciated!

Edit: as soon as I posted this I realized that I can just make a separate button for the mount I want and hide it in macaroon or in my main bar which is already hidden, so feel free to ignore this point. I am curious as to why it doesn't work though. Either way, I feel like a dumbass.
Last edited by Shrike81 : 04-05-09 at 04:34 PM.
Report comment to moderator  
Reply With Quote
Unread 04-05-09, 05:07 AM  
Spellshaper
A Murloc Raider
 
Spellshaper's Avatar
AddOn Author - Click to view AddOns

Forum posts: 8
File comments: 70
Uploads: 2
Russian translation has been added. Thanks go to StingerSoft!

Also, he mentionend something in his PM that I had simply forgotten.. UTF-8! Encoding changed, translations should work now.
__________________
"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-03-09, 06:17 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 krattan
hum..
is there any way of getting this to work for druid flightform?
I'm using the classic allterrain travelmacro
tried to replicate it using your code but it feels like blizzard has removed the possibility of calling castspellbyname from macros.
True. you can't cast spells from addons or unsigned (read: non-blizzard) lua code anymore. :<
A workaround would be setting up a secure action button (like all action bar mods do) and then using
Code:
/click buttonname
.
__________________
"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-03-09, 04:23 AM  
krattan
A Kobold Labourer

Forum posts: 1
File comments: 17
Uploads: 0
hum..
is there any way of getting this to work for druid flightform?
I'm using the classic allterrain travelmacro
tried to replicate it using your code but it feels like blizzard has removed the possibility of calling castspellbyname from macros.
Report comment to moderator  
Reply With Quote
Unread 04-02-09, 03:52 PM  
Spellshaper
A Murloc Raider
 
Spellshaper's Avatar
AddOn Author - Click to view AddOns

Forum posts: 8
File comments: 70
Uploads: 2
Well.. can't really call it an addon, it just supplies a function and does nothing on its own. Also, it has no visual elements.

Messing with actionbar button icons can be done, but you'll have to look around for an action bar mod that does that. I also have no idea if it is possible to change button icons in combat (other than using #showtooltip with conditions). My guess is that it's protected; since you also cannot change a macro while in combat.

With showtooltip you can at least do this much:

Code:
#showtooltip [mod:alt] special mount, [flyable] flying mount, [noflyable,outdoors] normal mount, [indoors] some item or spell
__________________
"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 03:55 PM.
Report comment to moderator  
Reply With Quote
Unread 04-02-09, 11:45 AM  
Angrysteel
A Murloc Raider

Forum posts: 6
File comments: 203
Uploads: 0
/script if IsMounted() then Dismount() return end

The above works perfectly, tyvm!



As far as using something like:

#showtooltip mount name here

Since the script is casting ground mounts, flying mounts, and also randomly picking them, if i use #showtooltip Name of Flying Mount, i will only see the flying mount icon, even if i am in a no fly zone.

Not a big deal at all, but i know some people were looking for a way to make the tooltips reactive.


Meaning....

-If im in a no fly zone, show me the ground mount tooltip.
-If im in a fly zone, show me the flying mount tootip.
-If i can not fly, nor use a ground mount, dim the icon or use some other default icon.

I tried using the ? icon, and just leaving it as #showtooltip. Doesnt work.


The above may be outside of the scope, of what you want your addon or script to do, which is perfectly fine. I am very happy with the new script, even without a reactive icon.
Report comment to moderator  
Reply With Quote
Unread 04-02-09, 08:36 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
Mystery solved!

[Black Coffee] works for me, most of the time.
Thanks! It definitely gave me this but now I am awake!

s, Fonjask
__________________
~~~~~~~~~~~~
Report comment to moderator  
Reply With Quote
Unread 04-02-09, 08:33 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
Guess I should've taken more than 4 hours of sleep last night >.<
Mystery solved!

[Black Coffee] works for me, most of the time.
__________________
"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-02-09, 08:23 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's what your, and my first macro are doing. He just stated what it does now.
That's what he's looking for.
Or is my grasp of the english language that poor? Oo I dunno, I'm a german.
If I'm wrong, sorry
Oh wait...



Guess I should've taken more than 4 hours of sleep last night >.<
__________________
~~~~~~~~~~~~
Report comment to moderator  
Reply With Quote
Unread 04-02-09, 08:21 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 Angrysteel
2. If you are mounted, and hit the macro again, it will dismount you and immediately resummon another mount.
That's what your, and my first macro are doing. He just stated what it does now.

Originally posted by Angrysteel
Looking for a way to dismount, without summoning another mount immediately.
That's what he's looking for.

Or is my grasp of the english language that poor? Oo I dunno, I'm a german.
If I'm wrong, sorry
__________________
"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 08:22 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
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
Post A Reply



Category Jump: