Page 1 of 1

Warden Pet - enable/disable autoshot

Posted: Sat Mar 16, 2013 10:09 am
by tajnyuser
Hi!

How can i disable autoshot Warden Pet - Chiron Skills in micromacro if it's enable (have gold border and pet using skill).
If i use this macro ingame, i can enable and disable in one button:

Code: Select all

/script UsePetAction(5, true)
But i don't know how i can first check actually skill status.

for example:
if PET.SKILL.5 = enable
printf("Skill Enable);
else
printf("Skill Disable");
end

Re: Warden Pet - enable/disable autoshot

Posted: Sat Mar 16, 2013 12:54 pm
by rock5
According to the pet class

Code: Select all

local icon,active,autoCastAllowed = RoMScript("GetPetActionInfo(5)")
"active" will be true if the skill is enabled.

Re: Warden Pet - enable/disable autoshot

Posted: Sat Mar 16, 2013 7:07 pm
by lisa
The bot will automatically use the warden pet skills accrding to the table I set up, there are no user options for it, so the bot will activate them even if you deactivate them.
To change that you will need to open classes/pet.lua and around line 9 you will see a table, the chiron part looks like this

Code: Select all

		[4] = {
		name = GetIdName(102803), -- chiron the centaur
		skillid = 494212,
		skill5name = "CENTAURS_ARROW",
		skill5auto = "true",
		skill6name = "VALIANT_SHOT",
		skill6auto = "true"}
if you don't want the skill to be used then change it to false.

Code: Select all

		skill5auto = "false",