how to find ids of new buff food

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
Ballerlocke
Posts: 12
Joined: Sat Jul 23, 2011 7:22 pm

how to find ids of new buff food

#1 Post by Ballerlocke » Fri Feb 15, 2013 10:15 pm

how to find id of new buff food

i search for the script to find id of bufffood or items in the back

not the buff of items or food

I am looking for a possibility to accept party check () = true or by time

if(player.free_counter1 == 0) then player.free_counter1 = os.time(); end;
if( os.difftime(os.time(), player.free_counter1) > 60 or checkparty() = true ) then

I want it to check the party waits max 60 sec and then continues without the confirmation at check party

i dont no i write this ok


thanks for help

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

Re: how to find ids of new buff food

#2 Post by rock5 » Fri Feb 15, 2013 11:30 pm

Put the item you want the id of, in slot 1 of your bags.
Start "StartCommandLine.bat" in the rom folder.
At the prompt type

Code: Select all

print(inventory.BagSlot[61].Name,inventory.BagSlot[61].Id)
This will print the name and id of the item.
If you don't know how to copy and paste in Micromacro then follow the link in my signature.


If I understand correctly you just want to wait a maximum of 60s for checkparty() then continue. I wouldn't bother with the free_counter. I would do it like this

Code: Select all

local starttime = os.time()
repeat
    yrest(1000) -- 1 seconds
until (os.time()-starttime > 60) or (checkparty() == true)
  • 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

Post Reply

Who is online

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