Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(11 Kb)
Download
Updated: 12-09-14 11:10 PM
Pictures
File Info
Compatibility:
Warlords of Draenor Pre-Patch (6.0.3)
Updated:12-09-14 11:10 PM
Created:01-02-11 08:26 PM
Downloads:1,420
Favorites:10
MD5:
6.0.3

sCompanions

Version: 2.0
by: Seerah [More]

sCompanions creates slash commands for flying mounts, ground mounts, and pets. These can then be placed into macros. (I use these with OPie, personally, having it use the flying mount macro as the default action for the ring.)

/scompanions ground
/scompanions air
/scompanions pet

Any of the above will select a mount or pet at random.


You can have an ignore list - see the INSTRUCTIONS for ignoring mounts and companions.txt file for details.
Note: the game now provides feedback on if a mount is usable by your character or not. sCompanions will no longer attempt to summon a mount that you cannot use.


There is no current support for aquatic mounts.


Question #1: How could I put all of these in one macro?
The following script will use sCompanions' slash commands depending on which modifier is held. Shift for ground, Control for a pet, and normal for air.

Code:
/run local f=hash_SlashCmdList["/SCOMPANIONS"] if IsShiftKeyDown() then f("ground") elseif IsControlKeyDown() then f("pet") else f("air") end
Question #2: I don't like this mount/pet - how can I make sCompanions ignore it?
As mentioned, read the "INSTRUCTIONS for ignoring mounts and companions.txt" file, added with version 1.2, for info on how to do this.

Question #3: Why doesn't this work with Running Wild?
Running Wild (the Worgen "mount") works as a spell and is not part of the companions interface. On my Worgen, before I got a regular mount, I added /cast Running Wild to the top of my /sCompanions_ground macro. This uses Running Wild on my Worgen, but the sCompanions command on the other characters. ("Mount" spells may be supported in a future version.)

Question #4: How can I add my seahorse to one of the macros?
There are two choices - you can use a modifier, or you can check to see if you're swimming.
Code:
/cast [mod] Abyssal Seahorse
/stopmacro [mod]
/scompanions air
Code:
/cast [swimming] Abyssal Seahorse
/stopmacro [swimming]
/scompanions air
Question #4: How can I use Travel Form if I'm in combat instead of a ground mount?
You'd follow the basic example of the above macro.
Code:
/cast [combat] Travel Form
/stopmacro [combat]
/scompanions ground

2.0
- rewritten from the ground up
- updated for WoD and the new mount journal API
- updated LibPetJournal-2.0

1.3.1
- updated TOC for 5.1
- fixed renamed pet journal function calls
- updated LibPetJournal-2.0

1.3
- updated for new Pet Journal and MoP
- now uses LibPetJournal-2.0 to get around API wonkiness and headaches
- updated ignore instructions to show how to ignore per character

1.2.2
- fixed typo in file name of the ignore readme
- bumped interface number in the TOC for 4.3
- tweaked table structures to use local variables
- known bug (still): randomly, ground mounts get put into both tables, meaning that their big flags show that they can fly. A /reload fixes this.

1.2.1
- oops, removed some test code - you can summon your Core Hound Pup again if you didn't have an ignore list set up

1.2
- now uses new bit flags in API to identify mounts! No need to keep a list- air and ground mounts will automatically be determined.
- you can now have an ignore list (since it will now pick from all mounts rather than what you have listed) - see the INSTRUCTIONS for ingnoring mounts and companions.txt file for details
- you will no longer dismiss a pet by sCompanions selecting the same one that's already out - you'll get a new pet in that case
Optional Files (0)


Archived Files (6)
File Name
Version
Size
Author
Date
1.3.1
11kB
Seerah
12-01-12 02:35 PM
1.3
11kB
Seerah
11-02-12 10:24 PM
1.2.2
2kB
Seerah
12-16-11 11:35 PM
1.2.1
2kB
Seerah
08-14-11 10:06 PM
1.2
2kB
Seerah
08-07-11 12:19 AM
1.1
1kB
Seerah
01-02-11 08:26 PM


Post A Reply Comment Options
Unread 12-17-11, 12:21 AM  
rocnroll
A Flamescale Wyrmkin
 
rocnroll's Avatar

Forum posts: 111
File comments: 41
Uploads: 0
Your macro in option #1 doesn't seem to work, though the addon works wonderfully if I use /scompanion command. Any suggestions for 4.3?

Thanks
rocnroll is offline Report comment to moderator  
Reply With Quote
Unread 12-17-11, 02:00 PM  
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 9708
File comments: 606
Uploads: 25
Hmm... It may have something to do with the changes to the SlashCmdList table in 4.3. I'll have a look at it.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

[SIGPIC][/SIGPIC]
Seerah is offline Report comment to moderator  
Reply With Quote
Unread 01-05-12, 03:51 PM  
Malthus
A Murloc Raider
 
Malthus's Avatar

Forum posts: 8
File comments: 47
Uploads: 0
Originally Posted by Seerah
Hmm... It may have something to do with the changes to the SlashCmdList table in 4.3. I'll have a look at it.
I think there were just a few small mistakes in that code as this seems to work for me well:

Code:
/run local f=SlashCmdList["SCOMPANIONS"]; if IsShiftKeyDown() then f("ground") elseif IsControlKeyDown() then f("pet") else f("air") end
Malthus is offline Report comment to moderator  
Reply With Quote
Unread 01-05-12, 09:49 PM  
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 9708
File comments: 606
Uploads: 25
Originally Posted by Malthus
Originally Posted by Seerah
Hmm... It may have something to do with the changes to the SlashCmdList table in 4.3. I'll have a look at it.
I think there were just a few small mistakes in that code as this seems to work for me well:

Code:
/run local f=SlashCmdList["SCOMPANIONS"]; if IsShiftKeyDown() then f("ground") elseif IsControlKeyDown() then f("pet") else f("air") end
Wow, would you look at that?.... I never realized that I had typed IsCtrlKeyDown() instead of IsControlKeyDown() when I did the example in the description. Probably did it because the macro conditional is [mod:ctrl]. >.< Good catch!!!

(PS- you can take out your semi-colon if you want to save a character space. )
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

[SIGPIC][/SIGPIC]
Seerah is offline Report comment to moderator  
Reply With Quote
Unread 01-10-12, 11:28 PM  
rocnroll
A Flamescale Wyrmkin
 
rocnroll's Avatar

Forum posts: 111
File comments: 41
Uploads: 0
Thank you, works like a charm. Very efficient.
rocnroll is offline Report comment to moderator  
Reply With Quote
Unread 10-15-14, 05:44 PM  
rocnroll
A Flamescale Wyrmkin
 
rocnroll's Avatar

Forum posts: 111
File comments: 41
Uploads: 0
Any word on an update or does it work with 6/0/2?
rocnroll is offline Report comment to moderator  
Reply With Quote
Unread 10-15-14, 07:24 PM  
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 9708
File comments: 606
Uploads: 25
Originally Posted by rocnroll
Any word on an update or does it work with 6/0/2?
There were some changes to the mount journal and sCompanions needs fixed up. I haven't had a chance to get to it yet, as this patch came at a very busy time for me.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

[SIGPIC][/SIGPIC]
Seerah is offline Report comment to moderator  
Reply With Quote
Unread 10-15-14, 08:34 PM  
rocnroll
A Flamescale Wyrmkin
 
rocnroll's Avatar

Forum posts: 111
File comments: 41
Uploads: 0
Originally Posted by Seerah
Originally Posted by rocnroll
Any word on an update or does it work with 6/0/2?
There were some changes to the mount journal and sCompanions needs fixed up. I haven't had a chance to get to it yet, as this patch came at a very busy time for me.
Thank, you. I can wait.
rocnroll is offline Report comment to moderator  
Reply With Quote
Unread 12-09-14, 11:30 PM  
rocnroll
A Flamescale Wyrmkin
 
rocnroll's Avatar

Forum posts: 111
File comments: 41
Uploads: 0
Yayy! Installing now!
__________________
rocnroll is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: