bot keeps eating food O.o

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
User avatar
botje
Posts: 656
Joined: Wed Oct 27, 2010 7:17 am

bot keeps eating food O.o

#1 Post by botje » Sun Jan 23, 2011 6:31 am

i tried with and without the foodaddon, but it keeps eating the food, even when the time remaining on it is just passed 5 secs or so.

this costs a lot of money xd

seems the player buffs arent getting updated?

Botje

edit, its not only food, but every buff >.<

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

Re: bot keeps eating food O.o

#2 Post by rock5 » Sun Jan 23, 2011 7:23 am

Sorry, I just discovered that I broke updatebuffs with my last RoMBot edit. I'll fix it right now.
  • 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

User avatar
botje
Posts: 656
Joined: Wed Oct 27, 2010 7:17 am

Re: bot keeps eating food O.o

#3 Post by botje » Sun Jan 23, 2011 7:31 am

thanx mate :)

Botje

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: bot keeps eating food O.o

#4 Post by lisa » Sun Jan 23, 2011 8:49 am

did you break the wait time after resurecting player before doing Cpawn:Update() ?
I get that error sometimes after resurecting if load screen takes a second or to longer then normal.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

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

Re: bot keeps eating food O.o

#5 Post by rock5 » Sun Jan 23, 2011 9:07 am

lisa wrote:did you break the wait time after resurecting player before doing Cpawn:Update() ?
I get that error sometimes after resurrecting if load screen takes a second or to longer then normal.
I don't think anything I did should have affected resurrection. Start up a thread describing what happens.
  • 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

Cid
Posts: 7
Joined: Thu Aug 19, 2010 1:27 pm

Re: bot keeps eating food O.o

#6 Post by Cid » Sat Apr 09, 2011 11:13 pm

Hi,

the following code doesn't work (or i used it false?!):

Code: Select all

		player:updateBuffs();
		if not player.Buffs["Turn of Luck Powder Dust"] then
			inventory:useItem(207203);
The buff expires after 2 hours, but everytime I come to the waypoint I extended with this code, my bot takes a new bottle of my very rare luck powder.

I have only one idea, why this doesn't work: I use the german rom-version. And in german the buff's name is: "Glückspuderstaub"?!

Thanks for the help and best regards,
Cid

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

Re: bot keeps eating food O.o

#7 Post by rock5 » Sat Apr 09, 2011 11:36 pm

If you are running a German client then, yes, it needs to be in German or use the buff id.

Also the buffs aren't saved by name that way. Instead use the player:hasBuff() function

Code: Select all

if not player:hasBuff("Turn of Luck Powder Dust") then
  • 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

Cid
Posts: 7
Joined: Thu Aug 19, 2010 1:27 pm

Re: bot keeps eating food O.o

#8 Post by Cid » Sun Apr 10, 2011 12:22 am

Thanks for the fast answer!

Have you an idea how I must write the "ü" in "Glückspuderstaub"? I haven't tested the code from your reply yet, but I think I must use something like "ue" or "\188\165", or?

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

Re: bot keeps eating food O.o

#9 Post by rock5 » Sun Apr 10, 2011 12:49 am

I don't know how to do that, sorry. Administrator could tell you.

But you could use the buff id instead. To get the buff id use this command in game to give you the name and id of your current buffs.

Code: Select all

/script i=1 while UnitBuff( "player", i) ~= nil do name, __, __, ID = UnitBuff( "player", i) SendSystemChat(name.." "..ID) i = i + 1 end
  • 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

User avatar
Administrator
Site Admin
Posts: 5329
Joined: Sat Jan 05, 2008 4:21 pm

Re: bot keeps eating food O.o

#10 Post by Administrator » Sun Apr 10, 2011 1:22 am

It totally depends where you're using it. In your profile or waypoints, you can just use the character normally as long as you save it as UTF8.

Cid
Posts: 7
Joined: Thu Aug 19, 2010 1:27 pm

Re: bot keeps eating food O.o

#11 Post by Cid » Sun Apr 10, 2011 1:32 am

Ok, thank you. It works. :)

EDIT: I used it in waypoint-file, but I think in profile is better...

Post Reply

Who is online

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