Download
(11Kb)
Download
Updated: 01-15-21 01:17 PM
Pictures
File Info
Compatibility:
Shadowlands patch (9.0.2)
Battle for Azeroth (8.0.1)
Shadows of Argus (7.3.0)
Updated:01-15-21 01:17 PM
Created:01-02-11 08:26 PM
Downloads:3,439
Favorites:11
MD5:
Categories:Mounts & Pets, Battle for Azeroth Beta

sCompanions

Version: 2.0.6
by: Seerah [More]

WARNING: In BfA, an error will occur if a file listed in the TOC does not exist to load. As such, this addon has been updated with a pre-existing, empty ignore.lua file. IF YOU HAVE ALREADY CREATED AN ignore.lua FILE, YOU WILL NEED TO BACK IT UP OR IT WILL BE OVERWRITTEN.


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.6
- updated TOC for Shadowlands
- updated LibPetJournal-2.0

2.0.5
- update for BfA - added an empty ignore.lua file because 8.0 will error if a file listed in the TOC does not exist at load
- edited the instructions file accordingly
- IF YOU HAVE ALREADY CREATED AN ignore.lua FILE, YOU WILL NEED TO BACK IT UP OR IT WILL BE OVERWRITTEN

2.0.4
- fixed: infinite loop when all mounts are disabled from use (some phases in Legion)
- fixed: leaked global variable
- fixed: nil variable error in "no mounts" message

2.0.3
- fixed: script ran too long error - sCompanions now checks InCombatLockdown() and IsFalling()

2.0.2
- updated for Legion

2.0.1
- now notices when you try to call a pet while in combat and will attempt to do it when you are out of combat

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)


Post A Reply Comment Options
Unread 12-09-14, 11:30 PM  
JDoubleU00
A Firelord
 
JDoubleU00's Avatar
AddOn Author - Click to view AddOns

Forum posts: 463
File comments: 82
Uploads: 2
Yayy! Installing now!
__________________
Author of JWExpBar and JWRepBar.
Report comment to moderator  
Reply With Quote
Unread 10-15-14, 08:34 PM  
JDoubleU00
A Firelord
 
JDoubleU00's Avatar
AddOn Author - Click to view AddOns

Forum posts: 463
File comments: 82
Uploads: 2
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.
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: 10860
File comments: 687
Uploads: 33
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]
Report comment to moderator  
Reply With Quote
Unread 10-15-14, 05:44 PM  
JDoubleU00
A Firelord
 
JDoubleU00's Avatar
AddOn Author - Click to view AddOns

Forum posts: 463
File comments: 82
Uploads: 2
Any word on an update or does it work with 6/0/2?
Report comment to moderator  
Reply With Quote
Unread 01-10-12, 11:28 PM  
JDoubleU00
A Firelord
 
JDoubleU00's Avatar
AddOn Author - Click to view AddOns

Forum posts: 463
File comments: 82
Uploads: 2
Thank you, works like a charm. Very efficient.
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: 10860
File comments: 687
Uploads: 33
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]
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
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: 10860
File comments: 687
Uploads: 33
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]
Report comment to moderator  
Reply With Quote
Unread 12-17-11, 12:21 AM  
JDoubleU00
A Firelord
 
JDoubleU00's Avatar
AddOn Author - Click to view AddOns

Forum posts: 463
File comments: 82
Uploads: 2
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
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: