Page 1 of 1

command to stop bot...?

Posted: Mon Sep 28, 2009 12:45 am
by dinhdong
Is there a command to stop and log out of game when heal is low/empty??

thanks for your help

Re: command to stop bot...?

Posted: Mon Sep 28, 2009 4:42 pm
by d003232
dinhdong wrote:Is there a command to stop and log out of game when heal is low/empty??
You have to check the

Code: Select all

player.PotionHpUsed
counter in your profile events and after you reach your limit, use the

Code: Select all

player:logout([true]);
function. You could also use a inventory function

Code: Select all

if (inventory:bestAvailableConsumable("healing") == false) then
to see, that you are out of potions.