;just copy this code, grab a shovel and your fire beetle
;and head to the nearest cave.
;hit the dirt once, and if you pull up some ore, press play
set #lpc 100
set %oretypes TVJ_EWJ_DWJ_GWJ
finditem OHP * g
set %fireBeetleID #findid
set %shovel #lobjectid
set %mtile #ltargettile
set %mkind #ltargetkind
set %mx #ltargetx
set %my #ltargety
set %mz #ltargetz
finditem %oretypes * c_ , #backpackid
if #findcnt > 0 6
set #lobjectid #findid
event macro 17
set #ltargetid %fireBeetleID
set #ltargetkind 1
target
event macro 22
wait 30
loop:
set #lobjectid %shovel
event macro 17
set #ltargettile %mtile
set #ltargetkind %mkind
set #ltargetx %mx
set #ltargety %my
set #ltargetz %mz
while #targcurs <> 1
gosub scan journal
event macro 22
finditem %oretypes * c_ , #backpackid
if #findcnt > 0 6
set #lobjectid #findid
event macro 17
set #ltargetid %fireBeetleID
set #ltargetkind 1
while #targcurs <> 1
gosub scanjournal
event macro 22
repeat
gosub scanjournal
finditem %oretypes * c_ , #backpackid
until #findcnt > 0 || you_loosen in #journal
goto loop
sub scanjournal
scanjournal #jindex
if you_must in #journal 2
display Test failed! you cannot dig>smelt>dig>smelt>... on OSI
halt
if there_is_no in #journal 2
display Success! you can dig>smelt>dig>smelt>... on OSI
halt
return
If * is used instead of an id or an index, all items of all types will be returned.
finditem
finditem *
does as well.finditem %string * c/g_ , %mod
for thousands of continuous hours, so I just stopped worrying about it.finditem * c/g_ , %mod
I have used it like that, but I always use it unless I just usefinditem
alonefrom EUO wiki:QuoteIf * is used instead of an id or an index, all items of all types will be returned.
I really don't know. In my experience,Code: [Select]finditem
returns everything everywhere.
apparentlyCode: [Select]finditem *
does as well.
everything without any filtering in your container/ground search
finditem c_ , #backpackid
finditem assumes that is parameter 1 i.e. what to search for, and it will find your backpack on your paperdoll #findcnt = 1 #bagid = #charid;run this with an "empty" backpack... no bods, no extra stuff
finditem * c_ , #backpackid
for #findindex 1 #findcnt
ignoreitem #findid
or made a list and added an if_not check in your finditem_check_for_craftfor #findindex 1 #findcnt
set %sbodid . #findindex #findid
set %sbodcnt #findcnt
;then you just use your counter or a for() to set the id every cycle
if %sbod_index > %sbod_count
break
else
set %current_sbod %sbodid . %sbod_index