Page 1 of 1

how to find ids of new buff food

Posted: Fri Feb 15, 2013 10:15 pm
by Ballerlocke
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

Re: how to find ids of new buff food

Posted: Fri Feb 15, 2013 11:30 pm
by rock5
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)