Bot heals forever

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
freeload80
Posts: 9
Joined: Thu Apr 05, 2012 9:25 am

Bot heals forever

#1 Post by freeload80 » Wed Jan 30, 2013 12:52 pm

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
Attachments
Heal.jpg

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Bot heals forever

#2 Post by rock5 » Wed Jan 30, 2013 2:36 pm

Try adding a player:update() to update your hp values. Or use the new miniupdate player:updateHP()
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

freeload80
Posts: 9
Joined: Thu Apr 05, 2012 9:25 am

Re: Bot heals forever

#3 Post by freeload80 » Wed Jan 30, 2013 3:49 pm

It helpt.

thx

vale46
Posts: 25
Joined: Sat Apr 23, 2011 1:22 pm

Re: Bot heals forever

#4 Post by vale46 » Tue Feb 05, 2013 5:14 pm

Same problem,.. ok fix it thx :)

Mer-Ki-Vah
Posts: 35
Joined: Sat Feb 04, 2012 6:53 am

Re: Bot heals forever

#5 Post by Mer-Ki-Vah » Thu Feb 07, 2013 1:08 am

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

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 7 guests