Page 6 of 6

Re: Warden pet class

Posted: Fri May 04, 2012 9:11 am
by lisa
well without the check it would still do the romscript GetPetActionInfo(5) when ever any character changes address, not a huge deal but I'd still prefer the check =)

Re: Warden pet class

Posted: Fri May 04, 2012 2:01 pm
by abron1
that works perfect now guys thanks...i am not sure if you guys want to add it to the bot...thanks so much

Re: Warden pet class

Posted: Sat Jul 21, 2012 9:38 pm
by abron1
since the patch the warden pet script needs to be updated because the wardens buffs are short buffs that don't need to summon the pet anymore and the chiron skill only uses one skill instead of both.. i would edit the pet script but i don't know what to take out to make work like its supose too.

Re: Warden pet class

Posted: Sat Jul 21, 2012 11:39 pm
by lisa
update to rev 728. They made a few changes to how pets work, hopefully I got them all.

Re: Warden pet class

Posted: Sat Jul 20, 2013 12:58 pm
by 883Dman
This driving me crazy. I want to resummon my pet if it's hp drops below x%. I found some older references to this exact thing but I cannot get them to work.

Code: Select all

<skills_warden>
      <skill name="SCOUT_VAMPIRE_ARROWS"      hotkey="MACRO" priority="110" />
      <skill name="SCOUT_SHOT"         hotkey="MACRO" priority="100" pullonly="true"/>
       <skill name="WARDEN_POWER_OF_THE_WOOD_SPIRIT"	  			hotkey="MACRO" priority="90" />
       <skill name="WARDEN_CHARGED_CHOP"	  			hotkey="MACRO" priority="70" />
	<skill name="WARDEN_HEART_OF_THE_OAK"   hotkey="MACRO" priority="100"  />
	  <skill name="WARDEN_ELVEN_PRAYER"      hotkey="MACRO" priority="150" />
	<skill name="WARDEN_MOVEMENT_RESTRICTION"   hotkey="MACRO" priority="80" />
     <skill name="WARDEN_BRIAR_SHIELD"      hotkey="MACRO" priority="120" inbattle="false" />
     <skill name="WARDEN_PROTECTION_OF_NATURE"   hotkey="MACRO" priority="100"  />
      <skill name="WARDEN_SAVAGE_POWER"      hotkey="MACRO" priority="100" autouse="false" />
      <skill name="WARDEN_MORALE_BOOST"      hotkey="MACRO" priority="1" autouse="false" />
      <skill name="WARDEN_ELVEN_GUIDANCE"      hotkey="MACRO" priority="1" autouse="false" />
   	  
   <skill name="WARDEN_SUMMON_OAK_WALKER"      hotkey="MACRO" priority="90" autouse="false" />
	</skills_warden>

	<skills_druid>
		<skill name="MAGE_FIREBALL"          	hotkey="MACRO" priority="95" />
		<skill name="MAGE_LIGHTNING"         	hotkey="MACRO" priority="90" />
		<skill name="DRUID_EARTH_PULSE"      	hotkey="MACRO" priority="90" />
		<skill name="DRUID_SUMMON_SANDSTORM"    hotkey="VK_5" priority="90" />
		<skill name="DRUID_RECOVER"          	hotkey="MACRO" priority="90" hpper="60" />
	
		<skill name="DRUID_EARTH_ARROW"      	hotkey="MACRO" priority="70" />
		
	</skills_druid>
	
	<onLoad><![CDATA[
		-- Additional Lua code to execute after loading the profile
		-- and before the bot starts. e.g. You could overwrite profile settings here
		-- like: changeProfileOption("HP_REST", 60);
	]]></onLoad>

	<onDeath><![CDATA[
		-- Additional Lua code to execute on death
		-- pauseOnDeath(); -- Stop the script
		-- player:logout();	-- logout
	]]></onDeath>

	<onLeaveCombat><![CDATA[
	 
		--useGoodie("xppot"); -- xp potion powerful
		useGoodie("speed"); -- Unbridled Enthusiasm
		useGoodie("luck"); --Turn of Luck Powder Dust
		useGoodie("defense"); --Scarlet Love
		--useGoodie("critp");
		useGoodie("patt3");
		useGoodie("pdmg");
		if player:findNearestNameOrId("Mysterious Bag") then
        player:target_Object("Mysterious Bag")
       yrest(2000) -- If not enough time to pick up bag, increase it.
 end	   

		

	]]></onLeaveCombat>

Re: Warden pet class

Posted: Sat Jul 20, 2013 1:18 pm
by rock5
So what code did you find? That code you showed us has nothing to do with summoning a pet early and there are no options included in the bot to do it. Although maybe there should be. Re-summoning a pet, that is nearly dead instead of healing it, is common practice isn't it?

Re: Warden pet class

Posted: Sat Jul 20, 2013 2:48 pm
by 883Dman
of course I cannot find it again but it was similar to

Code: Select all

 <onLeaveCombat><![CDATA[
      -- Additional Lua code to execute after killing an enemy
      player:update()
      if 65 > (player.Pet.HP/player.Pet.MaxHP * 100) then
      player:target( player.Pet )
      player:cast("WARDEN_ELVEN_PRAYER")
      yrest(1000)
      end
   ]]></onLeaveCombat>
Swap out elven prayer with summon pet and it should work. Only my idiot guy won't resummon even after it dies which it did before I started dinking with it today.
My MM window said it was casting summon oak walker but it didn't actually do anything.

Re: Warden pet class

Posted: Sat Jul 20, 2013 3:08 pm
by rock5
Did you give it enough time to summon the pet?

Re: Warden pet class

Posted: Sat Jul 20, 2013 3:19 pm
by 883Dman
I think I had a yrest in there for 4100. I never saw the casting bar come up though so I don't think that was the problem. I rebooted and I'll try again. Might be an anomaly with clogged memory. I can't even get my guy to cast eleven prayer with any regularity.

Re: Warden pet class

Posted: Sat Jul 20, 2013 3:45 pm
by rock5
I think the bot is set to use Elven Prayer when the pets health reaches 70%. No settings were set up to change it.

Re: Warden pet class

Posted: Sat Jul 20, 2013 5:02 pm
by 883Dman
That's what I read but it isn't even doing that, but no biggie. I ended up just putting
RoMScript("/cast Summon Oak Walker");
yrest (4100)

in one or two waypoints within my grinding loop. Much easier. I was over-thinking things like usual.

Re: Warden pet class

Posted: Sat Jul 20, 2013 5:43 pm
by lisa
If you have elven prayer in your profile it should use it when pet HP is below 70%

skill.lua line 506

Code: Select all

	-- warden pet heal
	if self.Id == 493398 then
		petupdate()
		if pet.Name == "<UNKNOWN>" or ( pet.HP / pet.MaxHP * 100) > 70 then
			return false
		end
	end
In your profile don't add in any other "options" as it will just mess up with the skill usage, ie if you have a hpper it will check your hp and then not get to the pet hp check.

That code was a "bandaid" solution as such but it should still work fine, it is obviously not ideal.

Just tested it and it worked fine.

Code: Select all

Use MACRO: WARDEN_CHARGED_CHOP =>   Starving Wolf (3643/5701)
Use MACRO: WARDEN_POWER_OF_THE_=>   Starving Wolf (2530/5701)
Use MACRO: WARDEN_ELVEN_PRAYER =>   Starving Wolf (461/5701)
Use MACRO: WARDEN_CHARGED_CHOP =>   Starving Wolf (0/5701)
my profile skills

Code: Select all

	<skills_warden>
		<skill name="WARDEN_CHARGED_CHOP"	  			hotkey="MACRO" priority="100" />
		<skill name="WARDEN_ENERGY_ABSORB"	  			hotkey="MACRO" priority="80" inbattle="true" hpper="25" />
		<skill name="WARDEN_SUMMON_SPIRIT_OF_THE_OAK"	hotkey="MACRO" priority="90" />
		<skill name="WARDEN_SUMMON_NATURE_CRYSTAL"	  	hotkey="MACRO" priority="90" autouse="false" />
		<skill name="WARDEN_SUMMON_OAK_WALKER"	  		hotkey="MACRO" priority="90" autouse="false" />
		<skill name="WARDEN_BRIAR_SHIELD"	  			hotkey="MACRO" priority="90" />
		<skill name="WARDEN_POWER_OF_THE_WOOD_SPIRIT"	hotkey="MACRO" priority="100" />
		<skill name="WARDEN_SAVAGE_POWER"				hotkey="MACRO" priority="90" />
		<skill name="WARDEN_POWER_OF_THE_OAK" 			hotkey="MACRO" priority="90" />
		<skill name="WARDEN_ELVEN_PRAYER" 				hotkey="MACRO" priority="90" />
	</skills_warden>

Re: Warden pet class

Posted: Sat Jul 20, 2013 8:59 pm
by 883Dman
My issue now is enabling centaur's arrow when the pet is summoned. Not sure why it's off by default. Any way to change the default to on? I was looking at http://www.solarstrike.net/phpBB3/viewt ... =21&t=3239 but i'm not sure how to implement it.

Re: Warden pet class

Posted: Sat Jul 20, 2013 10:40 pm
by lisa
It should be setting the centraurs arrow to autouse, this is in pet.lua

Code: Select all

		[4] = {
		name = GetIdName(102803), -- chiron the centaur
		skillid = 494212,
		skill5name = "CENTAURS_ARROW",
		skill5auto = "true",
		skill6name = "VALIANT_SHOT",
		skill6auto = "true"}
Any time a skill is used by the bot or a player update is done it will automatically check centaurs arrow and valiant shot are set to autouse, I can't think of how it isn't doing that.

I did just find a typo in pet.lua line 67 though but it would still be setting centaurs arrow to autouse.
should be

Code: Select all

if v.skill6auto == "true" then
and not

Code: Select all

if v.skill5auto == "true" then
I'll blow the cobwebs off my Wd/S and give it s test run

--=== Test Results ===--
It is set to change auto attacks when it summons pet or when changing zones, not every time you use a skill but it does set the auto attacks if the bot is doing the summoning, probably not from any onload code you have. Just set the profile up with the skills properly and it will work fine.

Code: Select all

	<skills_warden>
		<skill name="WARDEN_CHARGED_CHOP"	  			hotkey="MACRO" priority="100" />
		<skill name="WARDEN_ENERGY_ABSORB"	  			hotkey="MACRO" priority="80" inbattle="true" hpper="25" />
		<skill name="WARDEN_SUMMON_SPIRIT_OF_THE_OAK"	hotkey="MACRO" priority="90" autouse="false" />
		<skill name="WARDEN_SUMMON_NATURE_CRYSTAL"	  	hotkey="MACRO" priority="90" autouse="false" />
		<skill name="WARDEN_SUMMON_OAK_WALKER"	  		hotkey="MACRO" priority="90" autouse="false" />
		<skill name="WARDEN_BRIAR_SHIELD"	  			hotkey="MACRO" priority="90" />
		<skill name="WARDEN_POWER_OF_THE_WOOD_SPIRIT"	hotkey="MACRO" priority="100" />
		<skill name="WARDEN_SAVAGE_POWER"				hotkey="MACRO" priority="90" />
		<skill name="WARDEN_POWER_OF_THE_OAK" 			hotkey="MACRO" priority="90" />
		<skill name="WARDEN_ELVEN_PRAYER" 				hotkey="MACRO" priority="90" />
		<skill name="WARDEN_SUMMON_CHIRON_THE_CENTAUR" 	hotkey="MACRO" priority="90" />
	</skills_warden>
or add this to what ever code you use to summon pet..

Code: Select all

setpetautoattacks()

Re: Warden pet class

Posted: Sat Jul 20, 2013 11:14 pm
by 883Dman
RAWR!!!! so simple! Thanks.

Re: Warden pet class

Posted: Tue Jul 23, 2013 11:35 am
by 883Dman
I finally got the onleavecombat to work!

player:update()
if 65 > (player.Pet.HP/player.Pet.MaxHP * 100) then
player:target( player.Pet )
RoMScript("/cast Summon Chiron the Centaur");
yrest (8100)

end

perfect now.

Re: Warden pet class

Posted: Tue Jul 23, 2013 6:52 pm
by lisa
So you didn't try setting up the profile like I said and not having any onleavecombat code ??

The bot is designed to heal ur warden pet for your when it's HP is under 70% and I tested it and it works as intended.

Re: Warden pet class

Posted: Tue Jul 23, 2013 8:35 pm
by 883Dman
I may not have rebooted to make pet.lua work. Not sure. I have to summon my pet b4 it died otherwise I would die. I just dropped warrior and rolled warden so I'm grinding as fast as I can. If my pet dies mid combat i'm screwed LOL. It may not be optimal but it works really well. Couldn't have done it without you even if I am terrible at following directions.

Re: Warden pet class

Posted: Thu Nov 28, 2013 3:26 pm
by trinity1
the warden is not healing the pet even if I set the priority very high for some reason