Warden pet class

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Message
Author
kuripot
Posts: 493
Joined: Mon Nov 07, 2011 9:14 pm

Re: Warden pet class

#61 Post by kuripot » Tue Jan 17, 2012 6:48 pm

it's been long time i doing manually edit the database... can you add this in the next commit??

Code: Select all

	<!-- Warden skills -->
	<skill name="WARDEN_THORNY_VINES" id="493933" mana="30" range="50" cooldown="8" type="damage" target="enemy" />


LIZA i don't need to add this in Database??

Code: Select all

	<skill name="WARDEN_VALIANT_SHOT" id="494612" energy="30" cooldown="6" range="250" type="damage" target="enemy" />
	<skill name="WARDEN_CENTAURS_ARROW" id="494333" energy="20" range="250" type="damage" target="enemy" />
before you do the project about Warden Pet Skill i already edit the database.. im not sure it will work even i dont put this in database..

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Warden pet class

#62 Post by lisa » Tue Jan 17, 2012 9:00 pm

if you let the pet use his skills on his own then you won't need to add the pet skills to database, if you use player:cast("petskill") then you will still need them in database.
The pet should be attacking properly now though so you shouldn't need to tell the pet to attack.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Warden pet class

#63 Post by lisa » Wed Jan 18, 2012 12:59 am

I might not have mentioned it but now that I have actually added warden pet usage into the bot you can get rid of all the code you added yourself previously to deal with warden pets.

So if you have player;cast("") with any summon pet skills, delete the code

if you have any code telling pet to attack, delete it

if you have any code trying to make the bot get the pet buff, delete it.

Alsong as you have just 1 buff skill in your proifle and just 1 summon pet skill in profile then the bot will now do everything else for you.

Put simply I suguest creating a new profile and add skills like you would for any other class, forget about adding any special code you needed previously.


This is the profile skills for my Warden/Scout, everything else in profile is as normal.

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>
So it will have chiron out all the time and when I need the buff WARDEN_POWER_OF_THE_OAK it will summon the pet required and then get buff and then resummon chiron, only does this when out of combat.


Also it will heal pet using WARDEN_ELVEN_PRAYER, can't remember the % of hp I set it to use the skill. Just checked, 70%. If you think it should be a different value just say so.
It's in skill.lua line 452

Code: Select all

	if self.Id == 493398 then
		petupdate()
		if pet.Name == "<UNKNOWN>" or ( pet.HP / pet.MaxHP * 100) > 70 then
			return false
		end
	end
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

kuripot
Posts: 493
Joined: Mon Nov 07, 2011 9:14 pm

Re: Warden pet class

#64 Post by kuripot » Wed Jan 18, 2012 1:07 am

this is you want me to remove in pre skill?/

Code: Select all

	target = player:getTarget();
		if player.Class1 == 7 and target.Type == 2 and (not player.Battling) then
			RoMScript("UsePetAction(6)")
			RoMScript("UsePetAction(7)")
			yrest(1000) -- pause to let pet attack before bot
		end

Code: Select all

  <skills_warden>
		<skill name="WARDEN_CHARGED_CHOP"		hotkey="MACRO" priority="90" />
		<skill name="WARDEN_ENERGY_ABSORB"		hotkey="MACRO" priority="70" inbattle="true" hpper="75" />
		<skill name="SCOUT_VAMPIRE_ARROWS"		hotkey="MACRO" priority="110" />
		<skill name="SCOUT_SHOT"			hotkey="MACRO" priority="100" />
		<skill name="WARDEN_MOVEMENT_RESTRICTION"	hotkey="MACRO" priority="80" />
		<skill name="WARDEN_ANTI-MAGIC_ARROW"		hotkey="MACRO" priority="140" />
		<skill name="WARDEN_BRIAR_SHIELD"		hotkey="MACRO" priority="120" inbattle="false" />
		<skill name="WARDEN_SUMMON_CHIRON_THE_CENTAUR"	hotkey="MACRO" priority="90" />
		<skill name="WARDEN_PROTECTION_OF_NATURE"	hotkey="MACRO" priority="100"  />
		<skill name="WARDEN_SAVAGE_POWER"		hotkey="MACRO" priority="1" autouse="false" />
		<skill name="WARDEN_ELVEN_PRAYER"		hotkey="MACRO" priority="90" />
		<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_EXPLOSION_OF_POWER"		hotkey="MACRO" priority="1" autouse="false" />
		<skill name="WARDEN_THORNY_VINES"		hotkey="MACRO" priority="60" />
		<skill name="WARDEN_FRANTIC_BRIAR"		hotkey="MACRO" priority="130" />
   </skills_warden>
i only have 1 summon skill and 1 buff pet skill

Code: Select all

      <skill name="WARDEN_SUMMON_CHIRON_THE_CENTAUR"   hotkey="MACRO" priority="90" />
      <skill name="WARDEN_PROTECTION_OF_NATURE"   hotkey="MACRO" priority="100"  />

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Warden pet class

#65 Post by lisa » Wed Jan 18, 2012 1:13 am

yours looks like it should work fine, are there still issues?

have you fully updated and reverted rom folder?
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

emmanuel04
Posts: 30
Joined: Wed Jun 01, 2011 6:07 am

Re: Warden pet class

#66 Post by emmanuel04 » Wed Jan 18, 2012 1:44 am

I got it to work by reading your last post on the fourms
fully updated and reverted rom folder it still didn't work and said I need
WARDEN_VALIANT_SHOT skill so
I did have to add this to the skills.xml in the datdbase folder



Code:
<skill name="WARDEN_VALIANT_SHOT" id="494612" energy="30" cooldown="6" range="250" type="damage" target="enemy" />
<skill name="WARDEN_CENTAURS_ARROW" id="494333" energy="20" range="250" type="damage" target="enemy" />





And now it works 110% Thanks a Million

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Warden pet class

#67 Post by lisa » Wed Jan 18, 2012 1:53 am

emmanuel04 wrote:said I need
WARDEN_VALIANT_SHOT skill
Only reason you would need those in database is if they are in your profile.
As I said before you don't need them as bot now does all the work for you.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

emmanuel04
Posts: 30
Joined: Wed Jun 01, 2011 6:07 am

Re: Warden pet class

#68 Post by emmanuel04 » Wed Jan 18, 2012 1:57 am

O it was there didnt see it a min ago. Works even better now thanks.. :D

dx876234
Posts: 188
Joined: Sat Jul 24, 2010 6:13 am

Re: Warden pet class

#69 Post by dx876234 » Sun Feb 12, 2012 9:31 am

As battlemunk I needed the fire fairy, I have therefore modified the fairy code to be generic and inserted wind and fire fairy.

In database/skills.xml

Code: Select all

	<skill name="PRIEST_WATER_FAIRY" id="493268" mana="250" casttime="6" inbattle="false" type="summon" target="self" />
	<skill name="PRIEST_FIRE_FAIRY" id="493267" mana="250" casttime="6" inbattle="false" type="summon" target="self" />
	<skill name="PRIEST_WIND_FAIRY" id="493270" mana="250" casttime="6" inbattle="false" type="summon" target="self" />
In classes/pet.lua

Code: Select all

local fairy_db = {}
table.insert(fairy_db, CLASS_WARRIOR, {PetId = 102104, PetSummon = 493267, Buff = 503455})
table.insert(fairy_db, CLASS_SCOUT,   {PetId = 102105, PetSummon = 493268, Buff = 503736})
table.insert(fairy_db, CLASS_MAGE,    {PetId = 102107, PetSummon = 493270, Buff = 503461})

function waterfairy()
	if player.Class1 ~= CLASS_PRIEST or fairy_db[player.Class2] == nil then
		return -- can't have a fairy if class is wrong
	end
	petupdate()

	if pet.Id ~= fairy_db[player.Class2].PetId then -- Fairy 
		if PetWaitTimer == nil or PetWaitTimer == 0 then -- Start timer
			PetWaitTimer = os.time()
			return false
		elseif os.time() - PetWaitTimer < 15 then -- Wait longer
			return false
		end

		if  player.Mounted then
			return
		end

		keyboardRelease(settings.hotkeys.MOVE_FORWARD.key); yrest(500)
		sendMacro("CastSpellByName(\""..GetIdName(fairy_db[player.Class2].PetSummon).."\")")
		--print("Summoning "..GetIdName(fairy_db[player.Class2].PetId))
		repeat
			yrest(1000)
		until not (memoryReadRepeat("int", getProc(), player.Address + addresses.pawnCasting_offset) ~= 0);

		petupdate()
		local icon,active,autoCastAllowed = RoMScript("GetPetActionInfo(5)")
		if active == true then
			sendMacro("UsePetAction(5)")
		end
		player.LastDistImprove = os.time();   -- global, because we reset it while skill use
	else
		PetWaitTimer = 0
	end
	if not pet:hasBuff(fairy_db[player.Class2].Buff) then -- Frost Halo, Accuracy Halo...
		sendMacro("UsePetAction(6)")
		yrest(500)
	end
	if not pet:hasBuff(503753) then -- Conceal
		sendMacro("UsePetAction(7)")
		yrest(500)
	end
end

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Warden pet class

#70 Post by rock5 » Mon Feb 13, 2012 1:24 am

Good work! I would probably change a couple of things before commiting but this should allow all the fairies to be added.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

abron1
Posts: 162
Joined: Wed Feb 22, 2012 12:43 am

Re: Warden pet class

#71 Post by abron1 » Tue Mar 06, 2012 2:33 am

been playing with a wd/wr and for some reason the heart of the oak buff doesn't work i took all the other pet buffs out and replaced that buff with the power of the oak buff (which is oak walker buff).. i basicly replaced the one buff with the other and set it to summon the oak walker to help kill but i just keep spamming trying to use the buff and says buff is unknow maybe the id is wrong but i know i have the set up right because i just switched the two buffs and pets. cut out one buff and put the other and same with the pet to use for help


edit: This what i tried and didn't work

Code: Select all

<skills_warden>
		
<skill name="WARDEN_SUMMON_OAK_WALKER"	hotkey="MACRO" priority="90" />
<skill name="WARDEN_SUMMON_SPIRIT_OF_THE_OAK"  hotkey="MACRO" priority="90" autouse="false" />
<skill name="WARDEN_POWER_OF_THE_WOOD_SPIRIT"	hotkey="VK_9" priority="100" />
<skill name="WARDEN_HEART_OF_THE_OAK" 		hotkey="MACRO" priority="90" />
<skill name="WARDEN_ELVEN_PRAYER" 		hotkey="MACRO" priority="90" />

</skills_warden>

This is what i use on my wd/s that works

Code: Select all

<skills_warden>
		
<skill name="WARDEN_SUMMON_CHIRON_THE_CENTAUR"	hotkey="MACRO" priority="90" />
<skill name="WARDEN_SUMMON_OAK_WALKER"      hotkey="MACRO" priority="90" autouse="false" />
<skill name="WARDEN_POWER_OF_THE_WOOD_SPIRIT"	hotkey="VK_9" priority="100" />
<skill name="WARDEN_POWER_OF_THE_OAK" 		hotkey="MACRO" priority="90" />
<skill name="WARDEN_ELVEN_PRAYER" 		hotkey="MACRO" priority="90" />
	</skills_warden>
Last edited by abron1 on Thu Jan 31, 2013 8:05 pm, edited 3 times in total.

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Warden pet class

#72 Post by lisa » Tue Mar 06, 2012 3:49 am

you are better of posting your profile so we can see exactly what may or may not be wrong.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

abron1
Posts: 162
Joined: Wed Feb 22, 2012 12:43 am

Re: Warden pet class

#73 Post by abron1 » Tue Mar 06, 2012 7:23 pm

i edited my above post to show my changes and one more question is that...is there a way to have the pets skills turn on when they enter the instance because when they zone in they there skills are off?

kuripot
Posts: 493
Joined: Mon Nov 07, 2011 9:14 pm

Re: Warden pet class

#74 Post by kuripot » Wed Mar 07, 2012 7:29 pm

Lisa said.. if can you post profile so can determine if there is any problem or conflict from your class

kuripot
Posts: 493
Joined: Mon Nov 07, 2011 9:14 pm

Re: Warden pet class

#75 Post by kuripot » Wed Mar 07, 2012 7:31 pm

example,... if there is onload,onskill,preskill etc. that designated only in your previous class

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Warden pet class

#76 Post by lisa » Wed Mar 07, 2012 9:44 pm

Code: Select all

<skills_warden>

<skill name="WARDEN_SUMMON_OAK_WALKER" hotkey="MACRO" priority="90" />
<skill name="WARDEN_POWER_OF_THE_WOOD_SPIRIT" hotkey="MACRO" priority="100" />
<skill name="WARDEN_HEART_OF_THE_OAK" hotkey="MACRO" priority="90" />
<skill name="WARDEN_ELVEN_PRAYER" hotkey="MACRO" priority="90" />

</skills_warden>

there is no reason why that wouldn't work, if it isn't then you must have something in your profile causing an issue. Any reason you didn't post your profile like I asked?

Please use code tags.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

abron1
Posts: 162
Joined: Wed Feb 22, 2012 12:43 am

Re: Warden pet class

#77 Post by abron1 » Thu Mar 08, 2012 3:22 am

oh sorry i thought i posted the part you needed and i don't know how to use tags....

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Warden pet class

#78 Post by lisa » Thu Mar 08, 2012 3:54 am

a profile looks like this

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<profile>
	<options>
		<!-- Try the bot with a new char mage                   -->
		<!-- At the pioneer village. Use demo.xml waypoint file -->
		<option name="HP_LOW"				value="85" />
		<option name="MP_LOW_POTION"		value="50" />
		<option name="HP_LOW_POTION"		value="50" />
		<option name="USE_HP_POTION"		value="best" />			<!-- potion select strategy: best|minstack -->
		<option name="USE_MANA_POTION"		value="best" />			<!-- potion select strategy: best|minstack -->
		<option name="USE_PHIRIUS_POTION"	value="false" /> 		<!-- false | true if you want to use the Phirus Potions -->
		<option name="PHIRIUS_MP_LOW"		value="40" />
		<option name="PHIRIUS_HP_LOW"		value="40" />

		<!-- Rest if HP or Mana is below that level -->
		<option name="HP_REST" 				value="15" />
		<option name="MP_REST" 				value="15" />

		<!-- Shopping options, how many of what do you want to keep in your inventory -->
		<option name="HEALING_POTION" 		value="99" />
		<option name="MANA_POTION" 			value="99" />			<!-- set to "0" if not required to buy -->
		<option name="ARROW_QUIVER" 		value="2" /> 			<!-- set to "0" if not required to buy -->
		<option name="THROWN_BAG" 			value="2" />			<!-- set to "0" if not required to buy -->
		<option name="POISON" 				value="30" />			<!-- set to "0" if not required to buy -->

		<!-- either false or arrow or thrown -->
		<option name="RELOAD_AMMUNITION" 	value="false" />		<!-- false|arrow|thrown -->

		<!-- Combat options -->
		<option name="COMBAT_TYPE"        	value="" />				<!-- leave empty or choose ranged/melee if not using class default -->
		<option name="COMBAT_RANGED_PULL" 	value="true" /> 		<!-- only important for melees -->
		<option name="COMBAT_DISTANCE"    	value="200" />
		<option name="MAX_FIGHT_TIME"     	value="15" />			<!-- Max time without damage before break -->
		<option name="DOT_PERCENT"        	value="90" />
		<option name="ANTI_KS"            	value="true" />
		<option name="MAX_TARGET_DIST"    	value="225" />

		<!-- Attack monsters 3 levels above or 10 below your level -->
		<option name="TARGET_LEVELDIF_ABOVE" value="3" />
		<option name="TARGET_LEVELDIF_BELOW" value="10" />

		<!-- Waypoint and movement settings -->
		<option name="WAYPOINTS"			value="" />  			<!-- leave empty to show a list -->
		<option name="RETURNPATH"			value="" />
		<option name="PATH_TYPE"			value="waypoints" />	<!-- waypoints | wander -->
		<option name="WANDER_RADIUS"		value="500" />
		<option name="WAYPOINT_DEVIATION"	value="0" />
		<option name="QUICK_TURN" 			value="true" />

		<!-- Loot settings -->
		<option name="LOOT"               	value="true" />
		<option name="LOOT_ALL"			  	value="false" />  		<!-- Loot all nearby dead mobs after combat -->
		<option name="LOOT_IN_COMBAT"     	value="true" />
		<option name="LOOT_DISTANCE"      	value="100" />
		<option name="LOOT_PAUSE_AFTER"   	value="0" />			<!-- probability in % for a short rest -->

		<!-- Auto selling options when used with player:merchant -->
		<option name="INV_AUTOSELL_ENABLE"	value="false" />		<!-- true | false -->
		<option name="INV_AUTOSELL_FROMSLOT" value="1" /> 			<!-- 1 = bag 1 slot 1 -->
		<option name="INV_AUTOSELL_TOSLOT"	value="60" /> 			<!-- 30 = last slot bag 1 -->
		<option name="INV_AUTOSELL_QUALITY"	value="white,green" /> 	<!-- white,green,blue,purple  -->

		<!-- Harvest options -->
		<option name="HARVEST_DISTANCE"		value="120" />
		<option name="HARVEST_WOOD"			value="true" /> 		<!-- Choose which types to harvest. -->
		<option name="HARVEST_HERB"			value="true" /> 		<!-- "true" = harvest, "false" = do not harvest -->
		<option name="HARVEST_ORE"			value="true" />

		<!-- Eggpet options -->
		<option name="EGGPET_ENABLE_CRAFT"	value="false" />		<!-- If using same slot for assist and craft, onlt 1 can be enabled. -->
		<option name="EGGPET_CRAFT_SLOT"	value="1" />
		<option name="EGGPET_ENABLE_ASSIST"	value="false" />
		<option name="EGGPET_ASSIST_SLOT"	value="1" />
		<option name="EGGPET_CRAFT_RATIO"	value="1:1:1" /> 		<!-- mining:woodworking:herbalism ratio to produce. -->
		<option name="EGGPET_CRAFT_INDEXES"	value="" /> 	 		<!-- override auto craft index for mining,woodworking,herbalism eg. "2,,"-->


		<!-- Log out and resurrect settings -->
		<option name="LOGOUT_TIME" 			value="0" />			<!-- in minutes, 0 = timer disabled -->
		<option name="LOGOUT_SHUTDOWN"		value="false" />
		<option name="LOGOUT_WHEN_STUCK"	value="true" />
		<option name="CLOSE_WHEN_STUCK"		value="true" />
		<option name="RES_AFTER_DEATH" 		value="true" />
		<option name="MAX_DEATHS" 			value="10" /> 			<!-- Log out after this many deaths -->

		<!-- Party Bot options  -->
		<!-- <option name="PARTY"			value="true" /> -->
		<!-- <option name="PARTY_ICONS"		value="true" /> -->
		<!-- <option name="PARTY_INSTANCE"	value="true" /> -->

		<!-- Healing options -->
		<!-- <option name="HEALER_FIGHT"		value="true" /> --> 	<!-- For party bot if you want healer to also fight -->

		<!-- pvp -->
		<!--option name="PVP"			value="true" /> --> 		<!-- To enable PVP, with this set to true it will auto attack any players with red names -->
			
		<!-- For more options and documentation see the RoM Bot Wiki:  -->
		<!-- http://www.solarstrike.net/wiki/index.php5?title=RoM_Bot  -->

	</options>

	<friends>
		<!-- names of friends we help fighting or enemys we don't want to attack -->
		<!-- for umlauts use \129 (ue),\132 (ae),\148 (oe) e.g. K\132fer         -->
		<friend name="MyOtherCharacter1" />
		<friend name="MyOtherCharacter2" />
		<friend name="Elite_Mob_Name1" />
		<friend name="Elite_Mob_Name2" />
	</friends>

	<mobs>
		<!-- names of mobs we want to attack 				-->
		<!-- if no names defined we will attack all mobs	-->
		<mob name="" />
		<mob name="" />
		<mob name="" />
	</mobs>

	<hotkeys>
    	<!-- to communicate with the RoM API / define ingame dummy macro at place 1 -->
		<hotkey name="MACRO"          key="VK_0" />
	</hotkeys>

	<!-- define your skills depending from your actual primary class -->
	<!-- see the example for a priest/mage                           -->
	<!-- delete skills you don't have or don't want to use.          -->
	<!-- For more skills to use see /database/skills.xml             -->
	<!-- demo skills for LvL 1 character for all classes             -->
	<!-- to use a specific key instead of MACRO then use hotkey="VK_1" this example is for hotkey 1 -->
	<skills_priest>
		<skill name="PRIEST_SOUL_SOURCE"     	hotkey="MACRO" priority="110" inbattle="true" hpper="15" />
		<skill name="PRIEST_URGENT_HEAL"     	hotkey="MACRO" priority="100" hpper="50"  />
		<skill name="PRIEST_REGENERATE"      	hotkey="MACRO" priority="90"  hpper="80" />
		<skill name="PRIEST_RISING_TIDE"     	hotkey="MACRO" priority="80" />
		<skill name="PRIEST_WAVE_ARMOR"      	hotkey="MACRO" priority="40"  inbattle="true" />
		<skill name="PRIEST_AMPLIFIED_ATTACK" 	hotkey="MACRO" priority="20" rebuffcut="60" inbattle="false" />
		<skill name="PRIEST_GRACE_OF_LIFE" 		hotkey="MACRO" priority="20" rebuffcut="60" inbattle="false" />
		<skill name="PRIEST_HOLY_AURA"       	hotkey="MACRO" priority="100" inbattle="true" hpper="24" />
		<!--skill name="PRIEST_SOUL_BOND"     	hotkey="MACRO" priority="30" /> -->
		<!--skill name="PRIEST_MAGIC_BARRIER" 	hotkey="MACRO" priority="20" rebuffcut="60" inbattle="false" /> -->
	</skills_priest>

	<skills_warrior>
		<skill name="WARRIOR_SLASH"          	hotkey="MACRO" priority="90" />
		<skill name="WARRIOR_TACTICAL_ATTACK"   hotkey="MACRO" priority="70" />
		<skill name="WARRIOR_PROBING_ATTACK" 	hotkey="MACRO" priority="80" />
		<skill name="WARRIOR_OPEN_FLANK"      	hotkey="MACRO" priority="70" />
		<skill name="WARRIOR_SURPRISE_ATTACK"   hotkey="MACRO" priority="70" pullonly="true" />
		<skill name="WARRIOR_FRENZY"  			hotkey="MACRO" priority="30" inbattle="true" />
		<skill name="WARRIOR_THUNDER"     	  	hotkey="MACRO" priority="70" />
		<skill name="WARRIOR_MOON_CLEAVE"     	hotkey="MACRO" priority="70" />
		<skill name="WARRIOR_BLASTING_CYCLONE"  hotkey="MACRO" priority="70" />
	</skills_warrior>

	<skills_scout>
		<skill name="SCOUT_SHOT"          		hotkey="MACRO" priority="90" />
		<skill name="SCOUT_AUTOSHOT"      		hotkey="MACRO" priority="80" />
		<skill name="SCOUT_WIND_ARROWS"   		hotkey="MACRO" priority="70" />
		<skill name="SCOUT_VAMPIRE_ARROWS" 		hotkey="MACRO" priority="70" />
		<skill name="SCOUT_COMBO_SHOT"        	hotkey="MACRO" priority="95" />
		<skill name="SCOUT_ARROW_OF_ESSENCE"    hotkey="MACRO" priority="90" maxhpper="60" inbattle="true"/>
	</skills_scout>

	<skills_rogue>
		<skill name="ROGUE_SHADOWSTAB"    		hotkey="MACRO" priority="90" />
		<skill name="ROGUE_LOW_BLOW"      		hotkey="MACRO" priority="80" />
		<skill name="ROGUE_HIDE"    			hotkey="MACRO" priority="10" autouse="false" />
		<skill name="ROGUE_INFORMER"    		hotkey="MACRO" priority="80" />
		<skill name="ROGUE_ASSASSINS_RAGE"    	hotkey="MACRO" priority="60" />
		<skill name="ROGUE_WOUND_ATTACK"    	hotkey="MACRO" priority="80" />
	</skills_rogue>

	<skills_mage>
		<skill name="MAGE_FLAME"                hotkey="MACRO" priority="80" />
		<skill name="MAGE_FIREBALL"          	hotkey="MACRO" priority="70" />
		<skill name="MAGE_LIGHTNING"         	hotkey="MACRO" priority="80" />
		<skill name="MAGE_ENERGY_INFLUX" 	  	hotkey="MACRO" priority="30" inbattle="true" />
		<skill name="MAGE_ELEMENTAL_CATALYST"   hotkey="MACRO" priority="30" inbattle="true" />
		<skill name="MAGE_ENERGY_WELL" 		  	hotkey="MACRO" priority="30" inbattle="true" />
	</skills_mage>

	<skills_knight>
		<skill name="KNIGHT_HOLY_STRIKE"    	hotkey="MACRO" priority="90" />
		<skill name="KNIGHT_HOLY_SHIELD"    	hotkey="MACRO" priority="80" inbattle="true" hpper="15" />
		<skill name="KNIGHT_HOLY_SEAL"      	hotkey="MACRO" priority="70" />
		<skill name="KNIGHT_PUNISHMENT"     	hotkey="MACRO" priority="60" />
		<skill name="KNIGHT_ENHANCED_ARMOR"   	hotkey="MACRO" priority="90" />
		<skill name="KNIGHT_MANA_RETURN"   	  	hotkey="MACRO" priority="60" />
		<skill name="KNIGHT_RESOLUTION"   	  	hotkey="MACRO" priority="60" />
		<skill name="KNIGHT_DISARMAMENT"   	  	hotkey="MACRO" priority="70" />
	</skills_knight>

	<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>

	<skills_druid>
		<skill name="DRUID_RECOVER"          	hotkey="MACRO" priority="90" hpper="30" />
		<skill name="DRUID_EARTH_ARROW"      	hotkey="MACRO" priority="80" />
	</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[
		-- Additional Lua code to execute after killing an enemy
	]]></onLeaveCombat>

	<onLevelup><![CDATA[
		-- Additional Lua code to execute after having a levelup
		-- and levelup the skills for a new character (mage or priest recommended)
		-- e.g. sendMacro("SetSpellPoint(_tabnr, _skillnr);"); would levelup a skill
	]]></onLevelup>

	<onSkillCast><![CDATA[
		-- Additional Lua code to execute when casting a skill
		-- Note: arg1 contains the skill being used.
		-- i.e. arg1.Name will be the name of the skill being cast
		-- e.g.:
		--if( 15 > player.HP/player.MaxHP*100 ) then
		--    player:cast("PRIEST_SOUL_SOURCE");
		--elseif( 25 > player.HP/player.MaxHP*100 ) then
		--    player:cast("PRIEST_HOLY_AURA");
		--    player:cast("PRIEST_URGENT_HEAL");
		--    player:cast("PRIEST_URGENT_HEAL");
	]]></onSkillCast>

	<onHarvest><![CDATA[
		-- Additional Lua code to execute directly before the actual harvesting takes place.
		-- Note: arg1 contains the object to be harvested.
		-- i.e. arg1.Name will be the name of the node you are about to harvest
		-- If this snippet returns 'false', the node will *not* be harvested.
		-- All other return values result in the player attempting to harvest the node.
		-- Note that returning 'false' here breaks out of harvesting completely;
		-- You will not attempt to harvest other nearby nodes instead.
	]]></onHarvest>

	<onUnstickFailure><![CDATA[
		-- Lua code to execute when MAX_UNSTICK_TRIALS is reached.
	]]></onUnstickFailure>
</profile>

When you make a post there are a bunch of buttons above the area you type, one of the has "Code" try playing around with it and use preview to test if you got it right or not.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

abron1
Posts: 162
Joined: Wed Feb 22, 2012 12:43 am

Re: Warden pet class

#79 Post by abron1 » Thu Mar 08, 2012 5:47 pm

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<profile>
	<options>
		<!-- Try the bot with a new char mage                   -->
		<!-- At the pioneer village. Use demo.xml waypoint file -->
		<option name="HP_LOW"				value="85" />
		<option name="MP_LOW_POTION"		value="0" />
		<option name="HP_LOW_POTION"		value="0" />
		<option name="USE_HP_POTION"		value="best" />			<!-- potion select strategy: best|minstack -->
		<option name="USE_MANA_POTION"		value="best" />			<!-- potion select strategy: best|minstack -->
		<option name="USE_PHIRIUS_POTION"	value="false" /> 		<!-- false | true if you want to use the Phirus Potions -->
		<option name="PHIRIUS_MP_LOW"		value="40" />
		<option name="PHIRIUS_HP_LOW"		value="40" />

		<!-- Rest if HP or Mana is below that level -->
		<option name="HP_REST" 				value="15" />
		<option name="MP_REST" 				value="15" />

		<!-- Shopping options, how many of what do you want to keep in your inventory -->
		<option name="HEALING_POTION" 		value="0" />
		<option name="MANA_POTION" 			value="0" />			<!-- set to "0" if not required to buy -->
		<option name="ARROW_QUIVER" 		value="0" /> 			<!-- set to "0" if not required to buy -->
		<option name="THROWN_BAG" 			value="0" />			<!-- set to "0" if not required to buy -->
		<option name="POISON" 				value="0" />			<!-- set to "0" if not required to buy -->

		<!-- either false or arrow or thrown -->
		<option name="RELOAD_AMMUNITION" 	value="false" />		<!-- false|arrow|thrown -->

		<!-- Combat options -->
		<option name="COMBAT_TYPE"        	value="" />				<!-- leave empty or choose ranged/melee if not using class default -->
		<option name="COMBAT_RANGED_PULL" 	value="true" /> 		<!-- only important for melees -->
		<option name="COMBAT_DISTANCE"    	value="100" />
		<option name="MAX_FIGHT_TIME"     	value="15" />			<!-- Max time without damage before break -->
		<option name="DOT_PERCENT"        	value="90" />
		<option name="ANTI_KS"            	value="true" />
		<option name="MAX_TARGET_DIST"    	value="90" />

		<!-- Attack monsters 3 levels above or 10 below your level -->
		<option name="TARGET_LEVELDIF_ABOVE" value="30" />
		<option name="TARGET_LEVELDIF_BELOW" value="30" />

		<!-- Waypoint and movement settings -->
		<option name="WAYPOINTS"			value="" />  			<!-- leave empty to show a list -->
		<option name="RETURNPATH"			value="" />
		<option name="PATH_TYPE"			value="waypoints" />	<!-- waypoints | wander -->
		<option name="WANDER_RADIUS"		value="0" />
		<option name="WAYPOINT_DEVIATION"	value="0" />
		<option name="QUICK_TURN" 			value="true" />

		<!-- Loot settings -->
		<option name="LOOT"               	value="true" />
		<option name="LOOT_ALL"			  	value="false" />  		<!-- Loot all nearby dead mobs after combat -->
		<option name="LOOT_IN_COMBAT"     	value="true" />
		<option name="LOOT_DISTANCE"      	value="250" />
		<option name="LOOT_PAUSE_AFTER"   	value="0" />			<!-- probability in % for a short rest -->

		<!-- Auto selling options when used with player:merchant -->
		<option name="INV_AUTOSELL_ENABLE"	value="true" />		<!-- true | false -->
		<option name="INV_AUTOSELL_FROMSLOT" value="1" /> 			<!-- 1 = bag 1 slot 1 -->
		<option name="INV_AUTOSELL_TOSLOT"	value="90" /> 			<!-- 30 = last slot bag 1 -->
		<option name="INV_AUTOSELL_QUALITY"	value="white,green" /> 	<!-- white,green,blue,purple  -->
		<option name="INV_AUTOSELL_IGNORE" value="Herb of Hope,Rare Magic Stone,Disenchant Rune,Blend Rune,Infinite Herb,Shell III,Defence III,Strike III,Harm III,Magic III,Endurance III,Quickness III,Vitality III,Mind III,Resistance III,Vigor III" />
		<!-- Harvest options -->
		<option name="HARVEST_DISTANCE"		value="120" />
		<option name="HARVEST_WOOD"			value="true" /> 		<!-- Choose which types to harvest. -->
		<option name="HARVEST_HERB"			value="true" /> 		<!-- "true" = harvest, "false" = do not harvest -->
		<option name="HARVEST_ORE"			value="true" />

		<!-- Eggpet options -->
		<option name="EGGPET_ENABLE_CRAFT"	value="false" />		<!-- If using same slot for assist and craft, onlt 1 can be enabled. -->
		<option name="EGGPET_CRAFT_SLOT"	value="1" />
		<option name="EGGPET_ENABLE_ASSIST"	value="true" />
		<option name="EGGPET_ASSIST_SLOT"	value="2" />
		<option name="EGGPET_CRAFT_RATIO"	value="1:1:1" /> 		<!-- mining:woodworking:herbalism ratio to produce. -->
		<option name="EGGPET_CRAFT_INDEXES"	value="" /> 	 		<!-- override auto craft index for mining,woodworking,herbalism eg. "2,,"-->
		
		 <!-- GM detection options -->
      		<option name="GMDETECT"         value="true" /> -- enables the GM detection userfunction
      		<option name="GMnearbylogout"      value="true" /> -- If a GM is close to the character it will log out.
      		<option name="PAUSEONGM"      value="300" />  -- Pauses when GM whispers for value in seconds. ie 300 = 5 minutes
      		<option name="RECALL"         value="false" /> -- if in combat while pausing it will use recall and whisper/logout

		<!-- Log out and resurrect settings -->
		<option name="LOGOUT_TIME" 			value="0" />			<!-- in minutes, 0 = timer disabled -->
		<option name="LOGOUT_SHUTDOWN"		value="false" />
		<option name="LOGOUT_WHEN_STUCK"	value="true" />
		<option name="CLOSE_WHEN_STUCK"		value="true" />
		<option name="RES_AFTER_DEATH" 		value="true" />
		<option name="MAX_DEATHS" 			value="10" /> 			<!-- Log out after this many deaths -->

		<!-- Party Bot options  -->
		<!-- <option name="PARTY"			value="true" /> -->
		<!-- <option name="PARTY_ICONS"		value="true" /> -->
		<!-- <option name="PARTY_INSTANCE"	value="true" /> -->

		<!-- Healing options -->
		<!-- <option name="HEALER_FIGHT"		value="true" /> --> 	<!-- For party bot if you want healer to also fight -->

		<!-- pvp -->
		<!--option name="PVP"			value="true" /> --> 		<!-- To enable PVP, with this set to true it will auto attack any players with red names -->
			
		<!-- For more options and documentation see the RoM Bot Wiki:  -->
		<!-- http://www.solarstrike.net/wiki/index.php5?title=RoM_Bot  -->

	</options>

	<friends>
      <!-- names of friends we help fighting or enemys we don't want to attack -->
      <!-- for umlauts use \129 (ue),\132 (ae),\148 (oe) e.g. K\132fer         -->
      <friend name="MyOtherCharacter1" />
      <friend name="MyOtherCharacter2" />
      <friend name="Elite_Mob_Name1" />
      <friend name="Elite_Mob_Name2" />
   </friends>


	<mobs>
		<!-- names of mobs we want to attack 				-->
		<!-- if no names defined we will attack all mobs	-->
		<mob name="Secret Grove Anteater" />
		<mob name="Crying Ghost" />
		<mob name="Wailing Soul" />
		<mob name="Noxious Blood Wraith" />
	</mobs>

	<hotkeys>
    	<!-- to communicate with the RoM API / define ingame dummy macro at place 1 -->
		<hotkey name="MACRO"          key="VK_0" />
	</hotkeys>

	<!-- define your skills depending from your actual primary class -->
	<!-- see the example for a priest/mage                           -->
	<!-- delete skills you don't have or don't want to use.          -->
	<!-- For more skills to use see /database/skills.xml             -->
	<!-- demo skills for LvL 1 character for all classes             -->
	<!-- to use a specific key instead of MACRO then use hotkey="VK_1" this example is for hotkey 1 -->
	
	<skills_warden>
		
		<skill name="WARDEN_SUMMON_OAK_WALKER"	  	hotkey="MACRO" priority="90" />
		<skill name="WARDEN_SUMMON_SPIRIT_OF_THE_OAK"	  		hotkey="MACRO" priority="90" autouse="false" />
		<skill name="WARDEN_POWER_OF_THE_WOOD_SPIRIT"	hotkey="VK_9" priority="100" />
		<skill name="WARDEN_HEART_OF_THE_OAK" 			hotkey="MACRO" priority="90" />
		<skill name="WARDEN_ELVEN_PRAYER" 				hotkey="MACRO" priority="90" />
	
	</skills_warden>>
	
	<skills_warrior>
		
		
		<skill name="WARDEN_POWER_OF_THE_WOOD_SPIRIT"	hotkey="VK_9" priority="100" />
	
	</skills_warrior>
	
	<skills>
		<skill name="ROGUE_SHADOWSTAB"          		hotkey="VK_9" priority="90" />
		
	</skills>
	
	<onLoad><![CDATA[
		 startGMDetect()
		-- 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[
		-- Additional Lua code to execute after killing an enemy
   	useGoodie("speed");
   	useGoodie("luck");
   	useGoodie("patt3");
	useGoodie("defense");
	useGoodie("patt3"); 
	useGoodie("casting");
	catchCavy()
   	
	]]></onLeaveCombat>

	<onLevelup><![CDATA[
		-- Additional Lua code to execute after having a levelup
		-- and levelup the skills for a new character (mage or priest recommended)
		-- e.g. sendMacro("SetSpellPoint(_tabnr, _skillnr);"); would levelup a skill
	]]></onLevelup>

	<onSkillCast><![CDATA[
   	target = player:getTarget();
   	if target.Id == 103857 then
      	if sendMacro("madman.Time") >= 1 then 
         player:clearTarget();
         printf("Running\n")
         yrest(4000)
      	end
   	end
   	]]></onSkillCast>


	<onHarvest><![CDATA[
		-- Additional Lua code to execute directly before the actual harvesting takes place.
		-- Note: arg1 contains the object to be harvested.
		-- i.e. arg1.Name will be the name of the node you are about to harvest
		-- If this snippet returns 'false', the node will *not* be harvested.
		-- All other return values result in the player attempting to harvest the node.
		-- Note that returning 'false' here breaks out of harvesting completely;
		-- You will not attempt to harvest other nearby nodes instead.
	]]></onHarvest>

	<onUnstickFailure><![CDATA[
		-- Lua code to execute when MAX_UNSTICK_TRIALS is reached.
	]]></onUnstickFailure>
</profile>

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Warden pet class

#80 Post by lisa » Thu Mar 08, 2012 8:27 pm

Seems an ID changed in one of the little tiny patches we have been having because it used to work as I tested all of the buffs myself.

Give this a test.
goes in
micromacro/rom/classes/
folder
Attachments
skill.lua
goes in micromacro/rom/classes/ folder
(19.18 KiB) Downloaded 108 times
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

Post Reply

Who is online

Users browsing this forum: No registered users and 13 guests