Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(11 Kb)
Download
Updated: 12-01-12 02:35 PM
Pictures
File Info
Compatibility:
Landfall (5.1)
Mists of Pandaria (5.0.4)
Updated:12-01-12 02:35 PM
Created:01-02-11 08:26 PM
Downloads:1,389
Favorites:11
MD5:
sCompanions
Version: 1.3.1
by: Seerah [More]
Version 1.3 - Due to a limitation in Blizzard's UI, sCompanions may try to summon an account-wide mount that your character can't actually use due to riding skill or tradeskill requirements. This does not put you in the global cooldown, so you can try again right away. Alternatively, you can set these mounts to be ignored either globally or just for certain characters.

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.


NOTE: WoW's API does not provide a way to determine whether a mount is a ground mount or flying mount. This addon does not keep an extensive database of mounts, either, to keep the file size down (Wowhead lists 290 different mounts currently). As such, you need to open up sCompanions.lua in any text editor in order to list the mounts you wish to use. This also allows you to exclude any mounts you don't wish the addon to choose from. There are two tables to fill:
This is no longer true! Changed in version 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


There is no current support for aquatic mounts, as there is only one so far (not counting the rare sea turtle gained from fishing) and it's only good in one zone, and that's if you've done the quests to obtain it.


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.

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
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 (5)
File Name
Version
Size
Author
Date
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 10-15-14, 08:34 PM  
rocnroll
A Theradrim Guardian
 
rocnroll's Avatar

Forum posts: 68
File comments: 26
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 10-15-14, 07:24 PM  
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 9629
File comments: 593
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, 05:44 PM  
rocnroll
A Theradrim Guardian
 
rocnroll's Avatar

Forum posts: 68
File comments: 26
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 01-10-12, 11:28 PM  
rocnroll
A Theradrim Guardian
 
rocnroll's Avatar

Forum posts: 68
File comments: 26
Uploads: 0
Thank you, works like a charm. Very efficient.
rocnroll 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: 9629
File comments: 593
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-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 12-17-11, 02:00 PM  
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 9629
File comments: 593
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 12-17-11, 12:21 AM  
rocnroll
A Theradrim Guardian
 
rocnroll's Avatar

Forum posts: 68
File comments: 26
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
Post A Reply



Category Jump: