This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Live
PTR
10.2.5
PTR
10.2.6
Kind of complicated mount macro (needs script)
Post Reply
Return to board index
Post by
ushabti
Hello, I'm in need of some script macro help.
I'm looking for a macro that:
Casts my flying mount if possible (Purple Riding Nether Ray)
Casts my epic land mount if flying is not possible (Ice Mammoth)
This is where it gets complicated. If I'm in Stormwind it casts my secondary land mount (Swift Stormsaber)
I need this because the big mammoth can't fit trought some gates in Stormwind and would be nice to have only one macro for all mounting I need.
I checked the macro article in Wowwiki but didn't understand anything from the script I need, what I did understand is that this macro might be too long to fit the limit WoW has for characters in one message so if thats the case I just figure something else out.
Edit: My guild leader made me macro that works :)
/run local z=GetZoneText(),t; if not(IsFlyableArea()) or (z=="Dalaran" and not(GetSubZoneText()=="Krasus' Landing")) or (z=="Wintergrasp")then t={5} else t={6} end; if (z=="Stormwind City")then t={8} end; CallCompanion("mount",t)
Where the 5 is my mammoth, 6 is my nether ray and 8 is my saber. (The number of the mount in my mount tab)
Post by
pelf
If I were you, I would download the mod Livestock and look through his code to see how he does it. He's already doing checks for flyable and not flyable and whether or not you're in Dalaran/Wintergrasp -- so, everything you need should be there.
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.