rombot usegoodies problem

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
niko444
Posts: 4
Joined: Tue Jul 19, 2011 10:23 am

rombot usegoodies problem

#1 Post by niko444 »

i have no idea why my rombot isnt working =/ i have readed information about it but it still doesnt use lucky target potion etc.

the file is at userfunctions and its called: userfunction_useGoodie

inside the file i have text like this

function useMaidPots()
if( not player:hasBuff("Unbridled Enthusiasm") and inventory:itemTotalCount(207200) > 0 ) then
inventory:useItem(207200)
inventory:update()
yrest(500)
end
if( not player:hasBuff("Clear Thought") and inventory:itemTotalCount(207202) > 0 ) then
inventory:useItem(207202)
inventory:update()
yrest(500)
end
if( not player:hasBuff("Turn of Luck Powder Dust") and inventory:itemTotalCount(207203) > 0 ) then
inventory:useItem(207203)
inventory:update()
yrest(500)
end
end

can someone help me out why bot doesnt use them :( i would be really grateful

or could someone give me working text and correct name for the file so i can get it work ?
Last edited by niko444 on Tue Jul 19, 2011 1:01 pm, edited 1 time in total.
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: rombot usegoodies problem

#2 Post by rock5 »

Where did you use the function? Did none of them get used?
  • 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
niko444
Posts: 4
Joined: Tue Jul 19, 2011 10:23 am

Re: rombot usegoodies problem

#3 Post by niko444 »

use the function? what do you mean? :P and none of them get used :/
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: rombot usegoodies problem

#4 Post by rock5 »

A function needs to be used. If you don't use it it doesn't run. Typically you would check your potions after combat. So in the <onLeaveCombat> section of your profile add

Code: Select all

useMaidPots()
That will execute the code in the function.
  • 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
niko444
Posts: 4
Joined: Tue Jul 19, 2011 10:23 am

Re: rombot usegoodies problem

#5 Post by niko444 »

edit
Last edited by niko444 on Tue Jul 19, 2011 2:13 pm, edited 1 time in total.
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: rombot usegoodies problem

#6 Post by rock5 »

Profiles can be found in the "profiles" folder. You can read about how to set them up here.
http://www.solarstrike.net/wiki/index.p ... r_Profiles
  • 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
niko444
Posts: 4
Joined: Tue Jul 19, 2011 10:23 am

Re: rombot usegoodies problem

#7 Post by niko444 »

edit!!

OH YA!!!!!!!!!!!! now i readed again ur post and now i understand that i had to copy/paste this to my profile onleavecombat place useMaidPots()

NOW IT WORKS!! thanks rock5 ur best!
Post Reply