Another problem since RC3
Posted: Sat Feb 16, 2013 9:23 am
I'm using a modified version of the KS_killzone script. It works perfectly with the new bot release with my M/P. It also worked with my S/R before the RC3, but now I'm having a strange effect.
This is the code for entering KS.
After entering KS the char does not follow the usual waypoints but is running pretty much havoc. Running against the wall, ignoring aggro from mobs, getting stuck somewhere etc. - I made a backup of the bot at revision 739 in a different directory. Running with that bot version everything is fine.
I restarted with a fresh client etc, but this did not help to remove the problem.
I'm asking myself, what could be the reason, if the same script runs fine with a M/P but doesn't with a S/R. What I noticed in the MM window. With my S/R it prints "no more usable healing potions..." just before entering KS. I don't carry any, because my R/S can oneshot everything in KS - the only damage worth noting is while jumping off the cliff on the way from pancer to KS.
Any ideas?
Edit: The problem seems to go away, if I have HP potions in my bag. Huh, what's that?
Edit2: I noticed a similar problem when leaving the instance. The script does this for leaving:
It seems that if the bot is running while this code is being executed the "running state" is still active after the loading screens is gone, so the char continues running for a while. Sometimes he recovers, but sometimes this may cause problems.
How can I ensure that the char is NOT running when the "waitForLoadScreen()" is being executed?
This is the code for entering KS.
Code: Select all
<!-- # 21 --><waypoint x="-18560" z="12451" y="-778" type="TRAVEL">
if player.Class1 == CLASS_PRIEST or player.Class2 == CLASS_PRIEST then
player:cast("PRIEST_REGENERATE");
end
</waypoint>
<!-- # 22 --><waypoint x="-18564" z="12400" y="-779" type="TRAVEL">
yrest(500);
ksLog("Entering instance", LOGLEVEL_INFO);
while (getZoneId() == 6) do
GoToPortal(200);
waitForLoadingScreen(30);
end
player:update();
</waypoint>
<!-- # 23 --><waypoint x="4715" z="824" y="680" type="TRAVEL" tag="ported In">
I restarted with a fresh client etc, but this did not help to remove the problem.
I'm asking myself, what could be the reason, if the same script runs fine with a M/P but doesn't with a S/R. What I noticed in the MM window. With my S/R it prints "no more usable healing potions..." just before entering KS. I don't carry any, because my R/S can oneshot everything in KS - the only damage worth noting is while jumping off the cliff on the way from pancer to KS.
Any ideas?
Edit: The problem seems to go away, if I have HP potions in my bag. Huh, what's that?
Edit2: I noticed a similar problem when leaving the instance. The script does this for leaving:
Code: Select all
function KSResetInstance()
ksLog("Resetting instance", LOGLEVEL_DEBUG);
KS_runs = KS_runs + 1;
--don't reset if we are already in DDC
local zone = getZoneId();
if (zone ~= 6) then
player:clearTarget();
sendMacro("LeaveParty();");
waitForLoadingScreen(30);
player:update();
else
...How can I ensure that the char is NOT running when the "waitForLoadScreen()" is being executed?