Page 2 of 2
Re: faster looting, a lot of bodies
Posted: Thu Jun 14, 2012 12:23 pm
by rock5
The bot doesn't wait for bodies to disappear. As soon as it is no longer lootable, it continues. Maybe it is some other delay. Maybe your lag is increasing.
Re: faster looting, a lot of bodies
Posted: Thu Jun 14, 2012 6:13 pm
by dap
i should try to revert modified files.
but i think the better option is to use magic perfume
lags are not possible. It looks like bot waiting after body dissapear, it always looks the same so this is no lag, waits always the same time.
looks like something tells him that body is lootable until dissapear, but i dont know what is responsible for that.
Re: faster looting, a lot of bodies
Posted: Fri Jun 15, 2012 4:53 am
by silinky
i have that too.
i will tell you what i have done. (don't remember the code i am at work)
onLeaveCombat:
-> check for mobs in an area of 90 and kill them before looting
(this loops until there are mobs in that area)
-> clean the bag
now, when it finishes to kill mobs, it just clears a lot of targets, and wastes about 3-5 seconds after each mob group.
the mm window looks like this after mobs are killed and looting:
"Clear target"
"Clear target"
"Clear target"
"Clear target"
"Clear target"
the number usually varies, for 2 mobs i get it like 3 times, for 5 mobs 6-7 times, dunno exactly.
is that normal? how can i prevent it?
Re: faster looting, a lot of bodies
Posted: Fri Jun 15, 2012 5:51 am
by rock5
silinky wrote:now, when it finishes to kill mobs, it just clears a lot of targets, and wastes about 3-5 seconds after each mob group.
is that normal? how can i prevent it?
Seeing as you use custom code for fighting there is probably something wrong there.
Re: faster looting, a lot of bodies
Posted: Fri Jun 15, 2012 8:42 am
by dap
Could it be that a longer time corresponding to the memory address ?
Re: faster looting, a lot of bodies
Posted: Fri Jun 15, 2012 9:06 am
by rock5
I did a test and timed how long it takes to become non lootable after looting a body. It took about 1.5s. That's the time it takes to bend over and stand up again. The moment it finished standing it was ready to continue.
Re: faster looting, a lot of bodies
Posted: Fri Jun 15, 2012 9:21 am
by silinky
thank you for the answer. i will get home soon and i can show you the exact code, if needed.
i am suspecting:
1. the bot does not loot the killed mobs until he kill all in area, so he cjecks for loot even for those not lootable, and wastes time figuring that out
2. it somehow accumulates targets and clears them separately, but seems like stupid idea from my part
anyway, when i get home i will provide more test results, because i want to speed up my runs, and have to use speedhack where it is safe, so that i recover the time lost on looting (when fighting and looting the server does not pull me back if i run too fast, only if i run non stop for a distance greater than 250)
Re: faster looting, a lot of bodies
Posted: Fri Jun 15, 2012 10:08 am
by dap
Code: Select all
-- Wait for character to finish standing
local starttime = os.clock()
self:update()
while self.Stance ~= 0 and 2 > (os.clock() - starttime) do
yrest(50)
self:update()
end
end
with using flyloot option
Code: Select all
while self.Stance ~= 0 and 2 > (os.clock() - starttime) do
function self.Stance always return 1 so character waits longer than its needed
Code: Select all
-- Wait for character to finish standing
local starttime = os.clock()
self:update()
if settings.profile.options.FLYLOOT == true then
self.Stance = 0
end;
while self.Stance ~= 0 and 2 > (os.clock() - starttime) do
yrest(50)
self:update()
end
end
i modified code like that and now it works great. Char looting in miliseconds with lootomatic
thank you for the hint
regards
Re: faster looting, a lot of bodies
Posted: Fri Jun 15, 2012 10:26 am
by rock5
Nice theory. I checked with my bot doing KS flying. Stance is always 0 so that's not the problem. Had a thought, checked on a server updated to chapter 5 and it looks like Stance doesn't work at all.
Good work on finding the problem. I'll see if I can fix it.
Re: faster looting, a lot of bodies
Posted: Fri Jun 15, 2012 11:42 am
by rock5
Fixed Stance and ActualSpeed, which was also wrong. Added patterns for them in update.lua so hopefully they will get updated next time.
So do an SVN Update.
Re: faster looting, a lot of bodies
Posted: Sat Jun 16, 2012 10:16 am
by silinky
this fixed for me too
