dcOnEmpty

Forum closed. All further discussion to be discussed at https://github.com/OpenKore/

Moderators: Moderators, Developers

Message
Author
Nicodareus
Noob
Noob
Posts: 17
Joined: 12 Feb 2012, 17:56
Noob?: Yes

dcOnEmpty

#1 Post by Nicodareus »

Code: Select all

getAuto White Potion {
	minAmount 0
	maxAmount 30
	passive 0
	dcOnEmpty 1
}
Does it not work properly with <relogAfterStorage 1>?
I woke up to my rogue having lost all exp cause it kept repeatedly dying from not having a way to heal itself, but it was supposed to disconnect when out of white potions..

Cozzie
Spam Generator
Spam Generator
Posts: 499
Joined: 04 Apr 2008, 09:30
Noob?: No
Location: Melbourne, City of beer and awful sushis

Re: dcOnEmpty

#2 Post by Cozzie »

Sounds like a bug. Moved over to bug report.
Make Openkore Awesome. Join the team.

User avatar
SkylorD
Moderators
Moderators
Posts: 1167
Joined: 16 Dec 2011, 02:53
Noob?: No
Location: Brazil
Contact:

Re: dcOnEmpty

#3 Post by SkylorD »

Nicodareus wrote:

Code: Select all

getAuto White Potion {
	minAmount 0
	maxAmount 30
	passive 0
	dcOnEmpty 1
}
Does it not work properly with <relogAfterStorage 1>?
I woke up to my rogue having lost all exp cause it kept repeatedly dying from not having a way to heal itself, but it was supposed to disconnect when out of white potions..
He relogs, but doesn't quit.
In other words, When your item->storage is doesn't exists, your bot relog and after 5 second (default), he is on again and calculate route to your lockMap.
Learn rules

Nicodareus
Noob
Noob
Posts: 17
Joined: 12 Feb 2012, 17:56
Noob?: Yes

Re: dcOnEmpty

#4 Post by Nicodareus »

Yeah i just took out the relog after storage. The documentation said it was there to work around a storage bug, but i haven't noticed anything bad without it.

User avatar
SkylorD
Moderators
Moderators
Posts: 1167
Joined: 16 Dec 2011, 02:53
Noob?: No
Location: Brazil
Contact:

Re: dcOnEmpty

#5 Post by SkylorD »

Nicodareus wrote:Yeah i just took out the relog after storage. The documentation said it was there to work around a storage bug, but i haven't noticed anything bad without it.
I think about this bug, and i see this :
if (!$config{relogAfterStorage} && $args->{retry} >= 3 && !$args->{warned}) {
# We tried 3 times to get the item and failed.
# There is a weird server bug which causes this to happen,
# but I can't reproduce it. This can be worked around by
# relogging in after autostorage.
warning T("Kore tried to get an item from storage 3 times, but failed.\n" .
"This problem could be caused by a server bug.\n" .
"To work around this problem, set 'relogAfterStorage' to 1, and relogin.\n");
$args->{warned} = 1;
}
Is because this you not have noticed.
Don't happen this with you (The kore will try storage the item, if the item is failed, its not stored, the kore will stop.


Nhaauum.
Learn rules

Cozzie
Spam Generator
Spam Generator
Posts: 499
Joined: 04 Apr 2008, 09:30
Noob?: No
Location: Melbourne, City of beer and awful sushis

Re: dcOnEmpty

#6 Post by Cozzie »

SkylorD wrote:
Nicodareus wrote:Yeah i just took out the relog after storage. The documentation said it was there to work around a storage bug, but i haven't noticed anything bad without it.
I Think which about this bug, is refer to this :
if (!$config{relogAfterStorage} && $args->{retry} >= 3 && !$args->{warned}) {
# We tried 3 times to get the item and failed.
# There is a weird server bug which causes this to happen,
# but I can't reproduce it. This can be worked around by
# relogging in after autostorage.
warning T("Kore tried to get an item from storage 3 times, but failed.\n" .
"This problem could be caused by a server bug.\n" .
"To work around this problem, set 'relogAfterStorage' to 1, and relogin.\n");
$args->{warned} = 1;
}
Is because this you not have noticed.
Don't happen this with you (The kore will try storage the item, if the item is failed, its not stored, the kore will stop.


Nhaauum.
Regardless, dcOnEmpty should take precedent over relogAfterStorage 0 as a proper fix so both can work together.
Make Openkore Awesome. Join the team.

Locked