sry for double post.
There is another problem with your loot function. It seems the loot function is causing the client to crash (I get this typical critical error from RoM). It is looting the boss on WP #7 though, but crashes afterwards. This doesn't happen all the time (1 time out of 10 tries). Suggestions?
MM loads this WP:
Code: Select all
<!-- # 8 --><waypoint x="2224" z="2485" y="401">
changeProfileOption("LOOT", true);
changeProfileOption("LOOT_ALL", true);
lootMob();
changeProfileOption("LOOT", false);
changeProfileOption("LOOT_ALL", false);
</waypoint>
lootMob()
Code: Select all
function lootMob()
yrest(math.random(1000))
lootstart = os.time()
local Lootable = player:findEnemy(false, nil, evalTargetLootable)
if Lootable then
repeat
player:target(Lootable)
player:loot()
Lootable:update();
until Lootable == nil or (os.time() - lootstart >= 10)
end
end
MM log:
Clear target (lösche ziel).
Wir gehen zum Wegpunkt #8 (2224, 2485) (loading WP #8)
Clear target (lösche ziel).
-- Here it gets stuck. So no Option-change call or what so ever.
edit: On WP #7 where the character is looting, it stands around for some time, rapidly calling multiple times "clear target", then continuing to WP #8 and then the client is crashing.
edit2: a little sidequestion:
Can I change the following call:
Code: Select all
local Lootable = player:findEnemy(false, nil, evalTargetLootable)
so that it only loots the first DoD boss?
edit3:
Alright, the character tries to loot the boss, succeeds, but then tries to loot the other dead trash mobs (for some reason, Loot Distance is at 125). It clears the target hundreds of times and then I get the message, if "we got stuck" (rooted to the spot). Then MM puts out, that the mob couldn't have been looted, then the client crashes. Then MM tries to unroot the character.
This doesn't happen with the second groupmember though - it works perfectly with it.
This is WP #7 and WP #8. I deleted the changeProfileOptions, because I thought they might cause this problem (they didn't though). Maybe my RoMScript creates this issue?
Code: Select all
<!-- # 7 --><waypoint x="2282" z="2418" y="401">
changeProfileOption("LOOT", true);
changeProfileOption("LOOT_ALL", true);
local main, second = RoMScript("UnitClass('player')")
if (main == "Priester" and second == "Ritter") then
BossFightHeal();
end
lootMob();
</waypoint>
<!-- # 8 --><waypoint x="2224" z="2485" y="401">
lootMob();
changeProfileOption("LOOT", false);
changeProfileOption("LOOT_ALL", false);
</waypoint>