3 replies [Last post]
Zwipple
Zwipple's picture
User offline. Last seen 2 years 18 weeks ago. Offline
Joined: 08/05/2009
Posts: 33

<UPDATED: Scroll down a bit for newer versions of the "Switch" and "Follow" scripts.>

Greetings,

Below you'll find GCP command scripts I generated to allow the integration of Jamba's setmaster and stobed follow functionality into GCP.

This first one is what I'm using in conjunction with GCP's newly added WoW window swaping feature. This sets whomever is currently in your "main" window to Jamba's master, thus moving the little Jamba Team monitor window to the "main" window. Note: You need to name the script something other than Swap (I named mine Switch) or you'll end up with a nasty infinite loop. Note2: The /focus and /assist macros are not required, I include them for convenience as I tend to use focustarget a lot in my spell macros.

Switch:

<<All>>
if %$LeaderChan% = 1
macro /promote toon1
macro /focus toon1
macro /assist focus
macro /jamba setmaster toon1
endif
if %$LeaderChan% = 2
macro /promote toon2
macro /focus toon2
macro /assist focus
macro /jamba setmaster toon2
endif
if %$LeaderChan% = 3
macro /promote toon3
macro /focus toon3
macro /assist focus
macro /jamba setmaster toon3
endif
if %$LeaderChan% = 4
macro /promote toon4
macro /focus toon4
macro /assist focus
macro /jamba setmaster toon4
endif
if %$LeaderChan% = 5
macro /promote toon5
macro /focus toon5
macro /assist focus
macro /jamba setmaster toon5
endif
Chan 1
Swap 1,%$LeaderChan%
<<All>>
Hit ^`
Set ToonX, %$LeaderChan%
Translate ToonX,`,+`,^`,%`,^+`,%+`,%^`,%^+`
Hit %ToonX%
chan %$LeaderChan%

Next, we'll integrate Jamba's strobed follow functionality. You'll need to modify two scripts; Follow and Halt (I've only included HaltRelease below for completeness). Note: The setmaster's in the Follow script are indeed redundant and should not be required given the Switch script above, but leaving them out resulted in inconsistant results for some reason. So, they're there (for now) until I figure out why. Note2: Again, the /focus and /assist macros are not required. Note3: You'll notice that my movement keys are non-standard (I use WERSDF instead of QWEASD), if you're using standard movement keys, you'll need to adjust accordingly.

Follow:

<<All>>
if %$LeaderChan% = 1
macro /focus toon1
macro /assist focus
macro /jamba setmaster toon1
macro /jamba-follow strobeon toon1
endif
if %$LeaderChan% = 2
macro /focus toon2
macro /assist focus
macro /jamba setmaster toon2
macro /jamba-follow strobeon toon2
endif
if %$LeaderChan% = 3
macro /focus toon3
macro /assist focus
macro /jamba setmaster toon3
macro /jamba-follow strobeon toon3
endif
if %$LeaderChan% = 4
macro /focus toon4
macro /assist focus
macro /jamba setmaster toon4
macro /jamba-follow strobeon toon4
endif
if %$LeaderChan% = 5
macro /focus toon5
macro /assist focus
macro /jamba setmaster toon5
macro /jamba-follow strobeon toon5
endif

--

Halt:

<<All>>
macro /jamba-follow strobeoff
<<toon2>>
Press w
<<toon3>>
Press d
<<toon4>>
Press r
<<toon5>>
Hit d

--

HaltRelease:

<<toon2>>
Release w
<<toon3>>
Release d
<<toon4>>
Release r
<<toon5>>
NULL

---

Overall note: I tried several different combinations of Jamba's "/" commands using the "all" tag. These would have significantly shortened the above scripts, but I got unreliable results. It'd work most of the time, but inevitably would fail at the worst possible moment. The above rather long scripts have (so far) proven reliable.

Overall note2: You'll need to change toon1-toon5 to match your own toon's names.

Overall note3: If you would like to try using non-standard movement keys, see Phil's post: http://www.gamecommanderpro.com/node/101 concerning a modification you'll need to make to your GameCommanderPro.ini file for each of your teams. Here's one of mine:

; which game are we running
GameProfile C:\GameCommanderPro\Game Support\World Of Warcraft.GCPGame
; start a number of copies of game
Run C:\Games\wow1\Wow.exe,1,World Of Warcraft
Run C:\Games\wow2\Wow.exe,2,World Of Warcraft
Run C:\Games\wow3\Wow.exe,3,World Of Warcraft
Run C:\Games\wow4\Wow.exe,4,World Of Warcraft
Run C:\Games\wow5\Wow.exe,5,World Of Warcraft
; Set player names for each character
Character 1,toon1,Tank,PALADIN,acct1,realm
Character 2,toon2,DPS,DRUID,acct2,realm
Character 3,toon3,DPS,WARLOCK,acct3,realm
Character 4,toon4,DPS,SHAMAN,acct4,realm
Character 5,toon5,Heals,PRIEST,acct5,realm
; load workspace for current configuration
LoadWorkspace
;*
;*********************************************************
;* Do not edit above these line
;* The area above this is modified by the profile editor
;*********************************************************
;*
; set keys that we won't use, so that system can use them
; IMPORTANT: If you change these:
; Delete File SaveBindings.txt from the same folder
; as this file - then perform a manual upload
; when you next start GCP
POOLKEYS ^,a,x
POOLKEYS ^,0,9
POOLKEYS %,a,x
POOLKEYS %,0,9
POOLKEYS ^+,a,z
POOLKEYS ^+,0,9
POOLKEYS %+,a,x
POOLKEYS %+,0,9
POOLKEYS %^+,a,z
POOLKEYS %^+,0,9
; <Zwipple> Added following line to allow for use of custom movement keys (WERSDF)
SPECIALKEYS WERSDF
; Shows extra options for more technical people
;DEBUG
; Run initial command from recently loaded profile
Execute Logon

Enjoy!

<edit1: names changed to protect the guilty>
<edit2: formating>
<edit3: updated versions>

Jeremy
Jeremy's picture
User offline. Last seen 1 year 25 weeks ago. Offline
Joined: 06/14/2009
Posts: 268
Just wanted to post a tip

Just wanted to post a tip here with v1.2.0.10+ you can replace the huge "if" statment with the following.

macro /promote %$Leader%
macro /focus %$Leader%
macro /assist %$Leader%
macro /jamba %$Leader%

This will do the same "if" statement just keep it hidden from you and its a lot easier to type.

__________________

GameCommanderPro Graphics Designer / Software Engineer

Zwipple
Zwipple's picture
User offline. Last seen 2 years 18 weeks ago. Offline
Joined: 08/05/2009
Posts: 33
Cool Beans!

Jeremy wrote:
Just wanted to post a tip here with v1.2.0.10+ you can replace the huge "if" statment with the following.

Very nice, thank you Jeremy.

Zwipple
Zwipple's picture
User offline. Last seen 2 years 18 weeks ago. Offline
Joined: 08/05/2009
Posts: 33
Updated

Following are updated (much shorter) versions of my previous "Switch" and "Follow" scripts using the new %$Leader% parameter added as of GCP v1.2.0.10:

Switch:

<<All>>
macro /promote %$Leader%
macro /focus %$Leader%
macro /assist %$Leader%
macro /jamba setmaster %$Leader%
Chan 1
Swap 1,%$LeaderChan%
<<All>>
Hit ^`
Set ToonX, %$LeaderChan%
Translate ToonX,`,+`,^`,%`,^+`,%+`,%^`,%^+`
Hit %ToonX%
chan %$LeaderChan%

Follow:

<<All>>
macro /focus %$Leader%
macro /assist %$Leader%
macro /jamba setmaster %$Leader%
macro /jamba-follow strobeon %$Leader%

Thank you again Jeremy.

Zwipple