Page 1 of 1

Bot heals forever

Posted: Wed Jan 30, 2013 12:52 pm
by freeload80
After yesterday update, after patch 5.0.7, my bot heals forever.

My code for heal:

Code: Select all

if player.Class1 == 8 or player.Class2 == 8 then -- druid
		while (80 > player.HP/player.MaxHP*100) do
			player:cast("DRUID_RECOVER");
			yrest(2300);
		end
	end

Re: Bot heals forever

Posted: Wed Jan 30, 2013 2:36 pm
by rock5
Try adding a player:update() to update your hp values. Or use the new miniupdate player:updateHP()

Re: Bot heals forever

Posted: Wed Jan 30, 2013 3:49 pm
by freeload80
It helpt.

thx

Re: Bot heals forever

Posted: Tue Feb 05, 2013 5:14 pm
by vale46
Same problem,.. ok fix it thx :)

Re: Bot heals forever

Posted: Thu Feb 07, 2013 1:08 am
by Mer-Ki-Vah
Nothing problem , just use player-update.

Code: Select all

if player.Class1 == 8 or player.Class2 == 8 then -- druid
      while (80 > player.HP/player.MaxHP*100) do
         player:cast("DRUID_RECOVER");
         yrest(2300);
         player:update();
      end
end