Why would I want to pop the first item in the list rather than the current item being checked?
if not listexists 'Regcheck'
createlist 'Regcheck'
endif
if list 'Regcheck' == 0
pushlist! 'Regcheck' '0xf7a'
pushlist! 'Regcheck' '0xf84'
pushlist! 'Regcheck' '0xf85'
pushlist! 'Regcheck' '0xf86'
pushlist! 'Regcheck' '0xf8d'
pushlist! 'Regcheck' '0xf8c'
endif
for 0 to 'Regcheck'
if counttype 'Regcheck[]' 'any' 'backpack' < 5
@movetype 'Regcheck[]' 'bank' 'self' 0 0 0 'any' 15
pause 600
endif
endfor
if counttype '0xf7a' 'any' 'backpack' < 6
@movetype '0xf7a' 'bank' 'self' 0 0 0 'any' 15
pause 600
endif
if counttype '0xf84' 'any' 'backpack' < 1
@movetype '0xf84' 'bank' 'self' 0 0 0 'any' 15
pause 600
endif
if counttype '0xf85' 'any' 'backpack' < 2
@movetype '0xf85' 'bank' 'self' 0 0 0 'any' 15
pause 600
endif
if counttype '0xf86' 'any' 'backpack' < 3
@movetype '0xf86' 'bank' 'self' 0 0 0 'any' 15
pause 600
endif
if counttype '0xf8d' 'any' 'backpack' < 4
@movetype '0xf8d' 'bank' 'self' 0 0 0 'any' 15
pause 600
endif
if counttype '0xf8c' 'any' 'backpack' < 5
@movetype '0xf8c' 'bank' 'self' 0 0 0 'any' 15
endif
That does seem like an efficient way to handle restocking, but I'm not sure it'd work for a staggered restock. As for why there are multiple check points, the reagent count must be checked before each heal, otherwise a thief could disrupt the process.
if list 'redCount' >= 3
cast 'greater heal'
usetype '0xf09' 'any' 'bank'
pause 600
if poisoned
msg 'guards' 50
usetype '0xf07' 'any' 'bank'
600
endif
waitfortarget 900
if hits < maxhits
if counttype '0xf7a' 'any' 'backpack' < 6
@movetype '0xf7a' 'bank' 'self' 0 0 0 'any' 15
pause 600
endif
if counttype '0xf84' 'any' 'backpack' < 1
@movetype '0xf84' 'bank' 'self' 0 0 0 'any' 15
pause 600
endif
if counttype '0xf85' 'any' 'backpack' < 2
@movetype '0xf85' 'bank' 'self' 0 0 0 'any' 15
pause 600
endif
if counttype '0xf86' 'any' 'backpack' < 3
@movetype '0xf86' 'bank' 'self' 0 0 0 'any' 15
pause 600
endif
if counttype '0xf8d' 'any' 'backpack' < 4
@movetype '0xf8d' 'bank' 'self' 0 0 0 'any' 15
pause 600
endif
if counttype '0xf8c' 'any' 'backpack' < 5
@movetype '0xf8c' 'bank' 'self' 0 0 0 'any' 15
pause 600
endif
target 'self'
pause 850
cast 'greater heal'
if poisoned
msg 'guards' 50
usetype '0xf07' 'any' 'bank'
600
endif
waitfortarget 1500
endif
while targetexists
if counttype '0xf7a' 'any' 'backpack' < 6
@movetype '0xf7a' 'bank' 'self' 0 0 0 'any' 15
pause 600
endif
if counttype '0xf84' 'any' 'backpack' < 1
@movetype '0xf84' 'bank' 'self' 0 0 0 'any' 15
pause 600
endif
if counttype '0xf85' 'any' 'backpack' < 2
@movetype '0xf85' 'bank' 'self' 0 0 0 'any' 15
pause 600
endif
if counttype '0xf86' 'any' 'backpack' < 3
@movetype '0xf86' 'bank' 'self' 0 0 0 'any' 15
pause 600
endif
if counttype '0xf8d' 'any' 'backpack' < 4
@movetype '0xf8d' 'bank' 'self' 0 0 0 'any' 15
pause 600
endif
if counttype '0xf8c' 'any' 'backpack' < 5
@movetype '0xf8c' 'bank' 'self' 0 0 0 'any' 15
pause 600
endif
if poisoned
msg 'guards' 50
usetype '0xf07' 'any' 'bank'
pause 600
endif
if diffhits > 35
if poisoned
msg 'guards' 50
usetype '0xf07' 'any' 'bank'
600
endif
if targetexists
if counttype '0xf7a' 'any' 'backpack' < 6
@movetype '0xf7a' 'bank' 'self' 0 0 0 'any' 15
pause 600
endif
if counttype '0xf84' 'any' 'backpack' < 1
@movetype '0xf84' 'bank' 'self' 0 0 0 'any' 15
pause 600
endif
if counttype '0xf85' 'any' 'backpack' < 2
@movetype '0xf85' 'bank' 'self' 0 0 0 'any' 15
pause 600
endif
if counttype '0xf86' 'any' 'backpack' < 3
@movetype '0xf86' 'bank' 'self' 0 0 0 'any' 15
pause 600
endif
if counttype '0xf8d' 'any' 'backpack' < 4
@movetype '0xf8d' 'bank' 'self' 0 0 0 'any' 15
pause 600
endif
if counttype '0xf8c' 'any' 'backpack' < 5
@movetype '0xf8c' 'bank' 'self' 0 0 0 'any' 15
pause 600
endif
target 'self'
endif
endif
endwhile
endif
I do have something done, but man i am thinking how i can test it.... lol i dont want to post something with out testing it. im sure i have some regs in my bank on one of my chars. but testing it would kinda be difficult blah. ill download runuo on this computer and get back to you.Yes, that is what's happening.
yea kinda just a public private chat at this point... no drama even yawn.yuck at this thread
what is the leanest way code wise to piss in the wind?