--=== Official new patch thread ===-- patch 4.0.9
Re: --=== Official new patch thread ===-- patch 4.0.9
I think the issue is because party uses player:findNearestNameOrId() to populate the pawn information, so it is having issues with the special characters being used in the name.
we tried to change the code to make it work better with special characters, maybe it is now working against us, not sure.
I don't have a solution for you at this stage, I will have to look into it further.
we tried to change the code to make it work better with special characters, maybe it is now working against us, not sure.
I don't have a solution for you at this stage, I will have to look into it further.
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
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: --=== Official new patch thread ===-- patch 4.0.9
can you give this a test for me, just save it to your rom/classes folder, replacing the existing file. Then just run partyhealer like normal.
try V1.0 first, if it errors then try V 2.0 and tell me how it goes. I'm heading to bed, I'll check how you went tomorrow.
try V1.0 first, if it errors then try V 2.0 and tell me how it goes. I'm heading to bed, I'll check how you went tomorrow.
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
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
-
- Posts: 20
- Joined: Tue Feb 14, 2012 12:36 pm
Re: --=== Official new patch thread ===-- patch 4.0.9
error:
cannot find pawn with name Pre****
cannot find pawn with name Schä****
lua:465 onload error
party.lua:58 attempt to index field
cannot find pawn with name Pre****
cannot find pawn with name Schä****
lua:465 onload error
party.lua:58 attempt to index field
Re: --=== Official new patch thread ===-- patch 4.0.9
why my bot always stop in this patch???
every time it stop i need to press "end" then "delete"
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 -->
<!-- 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="600" /> -- Pauses when GM whispers for value in seconds. ie 300 = 5 minutes
<option name="RECALL" value="true" /> -- if in combat while pausing it will use recall and whisper/logout
<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="true" /> <!-- 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="false" /> <!-- only important for melees -->
<option name="COMBAT_DISTANCE" value="149" />
<option name="MAX_FIGHT_TIME" value="15" /> <!-- Max time without damage before break -->
<option name="DOT_PERCENT" value="90" />
<option name="ANTI_KS" value="false" />
<option name="MAX_TARGET_DIST" value="160" />
<!-- Attack monsters 3 levels above or 10 below your level -->
<option name="TARGET_LEVELDIF_ABOVE" value="10" />
<option name="TARGET_LEVELDIF_BELOW" value="54" />
<!-- 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="false" />
<option name="LOOT_ALL" value="false" /> <!-- Loot all nearby dead mobs after combat -->
<option name="LOOT_IN_COMBAT" value="false" />
<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="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="1" /> <!-- 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" /> --> <!-- Not implemented yet, coming soon -->
<!-- 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="Mutated Wolf" />
<friend name="Dark Rite Warlock" /> <!-- Elite, avoid him -->
<friend name="Dark Rite Instructor" /> <!-- Elite, avoid him -->
<friend name="Dark Rite Mage" /> <!-- Elite, avoid him -->
<friend name="Dark Rite Acolyte" /> <!-- Elite, avoid him -->
<friend name="Spirit Core" /> <!-- Elite, avoid him -->
<friend name="Misty Rotwrom" />
<friend name="Iron Teeth Sentry" />
<friend name="Puppet Shaman" />
<friend name="Hindiakopinoy" />
<friend name="Drifting Javias" />
<friend name="Hare" />
<friend name="Foul Maggot" />
</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="PRIEST_URGENT_HEAL" hotkey="MACRO" priority="120" hpper="50" />
<skill name="PRIEST_REGENERATE" hotkey="MACRO" priority="110" hpper="80" />
<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="100" />
<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="90" />
<skill name="MAGE_FIREBALL" hotkey="MACRO" priority="80" />
<skill name="MAGE_LIGHTNING" hotkey="MACRO" priority="100" />
<skill name="MAGE_PURGATORY_FIRE" hotkey="MACRO" priority="60" />
<skill name="PRIEST_URGENT_HEAL" hotkey="MACRO" priority="120" hpper="80" />
<skill name="PRIEST_REGENERATE" hotkey="MACRO" priority="110" hpper="90" />
<skill name="MAGE_ENERGY_INFLUX" hotkey="MACRO" priority="50" inbattle="true" />
<skill name="MAGE_ELEMENTAL_CATALYST" hotkey="MACRO" priority="50" inbattle="false" />
<skill name="MAGE_INTENSIFICATION" hotkey="MACRO" priority="50" inbattle="false" />
<skill name="MAGE_ENERGY_WELL" hotkey="MACRO" priority="50" inbattle="true" />
<skill name="PRIEST_MAGIC_BARRIER" hotkey="MACRO" priority="50" inbattle="false" />
</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="90" />
<skill name="WARDEN_ENERGY_ABSORB" hotkey="MACRO" priority="80" inbattle="true" hpper="25" />
</skills_warden>
<skills_druid>
<skill name="DRUID_RECOVER" hotkey="MACRO" priority="120" hpper="80" />
<skill name="MAGE_FIREBALL" hotkey="MACRO" priority="110" />
<skill name="DRUID_EARTH_ARROW" hotkey="MACRO" priority="80" />
<skill name="DRUID_BRIAR_ENTWINEMENT" hotkey="MACRO" priority="100" />
<skill name="DRUID_ROCKSLIDE" hotkey="MACRO" priority="70" />
<skill name="DRUID_MOTHER_NATURES_WRATH" hotkey="MACRO" priority="60" />
<skill name="MAGE_LIGHTNING" hotkey="MACRO" priority="90" />
<skill name="DRUID_SAVAGE_BLESSING" hotkey="MACRO" priority="50" inbattle="false" />
<skill name="DRUID_CONCENTRATION_PRAYER" hotkey="MACRO" priority="50" inbattle="false" />
<skill name="DRUID_UNITY_WITH_MOTHER_EARTH" hotkey="MACRO" priority="50" inbattle="true" />
<skill name="MAGE_INTENSIFICATION" hotkey="MACRO" priority="50" inbattle="true" />
<skill name="PRIEST_HOLY_AURA" hotkey="MACRO" priority="130" inbattle="true" hpper="24" />
</skills_druid>
<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[
if player:findNearestNameOrId(102102) then
local Evelyn = player:findNearestNameOrId(102102)
player:target(Evelyn)
player:fight()
end
]]></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");
]]></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>
every time it stop i need to press "end" then "delete"
Re: --=== Official new patch thread ===-- patch 4.0.9
if you arn't party botting change it to falsekuripot wrote:why my bot always stop in this patch???
Code: Select all
<option name="PARTY" value="false" />
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
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: --=== Official new patch thread ===-- patch 4.0.9
it is definately the special characters causing the issue, basically I changed it to only search for the name of the party members and if it couldn't find them to print "cannot find pawn with name **"i_like_big_bots wrote:error:
cannot find pawn with name Pre****
cannot find pawn with name Schä****
lua:465 onload error
party.lua:58 attempt to index field
I might have to create a char using the characters to do some testing, it will take ages to sort out the issue with me posting things to test 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
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
-
- Posts: 20
- Joined: Tue Feb 14, 2012 12:36 pm
Re: --=== Official new patch thread ===-- patch 4.0.9
so, no chance for me @ this moment? its a pitty
Re: --=== Official new patch thread ===-- patch 4.0.9
Well I had this working for æ, something I did notice though is MM printed it as ├å which is very different to the æ
give it a try for yours.
Last resort will be painful and time consuming for me, so I hope this works for you
give it a try for yours.
Last resort will be painful and time consuming for me, so I hope this works 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
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: --=== Official new patch thread ===-- patch 4.0.9
Ok I finally got back to this issue, can you give this a test for me, I don't get much time for testing now days =(Edamh wrote:I do and did want the different bots to work together. Up until the latest patch, the multiple bots worked together and finished dailies quickly killing mobs. However, since latest patch, bot gets hung at "Clearing Target" ... or see debug messages above.
I'm asking whether there is a profile option to disable working as a party -- even while in a party/raid -- since it seems the bots only gets hung up when in party. Running same profile / waypoint combo, but as a solo bot (not in party/raid) doesn't seem to hang.
Worse case scenario, I'll just use the bots on different channels and different areas for the dailies solo which is a workaround but not optimal.
So you will need to have party set to true again to test it.
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
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
-
- Posts: 20
- Joined: Tue Feb 14, 2012 12:36 pm
Re: --=== Official new patch thread ===-- patch 4.0.9
sry lisa .. same error again
cannot find pawn with name Sch*****
rom/bot.lua:465 onload error
...classes/party.lua:60: atempt to index field '?' (a number value)
i hope you dont have 2 much trouble
Thanks anyway 4 your big help lisa!
cannot find pawn with name Sch*****
rom/bot.lua:465 onload error
...classes/party.lua:60: atempt to index field '?' (a number value)
i hope you dont have 2 much trouble
Thanks anyway 4 your big help lisa!
Re: --=== Official new patch thread ===-- patch 4.0.9
Ok I rewrote it to not even use the names for anything.i_like_big_bots wrote:sry lisa .. same error again
Give this a try. Probably won't work either as GetPartyMemberAddress uses the name aswell.
My last thought is to convert the player name into something that can be used. Unfortunately I can't do that without recreating your exact situation, it might be a client language issue or maybe MM is converting the symbals into something it recognizes, I really don't know for sure. It did work for me when I used the æ earlier.
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
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
-
- Posts: 20
- Joined: Tue Feb 14, 2012 12:36 pm
Re: --=== Official new patch thread ===-- patch 4.0.9
sry
but this time no error and only buffs hisself. it seems it doesnt find Schä*****
but this time no error and only buffs hisself. it seems it doesnt find Schä*****
Re: --=== Official new patch thread ===-- patch 4.0.9
I ran it for about 15 minutes in a party of 2 bots. The "Clearing Target" error did not come up. However, I did notice that the main attacking bot would leave the fight and target another mob when the assist/2nd bot would start attacking the original mob. Is that expected?lisa wrote:Ok I finally got back to this issue, can you give this a test for me, I don't get much time for testing now days =(Edamh wrote:I do and did want the different bots to work together. Up until the latest patch, the multiple bots worked together and finished dailies quickly killing mobs. However, since latest patch, bot gets hung at "Clearing Target" ... or see debug messages above.
I'm asking whether there is a profile option to disable working as a party -- even while in a party/raid -- since it seems the bots only gets hung up when in party. Running same profile / waypoint combo, but as a solo bot (not in party/raid) doesn't seem to hang.
Worse case scenario, I'll just use the bots on different channels and different areas for the dailies solo which is a workaround but not optimal.
So you will need to have party set to true again to test it.
Re: --=== Official new patch thread ===-- patch 4.0.9
was the mob still targeting the main attacker or did it switch to attack the second char?
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
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: --=== Official new patch thread ===-- patch 4.0.9
The "ThreatMeter" (part of pbInfo) still showed main bot as top of aggro chart. Not sure if assist bot had take aggro, but assist bot does continue to fight mob while main bot leaves and looks for another mob. Unfortunately, my assist bot is 5 levels lower than main bot and the mobs in the waypoint area.lisa wrote:was the mob still targeting the main attacker or did it switch to attack the second char?
Re: --=== Official new patch thread ===-- patch 4.0.9
Did it do any prints on MM before changing targets or just the clearing target print?
I might have it, try this.
--=== removed file ===--
tested myself and it was bad lol
I might have it, try this.
--=== removed file ===--
tested myself and it was bad lol
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
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: --=== Official new patch thread ===-- patch 4.0.9
Here's what it said on MM window As you can see, the main bot targeted a mob, then when the mob still had HP left (1037/1592), the bot thought "Fight finished. Killed 11 MOB_NAME_HERE. " But the mob was still alive -- leaving my assist bot trying to fend it off.
Code: Select all
Moving to waypoint #49, (-1602, -3932)
Stopping waypoint: Target acquired before moving.
Engaging enemy [MOB_NAME_HERE] in combat.
We begin the fight with ranged pulling.
Use MACRO: WARRIOR_SURPRISE_ATT=> MOB_NAME_HERE (1592/1592)
Ranged pulling finished, mob in melee distance.
Use MACRO: WARRIOR_TACTICAL_ATT=> MOB_NAME_HERE (1381/1592)
Use MACRO: WARRIOR_OPEN_FLANK => MOB_NAME_HERE (1265/1592)
Use MACRO: WARRIOR_SLASH => MOB_NAME_HERE (1037/1592)
Fight finished. Killed 11 MOB_NAME_HERE. (fight #11 / runtime 9 minutes)
Clearing target.
Moving to waypoint #49, (-1602, -3932)
Moving to waypoint #50, (-1344, -3901)
Moving to waypoint #51, (-1268, -3913)
Resting up to 25 to fill up mana and HP.
Resting finished after 1 seconds.
Moving to waypoint #52, (-1255, -3656)
Stopping waypoint: Target acquired.
Engaging enemy [MOB_NAME_HERE] in combat.
We begin the fight with ranged pulling.
lisa wrote:Did it do any prints on MM before changing targets or just the clearing target print?
I might have it, try this.
--=== removed file ===--
tested myself and it was bad lol
Re: --=== Official new patch thread ===-- patch 4.0.9
I can't explain that at all, has it happened more than once?
It entered the player:fight() and then it left the function before the mob was dead and it only leaves the fight function when you no longer target the mob.
So somehow the bot stopped targeting mob or atleast it thought it no longer targeted it.
If it is happening regularly can you enable debugging so I can see why it stopped attacking.
It entered the player:fight() and then it left the function before the mob was dead and it only leaves the fight function when you no longer target the mob.
So somehow the bot stopped targeting mob or atleast it thought it no longer targeted it.
If it is happening regularly can you enable debugging so I can see why it stopped attacking.
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
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: --=== Official new patch thread ===-- patch 4.0.9
Here's another output with debug turned on.
Key line I think is "[DEBUG] 1379417088 anti kill steal: target not fighting us: target don't targeting a friend". Hope that helps you help me
Code: Select all
We changed the option 'DEBUG_INV' from 'false' to 'false'.
We changed the option 'DEBUG_TARGET' from 'false' to 'true'.
We changed the option 'DEBUG_LOOT' from 'false' to 'true'.
We changed the option 'DEBUG_HARVEST' from 'false' to 'true'.
We changed the option 'DEBUG_WAYPOINT' from 'false' to 'true'.
We changed the option 'DEBUG_AUTOSELL' from 'true' to 'false'.
Moving to waypoint #51, (-1268, -3913)
Stopping waypoint: Target acquired before moving.
Engaging enemy [MOB_NAME_HERE] in combat.
We begin the fight with ranged pulling.
Use MACRO: WARRIOR_SURPRISE_ATT=> MOB_NAME_HERE (1509/1509)
Ranged pulling finished, mob in melee distance.
Use MACRO: WARRIOR_OPEN_FLANK => MOB_NAME_HERE (1378/1509)
Use MACRO: WARRIOR_SLASH => MOB_NAME_HERE (939/1509)
[DEBUG] 1379417088 anti kill steal: target not fighting us: target don't targeti
ng a friend
Fight finished. Killed 1 MOB_NAME_HERE. (fight #1 / runtime 0 minutes)
Clearing target.
[DEBUG] 0 target lvl above/below profile settings with battling from other mob
[DEBUG] FightStartX -1288.5697021484 FightStartZ -3806.3225097656
[DEBUG] dir_FS->WP rad -1.380 dir_FS->FE rad 2.116
[DEBUG] Line FS->WP / FS->FE: angleDif rad 2.787 grad 159
[DEBUG] We (would) pass(ed) wp #51 (dist 108.6) in a dist of 213 (skip at 100)
Moving to waypoint #51, (-1268, -3913)
Resting up to 11 to fill up mana and HP.
Resting finished after 1 seconds.
Moving to waypoint #52, (-1255, -3656)
lisa wrote:I can't explain that at all, has it happened more than once?
It entered the player:fight() and then it left the function before the mob was dead and it only leaves the fight function when you no longer target the mob.
So somehow the bot stopped targeting mob or atleast it thought it no longer targeted it.
If it is happening regularly can you enable debugging so I can see why it stopped attacking.
Re: --=== Official new patch thread ===-- patch 4.0.9
Now we are getting somewhere =)
Ok the code in question is this
So in order for it to do the anti KS and stop killing mob it has to be true for all of these
mob isn't targeting you
target:getTarget().Address ~= player.Address
mob isn't targeting a "friend"
(not player:isFriend(CPawn(target.TargetPtr))
mob actually has a target
target:getTarget().Address ~= 0
mob isn't targeting a party member
target:getTarget().InParty ~= true
I am going to add some "debugging" prints to the attached file to narrow down which is causing it to trigger the anti-ks so we can then work out why.
Please test it and post what MM prints when it changes target.
Ok the code in question is this
Code: Select all
if( settings.profile.options.ANTI_KS ) then
if( target:haveTarget() and
target:getTarget().Address ~= player.Address and
(not player:isFriend(CPawn(target.TargetPtr))) and
target:getTarget().Address ~= 0 -- because of distance limitation
and target:getTarget().InParty ~= true )then
cprintf(cli.red, language[5], target.Name);
else
player:fight();
end
else
player:fight();
end
mob isn't targeting you
target:getTarget().Address ~= player.Address
mob isn't targeting a "friend"
(not player:isFriend(CPawn(target.TargetPtr))
mob actually has a target
target:getTarget().Address ~= 0
mob isn't targeting a party member
target:getTarget().InParty ~= true
I am going to add some "debugging" prints to the attached file to narrow down which is causing it to trigger the anti-ks so we can then work out why.
Please test it and post what MM prints when it changes target.
- Attachments
-
- bot.lua
- (34.52 KiB) Downloaded 57 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
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 1 guest