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?