Page 1 of 1

bot keeps eating food O.o

Posted: Sun Jan 23, 2011 6:31 am
by botje
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 >.<

Re: bot keeps eating food O.o

Posted: Sun Jan 23, 2011 7:23 am
by rock5
Sorry, I just discovered that I broke updatebuffs with my last RoMBot edit. I'll fix it right now.

Re: bot keeps eating food O.o

Posted: Sun Jan 23, 2011 7:31 am
by botje
thanx mate :)

Botje

Re: bot keeps eating food O.o

Posted: Sun Jan 23, 2011 8:49 am
by lisa
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.

Re: bot keeps eating food O.o

Posted: Sun Jan 23, 2011 9:07 am
by rock5
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.

Re: bot keeps eating food O.o

Posted: Sat Apr 09, 2011 11:13 pm
by Cid
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

Re: bot keeps eating food O.o

Posted: Sat Apr 09, 2011 11:36 pm
by rock5
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

Re: bot keeps eating food O.o

Posted: Sun Apr 10, 2011 12:22 am
by Cid
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?

Re: bot keeps eating food O.o

Posted: Sun Apr 10, 2011 12:49 am
by rock5
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

Re: bot keeps eating food O.o

Posted: Sun Apr 10, 2011 1:22 am
by Administrator
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.

Re: bot keeps eating food O.o

Posted: Sun Apr 10, 2011 1:32 am
by Cid
Ok, thank you. It works. :)

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