Bot is deleting the target before it loots.

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
RicalEyl
Posts: 63
Joined: Fri Aug 13, 2010 2:38 pm

Bot is deleting the target before it loots.

#1 Post by RicalEyl » Sun Apr 10, 2011 7:59 am

Sorry for the code being in german but maybe you can see the problem in there too ;)

Code: Select all

 printf("
Lösche Ziel.
Wir gehen zum Wegpunkt #43, (-18187, 5698)
nicht Weiterlaufen: noch ein Ziel gefunden
Drücke 8: MAGE_INTENSIFICATION=>   Blütenkaktus (4304/4304)
Wir greifen den Gegner 'Blütenkaktus' an.
Drücke F7: PRIEST_CHAIN_OF_LIGH =>   * Cast gescheitert *
Drücke 5: PRIEST_BONE_CHILL   =>   Blütenkaktus (4304/4304)
Drücke 3: PRIEST_RISING_TIDE   =>   * Cast gescheitert *
Drücke 4: MAGE_FIREBALL       =>   Blütenkaktus (4304/4304)
Drücke F1: MAGE_LIGHTNING      =>   Blütenkaktus (4304/4304)
Drücke F7: PRIEST_CHAIN_OF_LIGH =>   * Cast gescheitert *
Drücke 5: PRIEST_BONE_CHILL   =>   Blütenkaktus (4304/4304)
Wir machen keinen Schaden und brechen daher ab ...
Lösche Ziel.
Kampf beendet. 12 Blütenkaktus getötet. (Kampf #13 / Laufzeit 3 Minuten)
Wir gehen zum Wegpunkt #43, (-18187, 5698)
nicht Weiterlaufen: noch ein Ziel gefunden
Wir greifen den Gegner 'Fruchtkaktus' an.
Drücke 5: PRIEST_BONE_CHILL   =>   Fruchtkaktus (4556/4556)
Drücke 3: PRIEST_RISING_TIDE  =>   Fruchtkaktus (4556/4556)
Drücke 4: MAGE_FIREBALL       =>   Fruchtkaktus (3488/4556)
Drücke F7: PRIEST_CHAIN_OF_LIGHNeues Ziel 'Fruchtkaktus' ausgewählt. Entfernung
54
Fruchtkaktus is attacking us, we take that target.
=>   * abgebrochen *
Drücke 3: PRIEST_RISING_TIDE  Neues Ziel 'Fruchtkaktus' ausgewählt. Entfernung 9

Fruchtkaktus is attacking us, we take that target.
=>   * abgebrochen *
Drücke 3: PRIEST_RISING_TIDE  Neues Ziel 'Fruchtkaktus' ausgewählt. Entfernung 9

Fruchtkaktus is attacking us, we take that target.
=>   * abgebrochen *
Neues Ziel 'Fruchtkaktus' ausgewählt. Entfernung 9
Fruchtkaktus is attacking us, we take that target.
=>   * abgebrochen *
Drücke 8: MAGE_INTENSIFICATION=>   Fruchtkaktus (1865/4556)
Keine (benutzbaren) Manatränke mehr in den Taschenplätzen 1 bis 240 vorhanden.
Drücke 3: PRIEST_RISING_TIDE  Neues Ziel 'Fruchtkaktus' ausgewählt. Entfernung 9

Fruchtkaktus is attacking us, we take that target.
=>   * abgebrochen *
Drücke 4: MAGE_FIREBALL       =>   Fruchtkaktus (1865/4556)
Drücke 6: PRIEST_REGENERATE   =>   Fruchtkaktus (1865/4556)
Drücke F7: PRIEST_CHAIN_OF_LIGHNeues Ziel 'Fruchtkaktus' ausgewählt. Entfernung
9
Fruchtkaktus is attacking us, we take that target.
=>   * abgebrochen *
Drücke 3: PRIEST_RISING_TIDE  =>   Fruchtkaktus (1336/4556)
Neues Ziel 'Fruchtkaktus' ausgewählt. Entfernung 9
Fruchtkaktus is attacking us, we take that target.
=>   * abgebrochen *
Drücke F7: PRIEST_CHAIN_OF_LIGH=>   Fruchtkaktus (1336/4556)
Neues Ziel 'Fruchtkaktus' ausgewählt. Entfernung 9
Fruchtkaktus is attacking us, we take that target.
=>   * abgebrochen *
Drücke 3: PRIEST_RISING_TIDE  Neues Ziel 'Fruchtkaktus' ausgewählt. Entfernung 9

Fruchtkaktus is attacking us, we take that target.
=>   * abgebrochen *
Drücke 4: MAGE_FIREBALL       =>   Fruchtkaktus (677/4556)
Drücke 3: PRIEST_RISING_TIDE  Neues Ziel 'Fruchtkaktus' ausgewählt. Entfernung 9

Fruchtkaktus is attacking us, we take that target.
=>   * abgebrochen *
Neues Ziel 'Fruchtkaktus' ausgewählt. Entfernung 9
Fruchtkaktus is attacking us, we take that target.
=>   * abgebrochen *
Drücke F7: PRIEST_CHAIN_OF_LIGH=>   Fruchtkaktus (606/4556)
Drücke 3: PRIEST_RISING_TIDE   =>   * Cast gescheitert *
Kampf beendet. 1 Fruchtkaktus getötet. (Kampf #14 / Laufzeit 3 Minuten)
Drücke MACRO: Plündere toten Mob. Entfernung 9.
Lösche Ziel.
Wir gehen zum Wegpunkt #43, (-18187, 5698)
nicht Weiterlaufen: noch ein Ziel gefunden
Keine (benutzbaren) Manatränke mehr in den Taschenplätzen 1 bis 240 vorhanden.
Wir greifen den Gegner 'Fruchtkaktus' an.
Drücke F7: PRIEST_CHAIN_OF_LIGH=>   Fruchtkaktus (4402/4402)
Neues Ziel 'Blütenkaktus' ausgewählt. Entfernung 136
Blütenkaktus is not attacking us, we clear that target.
Lösche Ziel.
=>   * abgebrochen *");

Germangold
Posts: 276
Joined: Thu Oct 22, 2009 3:58 am

Re: Bot is deleting the target before it loots.

#2 Post by Germangold » Sun Apr 10, 2011 8:34 am

cleanly update to lastest svn 592

fully post your profile.xml

that could help

Germangold
Posts: 276
Joined: Thu Oct 22, 2009 3:58 am

Re: Bot is deleting the target before it loots.

#3 Post by Germangold » Sun Apr 10, 2011 8:40 am

for common loot problems lootboodies solved my problems

in your profile xml use

Code: Select all

<onLeaveCombat>
lootBodies()
</onLeaveCombat>
and have the addon http://www.solarstrike.net/phpBB3/viewt ... =27&t=2018 "Rock5's lootBodies function" in your Userfunctions

Chain of light is a bad damage skill imo

as an active priest/mage is use this spells:
  • PRIEST_ICEWIND_BLADE #1 and it an elite skill Level45 it causes wind and water dmg 570 point at lvl60
    PRIEST_BONE_CHILL < always on mob as DoT
    PRIEST_RISING_TIDE
    MAGE_LIGHTNING
    MAGE_FIREBALL

RicalEyl
Posts: 63
Joined: Fri Aug 13, 2010 2:38 pm

Re: Bot is deleting the target before it loots.

#4 Post by RicalEyl » Sun Apr 10, 2011 8:55 am

hmm that could help a litte but I think there is a problem elsewhere.
Because it also deletes targets in combat and attacks new ones.
So the bot is always facing 3 vs.1 situations which could become a problem when I play vs 8 lvl higher mobs...

and heres the entire profile: I think its a little messed up sorry for that but I havnt had had a problem with it yet ;)
The newest thing I changes is the catchCavy script in the end ;)

Code: Select all

printf("<profile>
	<options>
		<!-- Try the bot with a new char mage                   -->
		<!-- At the pioneer village. Use demo.xml waypoint file -->
		<option name="HP_LOW"			value="65" />
		<option name="MP_LOW_POTION"	value="60" />
		<option name="HP_LOW_POTION"	value="30" />

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

		<!-- 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" />
		<option name="ARROW_QUIVER"		value="0" />
		<option name="THROWN_BAG"		value="0" />

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

		<!-- Attack monsters 3 levels above or 10 below your level -->
		<option name="TARGET_LEVELDIF_ABOVE" value="12" />
		<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="500" />
		<option name="WAYPOINT_DEVIATION"	value="0" />
		<option name="QUICK_TURN" 			value="true" />

		<!-- Loot settings -->
		<option name="LOOT"					value="true" />
		<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 -->

		<!-- 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="RES_AUTOMATIC_AFTER_DEATH" value="true" />


		<!-- For more options and documentation see the RoM Bot Wiki:  -->
		<!-- http://www.solarstrike.net/wiki/index.php5?title=RoM_Bot  -->

	</options>


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

	<skills_mage>
		<skill name="MAGE_ENERGY_WELL" 		hotkey="VK_1" priority="100" />	
		<skill name="MAGE_ELEMENTAL_CATALYST" 	hotkey="VK_2" priority="110"  		inbattle="true" />
		<skill name="MAGE_FLAME"             	hotkey="VK_3" priority="85" />		
		<skill name="MAGE_FIREBALL"		priority="65" hotkey="VK_4" />
		<skill name="PRIEST_RISING_TIDE" 	hotkey="VK_5" priority="35" level="" />
		<skill name="PRIEST_REGENERATE"    	hotkey="VK_6" priority="150" hpper="95" />
		<skill name="MAGE_ELECTROSTATIC_CHARGE" hotkey="VK_7" priority="190"  hpper="85" /> 
		<skill name="MAGE_INTENSIFICATION" 	hotkey="VK_8" priority="80" />
		<skill name="MAGE_ESSENCE_OF_MAGIC" 	hotkey="VK_9" priority="95"  /> 
		<skill name="MAGE_LIGHTNING" 		hotkey="VK_F1" priority="80"/>
		<skill name="MAGE_SILENCE" 		hotkey="VK_F2" priority="8"/>
		<skill name="PRIEST_URGENT_HEAL"	hotkey="VK_F3" priority="10010" hpper="80"  />
		<skill name="MAGE_PHOENIX" 		hotkey="VK_F4" priority="40" />
		<skill name="PRIEST_HOLY_AURA"		hotkey="VK_F5" priority="1000000" hpper="40" />
		<skill name="MAGE_ENERGY_INFLUX" 	hotkey="VK_F6"  priority="100" />
		<skill name="PRIEST_BLESSED_SPRING_WATER"	hotkey="VK_F8" priority="80" />
		<skill name="PRIEST_MAGIC_BARRIER"	hotkey="VK_F9" priority="90" />
		<skill name="MAGE_FIRE_WARD"		hotkey="VK_F10" priority="90" />
		
	</skills_mage>


	<skills_priest>
		<skill name="PRIEST_HEALING_SALVE" hotkey="VK_2" priority="90" />
		<skill name="PRIEST_BLESSED_SPRING_WATER"	hotkey="VK_F8" priority="80" />
		<skill name="PRIEST_HOLY_AURA"		hotkey="VK_F5" priority="10000" hpper="45" />
		<skill name="MAGE_FIRE_WARD"		hotkey="VK_F10" priority="90" />
		<skill name="PRIEST_MAGIC_BARRIER"	hotkey="VK_F9" priority="90" />
		<skill name="MAGE_INTENSIFICATION" 	hotkey="VK_8" priority="80" />
		<skill name="MAGE_LIGHTNING" 		hotkey="VK_F1" priority="60"/>
		<skill name="MAGE_FIREBALL"              hotkey="VK_4" priority="68" />
		<skill name="PRIEST_SOUL_SOURCE" hotkey="VK_1" priority="5000" hpper="40" inbattle="true" />
		<skill name="PRIEST_URGENT_HEAL" hotkey="VK_F3" modifier="VK_ALT" priority="110" hpper="60"  />
		<skill name="PRIEST_RISING_TIDE" hotkey="VK_3" priority="70" level="" />
		<skill name="PRIEST_REGENERATE"     hotkey="VK_6" priority="100" hpper="85" />
		<skill name="PRIEST_BONE_CHILL" hotkey="VK_5" priority="75"  />
		<skill name="PRIEST_CHAIN_OF_LIGHT" hotkey="VK_F7" skilltab="4" skillnum="11" priority="80" />
		<skill name="PRIEST_GRACE_OF_LIFE" hotkey="VK_9" skilltab="4" skillnum="9" priority="80" />
		<skill name="PRIEST_WAVE_ARMOR" hotkey="VK_7" skilltab="4" hpper="75" skillnum="2" priority="190" inbattle="true"/>
	</skills_priest>


	<onDeath>
		-- Additional Lua code to execute on death
		-- pauseOnDeath(); -- Stop the script
	</onDeath>
	

		
	<onLeaveCombat>
	catchCavy()
	</onLeaveCombat>

	

	<onLevelup>
		-- thats a demo for opening the gift bags from Lvl 1-10
		-- and levelup the skills for a new character (mage or priest recommended)
		-- you can delete that lines if you don't want to use that

			

	</onLevelup>

	<onSkillCast>
		-- 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.
	</onSkillCast>
</profile>");

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

Re: Bot is deleting the target before it loots.

#5 Post by rock5 » Sun Apr 10, 2011 9:07 am

Why does it start with a 'printf' statement?
  • 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

Germangold
Posts: 276
Joined: Thu Oct 22, 2009 3:58 am

Re: Bot is deleting the target before it loots.

#6 Post by Germangold » Sun Apr 10, 2011 9:39 am

thats cricket

Code: Select all

      <skill name="PRIEST_SOUL_SOURCE" hotkey="VK_1" priority="5000" hpper="40" inbattle="true" />
on hotkey VK_1 you shold only use Attak skill not any spell

and please replace your priest settings wit this

Code: Select all

 <skills_priest>
 
     
      <skill name="MAGE_LIGHTNING"       	hotkey="VK_F1" priority="90"/>
	  <skill name="PRIEST_URGENT_HEAL" 		hotkey="VK_F3" modifier="VK_ALT" priority="110" hpper="80"  />
	  <skill name="PRIEST_HOLY_AURA"     	hotkey="VK_F5" priority="110" hpper="45" />
	  <skill name="PRIEST_MAGIC_BARRIER"    hotkey="VK_F9" priority="90" />
     	  
      	  
      <skill name="PRIEST_RISING_TIDE" 		hotkey="VK_3" priority="90"  />
	  <skill name="MAGE_FIREBALL"           hotkey="VK_4" priority="68" />
	  <skill name="PRIEST_BONE_CHILL" 		hotkey="VK_5" priority="110" maxuse="2" /> 
      <skill name="PRIEST_REGENERATE"    	hotkey="VK_6" priority="100" hpper="85" />
	  <skill name="PRIEST_WAVE_ARMOR"		hotkey="VK_7" hpper="75" priority="110"/>
      <skill name="MAGE_INTENSIFICATION"    hotkey="VK_8" priority="90" />
	  <skill name="PRIEST_GRACE_OF_LIFE" 	hotkey="VK_9" priority="80" />
	   
   </skills_priest>
if your priest is still dying
he need more firepower a graded staff would make sense or more HP

Tantehilde
Posts: 8
Joined: Sat Apr 09, 2011 5:08 am

Re: Bot is deleting the target before it loots.

#7 Post by Tantehilde » Sun Apr 10, 2011 11:20 am

RicalEyl wrote:hmm that could help a litte but I think there is a problem elsewhere.
Because it also deletes targets in combat and attacks new ones.
So the bot is always facing 3 vs.1 situations which could become a problem when I play vs 8 lvl higher mobs...
i have the same problem .. maybe something with the german client? here is my profile:

Code: Select all

<profile>
	<options>
		<!-- Try the bot with a new char mage                   -->
		<!-- At the pioneer village. Use demo.xml waypoint file -->
		<option name="HP_LOW"			value="70" />
		<option name="MP_LOW_POTION"	value="50" />
		<option name="HP_LOW_POTION"	value="60" />

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

		<!-- 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" />
		<option name="ARROW_QUIVER"		value="0" />
		<option name="THROWN_BAG"		value="0" />

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

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

		<!-- 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="false" />

		<!-- Loot settings -->
		<option name="LOOT"					value="true" />
		<option name="LOOT_IN_COMBAT"		value="true" />
		<option name="LOOT_DISTANCE"		value="400" />
		<option name="LOOT_PAUSE_AFTER"		value="0" />		<!-- probability in % for a short rest -->

		<!-- 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="RES_AUTOMATIC_AFTER_DEATH" value="true" />
		
		<!--option name="DEBUG_AUTOSELL"      value="true" /-->
    <option name="INV_AUTOSELL_ENABLE"	value="true" />
    <option name="INV_AUTOSELL_FROMSLOT"		value="0" />
    <option name="INV_AUTOSELL_TOSLOT"		value="60" />
    <option name="INV_AUTOSELL_QUALITY"		value="white, green, blue" />
    
    <option name="IGNORE_MACRO_ERROR"		value="true" />
    <option name="LOOT_AGAIN"		value="2000" />

 		<!-- 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="friendname1" />
		<friend name="elitemob K\132fer" />
		<friend name="elitemob H\129ter" />
	</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 a 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             -->
	<skills_mage>
		<skill name="MAGE_FLAME"              hotkey="VK_3" priority="80" />
		<skill name="MAGE_ELEMENTAL_CATALYST" hotkey="VK_2" priority="30" hpper="30" inbattle="true" />
	</skills_mage>


	<onLoad>
		-- 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);
		inventory:update();

		if(player.Level == 1) then
			openGiftbags1To10(player.Level);
		else
			levelupSkills1To10("loadonly");
		end;
		

		if(player.Class1 == CLASS_SCOUT ) then
			changeProfileOption("ARROW_QUIVER", 2);
		end;
	  if( player.Level > 6 ) then
	     table.insert(settings.profile.mobs, "Jungb\132r");
	     changeProfileOption("TARGET_LEVELDIF_BELOW",3)
	  end    

	</onLoad>

	<onDeath>
		-- Additional Lua code to execute on death
		-- pauseOnDeath(); -- Stop the script
	</onDeath>

	<onLeaveCombat>
		-- Additional Lua code to execute after a target is finished

			if(player.Level == 10) then
				__WPL:setForcedWaypointType("TRAVEL")
			end;
			
		inventory:update()
		if( inventory:itemTotalCount(211376) > 0 ) then
			   inventory:useItem(211376)
			   yrest(1000);
			   sendMacro("StaticPopup_OnClick(StaticPopup1, 1);")
    end;
 	  
    if ( inventory:itemTotalCount(200609) > 45 ) then
      if( player.Level > 7 ) then
         init_exp = RoMScript("GetPlayerExp()")
		     if(init_exp > 50) then
			  	   loadPaths("MeineTwinks/questlogar.xml");
			   end;
	    end;
    end;  			

		if 2 > inventory:itemTotalCount(0) then 
		   loadPaths("MeineTwinks/verkaufen.xml")
	  end

    lootBodies()

	</onLeaveCombat>

	<onLevelup>
		-- thats a demo for opening the gift bags from Lvl 1-10
		-- and levelup the skills for a new character (mage or priest recommended)
		-- you can delete that lines if you don't want to use that

			-- single skill would be: sendMacro("SetSpellPoint(4,2);");
			-- or levelupSkill(_skillname, _times)
			levelupSkills1To10();

			-- open giftbag and equipt content
			openGiftbags1To10(player.Level);
			
      inventory:useItem(201521)
		  yrest(500);
		  
	  if( player.Level > 6 ) then
	     table.insert(settings.profile.mobs, "Jungb\132r");
	     changeProfileOption("TARGET_LEVELDIF_BELOW",3)
	  end

	</onLevelup>

	<onSkillCast>
		-- 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.
	</onSkillCast>
</profile>

RicalEyl
Posts: 63
Joined: Fri Aug 13, 2010 2:38 pm

Re: Bot is deleting the target before it loots.

#8 Post by RicalEyl » Sun Apr 10, 2011 12:29 pm

@rock5 I added it in forum I thought I'd need that xd :)

@Germangold: I dont have a problem with the bot dying... I dont die atm but if you play vs. mobs like 8 levels above you then you already have good equip ;)
My problem is that the bot is doing sth. which it is not supposed to and not looting ;)

@Tantehilde I just tried to play with the english client. There's the same problem:

Code: Select all

We have aggro. Stop moving to waypoint and wait for target.
Waiting on aggressive enemies.
Engaging enemy [Black Rock Scorpion] in combat.
Use F7: PRIEST_CHAIN_OF_LIGHSelect new target Black Rock Scorpion in distance 65

Black Rock Scorpion is not attacking us, we clear that target.
Clearing target.
=>   * aborted *
Use 5: PRIEST_BONE_CHILL   =>   Black Rock Scorpion (4386/4386)
Use 3: PRIEST_RISING_TIDE  Select new target Black Rock Scorpion in distance 166

Black Rock Scorpion is not attacking us, we clear that target.
Clearing target.
=>   * aborted *
Fight finished. Killed 1 Black Rock Scorpion. (fight #1 / runtime 0 minutes)
Waiting on aggressive enemies.
Engaging enemy [Black Rock Scorpion] in combat.
Select new target Black Rock Scorpion in distance 24
Black Rock Scorpion is attacking us, we take that target.
=>   * aborted *
Use 4: MAGE_FIREBALL       =>   Black Rock Scorpion (3878/4386)
No more (usable) mana potions available at bagslot 1 to 240
Use 3: PRIEST_RISING_TIDE  Select new target Black Rock Scorpion in distance 24
Black Rock Scorpion is attacking us, we take that target.
=>   * aborted *
Select new target Black Rock Scorpion in distance 24
Black Rock Scorpion is attacking us, we take that target.
=>   * aborted *
Use F7: PRIEST_CHAIN_OF_LIGH=>   Black Rock Scorpion (3553/4386)
Select new target Black Rock Scorpion in distance 24
Black Rock Scorpion is attacking us, we take that target.
=>   * aborted *
Use 3: PRIEST_RISING_TIDE  Select new target Black Rock Scorpion in distance 24
Black Rock Scorpion is attacking us, we take that target.
=>   * aborted *
Select new target Black Rock Scorpion in distance 24
Black Rock Scorpion is attacking us, we take that target.
=>   * aborted *
Use 3: PRIEST_RISING_TIDE  Select new target Black Rock Scorpion in distance 24
Black Rock Scorpion is attacking us, we take that target.
=>   * aborted *
Use 4: MAGE_FIREBALL       =>   Black Rock Scorpion (395/4386)
Fight finished. Killed 2 Black Rock Scorpion. (fight #2 / runtime 1 minutes)
Use MACRO: Looting target in distance 42.
Clearing target.
Waiting on aggressive enemies.
Engaging enemy [Black Rock Scorpion] in combat.
Use F7: PRIEST_CHAIN_OF_LIGHSelect new target Highland Iguana in distance 158
Highland Iguana is attacking us, we take that target.
=>   * aborted *
Use 5: PRIEST_BONE_CHILL   =>   Highland Iguana (4539/4539)
Use 3: PRIEST_RISING_TIDE  Select new target Black Rock Scorpion in distance 31
Black Rock Scorpion is attacking us, we take that target.
=>   * aborted *
Use 4: MAGE_FIREBALL       =>   Black Rock Scorpion (4539/4539)
Select new target Highland Iguana in distance 29
Highland Iguana is attacking us, we take that target.
=>   * aborted *
Use 6: PRIEST_REGENERATE   =>   Highland Iguana (2960/4539)
No more (usable) mana potions available at bagslot 1 to 240
Use 8: MAGE_INTENSIFICATION=>   Highland Iguana (2960/4539)
Use F7: PRIEST_CHAIN_OF_LIGHSelect new target Black Rock Scorpion in distance 54

Black Rock Scorpion is attacking us, we take that target.
=>   * aborted *
Use 5: PRIEST_BONE_CHILL   =>   Black Rock Scorpion (4539/4539)
Select new target Highland Iguana in distance 33
Highland Iguana is attacking us, we take that target.
=>   * aborted *
Use 3: PRIEST_RISING_TIDE  Select new target Black Rock Scorpion in distance 24
Black Rock Scorpion is attacking us, we take that target.
=>   * aborted *
Use 4: MAGE_FIREBALL       =>   Black Rock Scorpion (4539/4539)
Taking too long to damage target, breaking sequence...
Clearing target.
Use 7: PRIEST_WAVE_ARMOR   =>   Highland Iguana (1509/4539)
Use F7: PRIEST_CHAIN_OF_LIGHSelect new target Black Rock Scorpion in distance 34

Black Rock Scorpion is attacking us, we take that target.
=>   * aborted *
Use 3: PRIEST_RISING_TIDE  =>   Black Rock Scorpion (4539/4539)
Select new target Highland Iguana in distance 30
Highland Iguana is attacking us, we take that target.
=>   * aborted *
Use 4: MAGE_FIREBALL       =>   Highland Iguana (0/4539)
Fight finished. Killed 3 Black Rock Scorpion. (fight #3 / runtime 1 minutes)
Use MACRO: Looting target in distance 30.
Clearing target.
Waiting on aggressive enemies.
Engaging enemy [Black Rock Scorpion] in combat.
No more (usable) mana potions available at bagslot 1 to 240
Use 2: PRIEST_HEALING_SALVE=>   Black Rock Scorpion (4469/4539)
Use F7: PRIEST_CHAIN_OF_LIGHSelect new target Black Rock Scorpion in distance 11

Black Rock Scorpion is attacking us, we take that target.
=>   * aborted *
Use 5: PRIEST_BONE_CHILL   =>   Black Rock Scorpion (3521/4539)
Select new target Black Rock Scorpion in distance 11
Black Rock Scorpion is attacking us, we take that target.
=>   * aborted *
Use 3: PRIEST_RISING_TIDE  =>   Black Rock Scorpion (3050/4539)
Select new target Black Rock Scorpion in distance 11
Black Rock Scorpion is attacking us, we take that target.
=>   * aborted *
Use 4: MAGE_FIREBALL       =>   Black Rock Scorpion (2578/4539)
Use 6: PRIEST_REGENERATE   =>   Black Rock Scorpion (1906/4539)
Use 8: MAGE_INTENSIFICATION=>   Black Rock Scorpion (1835/4539)
Use F7: PRIEST_CHAIN_OF_LIGHSelect new target Black Rock Scorpion in distance 11

Black Rock Scorpion is attacking us, we take that target.
=>   * aborted *
Use 3: PRIEST_RISING_TIDE  Select new target Black Rock Scorpion in distance 11
Black Rock Scorpion is attacking us, we take that target.
=>   * aborted *
Select new target Black Rock Scorpion in distance 11
Black Rock Scorpion is attacking us, we take that target.
=>   * aborted *
Use 7: PRIEST_WAVE_ARMOR   =>   Black Rock Scorpion (757/4539)
Use 6: PRIEST_REGENERATE   =>   Black Rock Scorpion (436/4539)
Use 3: PRIEST_RISING_TIDE  Select new target Black Rock Scorpion in distance 26
Black Rock Scorpion is attacking us, we take that target.
=>   * aborted *
Use 4: MAGE_FIREBALL       =>   Black Rock Scorpion (185/4539)
No more (usable) mana potions available at bagslot 1 to 240
Fight finished. Killed 4 Black Rock Scorpion. (fight #4 / runtime 1 minutes)
Use MACRO: Looting target in distance 42.
Clearing target.
Clearing target.
Resting up to 52 to fill up mana and HP.
Paused. (ENTF) to continue, (CTRL+L) exit to shell, (CTRL+C) quit

RicalEyl
Posts: 63
Joined: Fri Aug 13, 2010 2:38 pm

Re: Bot is deleting the target before it loots.

#9 Post by RicalEyl » Sun Apr 10, 2011 12:56 pm

The problem is not in the profile!
My profile still works with an old version of the bot I still have on the computer

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

Re: Bot is deleting the target before it loots.

#10 Post by lisa » Sun Apr 10, 2011 10:07 pm

Add this to your profile and see if the issue remains.

Code: Select all

		<option name="PARTY"			value="true" /> 
It may be a result in the way I dealt with priority targeting with the party bot, if you add that to your profile and the issue stops then I need to rework my coding. If issue remains then it is something else.
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
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Bot is deleting the target before it loots.

#11 Post by rock5 » Mon Apr 11, 2011 1:59 am

I think this is the same issue,
http://www.solarstrike.net/phpBB3/viewt ... =21&t=2367

As far as I understand it, when it goes to cast a skill it does a check_aggro_before_cast. In that function it does a player:findEnemy(). In findEnemy it presses the TAB key which switches target. I don't know why it would check_aggro_before_cast on the third cast though. The problem might have something to do with the fact that with good undercutting, you don't aggro the target until after you start casting the second spell.

I thought we had stopped using the tab key. In fact I thought findtarget had been depreciated. check_aggro_before_cast is the only place it's used. I don't understand yet why it's causing problems now were before it didn't.
  • 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

Tantehilde
Posts: 8
Joined: Sat Apr 09, 2011 5:08 am

Re: Bot is deleting the target before it loots.

#12 Post by Tantehilde » Mon Apr 11, 2011 9:47 am

lisa wrote:Add this to your profile and see if the issue remains.

Code: Select all

		<option name="PARTY"			value="true" /> 
*jump* Great!! .. with this option the profile works again like before :) .. THANKS a lot ..

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

Re: Bot is deleting the target before it loots.

#13 Post by lisa » Mon Apr 11, 2011 11:54 am

I found the issue, it wasn't checking to see if the mob was actually targeting the player or not which is why it always returned true for check aggro once the bot regarded itself as in combat.
Which is why it was always on the 3rd cast, the first 2 casts it didn't concider itself to be in combat.
I added in a check to see if the mob is targeting a player or party member and if so then return false.

So just update to latest revision and it should work fine after that.
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
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Bot is deleting the target before it loots.

#14 Post by rock5 » Mon Apr 11, 2011 8:12 pm

Yep, that fixed it.
  • 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

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests