All in one pet cadding macro

macros macros macros

Moderators: Phineas, noivad

Post Reply
User avatar
Destian
Trainer
Posts: 1921
Joined: Fri Jun 11, 2004 10:51 am
Profession: Healer/Slug Wrangler
Race: Human
Player Status: Spambot

All in one pet cadding macro

Post by Destian » Fri Mar 29, 2013 4:59 pm

I'm trying to put together an all in one pet cadding macro that will heal an exile if I have them highlighted but heal my pet if no exile is highlighted.

Can anyone give me advice on how I'd do this?

Thanks in advance.
A video guide to healer pets: http://www.youtube.com/watch?v=I6ejD_9X1io
"Solomon chuckles"

User avatar
warawonda
Exile
Posts: 230
Joined: Fri Feb 11, 2011 8:39 pm
Profession: Mystic
Race: Sylvan
Player Status: Spambot
Location: Puzzle Island

Re: All in one pet cadding macro

Post by warawonda » Sat Mar 30, 2013 4:29 am

can you cad your pet? how?
the rich get richer, and the poor get poorer; enter clanlord, and they wonder why no one new joins and stays on

User avatar
Destian
Trainer
Posts: 1921
Joined: Fri Jun 11, 2004 10:51 am
Profession: Healer/Slug Wrangler
Race: Human
Player Status: Spambot

Re: All in one pet cadding macro

Post by Destian » Sat Mar 30, 2013 5:58 am

warawonda wrote:can you cad your pet? how?
With cad equipped, "/use /pet".

I basically need a way to tell the macro that if I have no one selected, heal my pet instead. Just not sure how to go about doing that.
A video guide to healer pets: http://www.youtube.com/watch?v=I6ejD_9X1io
"Solomon chuckles"

User avatar
Borzon
Arilon Legacy
Arilon Legacy
Posts: 646
Joined: Sat Aug 28, 2010 5:29 am
Profession: Bloodmage
Race: Sylvan
Player Status: Inactive

Re: All in one pet cadding macro

Post by Borzon » Sat Mar 30, 2013 6:40 am

I'd say make a loop that checks if you have anyone selected, every second or so, if not make it call a pet heal macro, and have a hotkey to call the pet heal macro just in case.

User avatar
warawonda
Exile
Posts: 230
Joined: Fri Feb 11, 2011 8:39 pm
Profession: Mystic
Race: Sylvan
Player Status: Spambot
Location: Puzzle Island

Re: All in one pet cadding macro

Post by warawonda » Sat Mar 30, 2013 6:54 am

"/t"
{
label top
if @selplayer.name == @selplayer.name
"/use " @selplayer.name " \r"
else
"/use /pet \r"
end if
goto top
}
the rich get richer, and the poor get poorer; enter clanlord, and they wonder why no one new joins and stays on

User avatar
Borzon
Arilon Legacy
Arilon Legacy
Posts: 646
Joined: Sat Aug 28, 2010 5:29 am
Profession: Bloodmage
Race: Sylvan
Player Status: Inactive

Re: All in one pet cadding macro

Post by Borzon » Sat Mar 30, 2013 9:53 am

That would work I guess, but might cause lag because you keep "mashing" the button, I'd say add a pause somewhere, or make it remember the selected player and only make it cad the next person when you select a new person.

User avatar
Destian
Trainer
Posts: 1921
Joined: Fri Jun 11, 2004 10:51 am
Profession: Healer/Slug Wrangler
Race: Human
Player Status: Spambot

Re: All in one pet cadding macro

Post by Destian » Sat Mar 30, 2013 9:55 am

Ooh, that could work.

But what if I also want to make it determine whether I'm holding an asklep or a moonstone and then self-heal if moonstone and cad heal if not?

EDIT: Actually, never mind. That'll work GREAT. Thanks!
A video guide to healer pets: http://www.youtube.com/watch?v=I6ejD_9X1io
"Solomon chuckles"

User avatar
noivad
Order of the White Elephant
Order of the White Elephant
Posts: 3327
Joined: Wed Oct 08, 2003 4:04 pm
Profession: Fighter
Race: Sylvan
Player Status: Active
Location: SF Bay Area
Contact:

Re: All in one pet cadding macro

Post by noivad » Tue May 07, 2013 5:46 pm

Destian wrote:Ooh, that could work.

But what if I also want to make it determine whether I'm holding an asklep or a moonstone and then self-heal if moonstone and cad heal if not?

EDIT: Actually, never mind. That'll work GREAT. Thanks!
This might be overkill, but it wouldn't be too hard to modify this macro http://www.noivad.net/files/macros/moon ... ctions.txt to make either the healclicked function looks for no one selected or have an F-key usually first set for a selected player and then heal your pet instead of the last target.

Using the first method, you would want to modify the
healClicked function:

Code: Select all

healClicked
{
if startup == 1
	setglobal startup 0
	message "healClicked Online"
end if
"/select " @click.simple_name "\r"
	if @my.right_item == "chain"
		"/pull " @selplayer.name "\r"
		message "***Chaining, please use F3 or F4 to switch to your moonstone or cad.***"
	else 
			call cadswap
			setglobal cadTarget @selplayer.simple_name
			//message "You are healing " @selplayer.name 
			"/use " cadTarget "\r"
	end if
end if
}
or you could simply remap a F-key later in the macro from setting it to a player to clearing it just for you pet:
Mapped to F12:

Code: Select all

f12						call staticTarget5
shift-f12				call staticTarget5Set

Code: Select all

staticTarget5
{
call cadswap
if cadTarget[5] == ""
	setglobal cadTarget[5] @selplayer.simple_name //<**** try changing this line to: setglobal cadTarget[5] '/pet' ?
	message "*Set " cadTarget[5] " as cad target F12."
end if
"/select " cadTarget[5] "\r"
"/use " @selplayer.simple_name "\r"
}

staticTarget5Set 
{
call cadswap
setglobal n 5
setglobal t 12
call staticTargetSet
}

staticTargetSet
{
if cadTarget[n] == @selplayer.simple_name 
	"/use /lock " cadTarget[n] "\r"
else
	setglobal  cadTarget[n]  @selplayer.simple_name
	"/use " cadTarget[n] "\r"
	message "*Set " cadTarget[n] " as cad target F[" t "]."
end if
}
http://www.clanlord.net/
Org Du Lac's bestiary: http://bestiary.clanlord.net/index.html
Gil Galad’s Pirates http://pirates.clanlord.net/ & Ranger Studies: http://studies.clanlord.net/
?security warning:View cert•CL players assess valid by refs

Post Reply