Thomas Coppedge
Novice
Hello,
What I want to do is check my bag for list of items and range for box to move them in. I have boxes around my house that arent all in range to stand in 1 spot and play a macro. The part I'm having a problem with is the @findype 'listname' 'any' 'backpack'. Since my list has multiple graphics I wanted to use 1 section for all of them.
@setalias 'regbag' 'serial'
if not listexists 'regs'
createlist 'regs'
@pushlist 'regs' '0xf86' //Regs
@pushlist 'regs' '0xf85' //Regs
@pushlist 'regs' '0xf8d' //Regs
@pushlist 'regs' '0xf88' //Regs
@pushlist 'regs' '0xf84' //Regs
@pushlist 'regs' '0xf7a' //Regs
@pushlist 'regs' '0xf7b' //Regs
@pushlist 'regs' '0xf8c' //Regs
endif
I Need help on checking my backpack for regs with the list i created
It won't let me use the list for the @findtype. I have to use a graphic. but I want to use a list
if @inrange 'mapbag' 2 and @findtype 'regs' 'any' 'backpack'
This part below works
for 0 to 'maps'
while @findtype 'maps[]' 'any' 'backpack'
moveitem found 'mapbag'
pause 1000
endwhile
endfor
msg '[e whistle'
headmsg 'Maps Moved' '69'
pause 1000
endif
I could do this but then I haven't figured out where to put a msg that I moved all my regs when finished.
@setalias 'regbag' '0x413ce0db'
@setalias 'regbox' '0x40d1152d'
if not listexists 'regs'
createlist 'regs'
@pushlist 'regs' '0xf86'
@pushlist 'regs' '0xf85'
@pushlist 'regs' '0xf8d'
@pushlist 'regs' '0xf88'
@pushlist 'regs' '0xf84'
@pushlist 'regs' '0xf7a'
@pushlist 'regs' '0xf7b'
@pushlist 'regs' '0xf8c'
endif
if @inrange 'regbox' 2 and @findtype '0xf86' 'any' 'backpack'
useobject 'regbox'
for 0 to 'regs'
while @findtype 'regs[]' 'any' 'backpack'
moveitem found 'regbag'
pause 1000
endwhile
endfor
pause 1000
elseif @inrange 'regbox' 2 and @findtype '0xf85' 'any' 'backpack'
useobject 'regbox'
for 0 to 'regs'
while @findtype 'regs[]' 'any' 'backpack'
moveitem found 'regbag'
pause 1000
endwhile
endfor
pause 1000
elseif @inrange 'regbox' 2 and @findtype '0xf8d' 'any' 'backpack'
useobject 'regbox'
for 0 to 'regs'
while @findtype 'regs[]' 'any' 'backpack'
moveitem found 'regbag'
pause 1000
endwhile
endfor
pause 1000
elsei @inrange 'regbox' 2 and @findtype '0xf88' 'any' 'backpack'
useobject 'regbox'
for 0 to 'regs'
while @findtype 'regs[]' 'any' 'backpack'
moveitem found 'regbag'
pause 1000
endwhile
endfor
pause 1000
elseif @inrange 'regbox' 2 and @findtype '0xf84' 'any' 'backpack'
useobject 'regbox'
for 0 to 'regs'
while @findtype 'regs[]' 'any' 'backpack'
moveitem found 'regbag'
pause 1000
endwhile
endfor
pause 1000
elseif @inrange 'regbox' 2 and @findtype '0xf7a' 'any' 'backpack'
useobject 'regbox'
for 0 to 'regs'
while @findtype 'regs[]' 'any' 'backpack'
moveitem found 'regbag'
pause 1000
endwhile
endfor
pause 1000
elseif @inrange 'regbox' 2 and @findtype '0xf7b' 'any' 'backpack'
useobject 'regbox'
for 0 to 'regs'
while @findtype 'regs[]' 'any' 'backpack'
moveitem found 'regbag'
pause 1000
endwhile
endfor
pause 1000
elseif @inrange 'regbox' 2 and @findtype '0xf8c' 'any' 'backpack'
useobject 'regbox'
for 0 to 'regs'
while @findtype 'regs[]' 'any' 'backpack'
moveitem found 'regbag'
pause 1000
endwhile
endfor
endif
What I want to do is check my bag for list of items and range for box to move them in. I have boxes around my house that arent all in range to stand in 1 spot and play a macro. The part I'm having a problem with is the @findype 'listname' 'any' 'backpack'. Since my list has multiple graphics I wanted to use 1 section for all of them.
@setalias 'regbag' 'serial'
if not listexists 'regs'
createlist 'regs'
@pushlist 'regs' '0xf86' //Regs
@pushlist 'regs' '0xf85' //Regs
@pushlist 'regs' '0xf8d' //Regs
@pushlist 'regs' '0xf88' //Regs
@pushlist 'regs' '0xf84' //Regs
@pushlist 'regs' '0xf7a' //Regs
@pushlist 'regs' '0xf7b' //Regs
@pushlist 'regs' '0xf8c' //Regs
endif
I Need help on checking my backpack for regs with the list i created
It won't let me use the list for the @findtype. I have to use a graphic. but I want to use a list
if @inrange 'mapbag' 2 and @findtype 'regs' 'any' 'backpack'
This part below works
for 0 to 'maps'
while @findtype 'maps[]' 'any' 'backpack'
moveitem found 'mapbag'
pause 1000
endwhile
endfor
msg '[e whistle'
headmsg 'Maps Moved' '69'
pause 1000
endif
I could do this but then I haven't figured out where to put a msg that I moved all my regs when finished.
@setalias 'regbag' '0x413ce0db'
@setalias 'regbox' '0x40d1152d'
if not listexists 'regs'
createlist 'regs'
@pushlist 'regs' '0xf86'
@pushlist 'regs' '0xf85'
@pushlist 'regs' '0xf8d'
@pushlist 'regs' '0xf88'
@pushlist 'regs' '0xf84'
@pushlist 'regs' '0xf7a'
@pushlist 'regs' '0xf7b'
@pushlist 'regs' '0xf8c'
endif
if @inrange 'regbox' 2 and @findtype '0xf86' 'any' 'backpack'
useobject 'regbox'
for 0 to 'regs'
while @findtype 'regs[]' 'any' 'backpack'
moveitem found 'regbag'
pause 1000
endwhile
endfor
pause 1000
elseif @inrange 'regbox' 2 and @findtype '0xf85' 'any' 'backpack'
useobject 'regbox'
for 0 to 'regs'
while @findtype 'regs[]' 'any' 'backpack'
moveitem found 'regbag'
pause 1000
endwhile
endfor
pause 1000
elseif @inrange 'regbox' 2 and @findtype '0xf8d' 'any' 'backpack'
useobject 'regbox'
for 0 to 'regs'
while @findtype 'regs[]' 'any' 'backpack'
moveitem found 'regbag'
pause 1000
endwhile
endfor
pause 1000
elsei @inrange 'regbox' 2 and @findtype '0xf88' 'any' 'backpack'
useobject 'regbox'
for 0 to 'regs'
while @findtype 'regs[]' 'any' 'backpack'
moveitem found 'regbag'
pause 1000
endwhile
endfor
pause 1000
elseif @inrange 'regbox' 2 and @findtype '0xf84' 'any' 'backpack'
useobject 'regbox'
for 0 to 'regs'
while @findtype 'regs[]' 'any' 'backpack'
moveitem found 'regbag'
pause 1000
endwhile
endfor
pause 1000
elseif @inrange 'regbox' 2 and @findtype '0xf7a' 'any' 'backpack'
useobject 'regbox'
for 0 to 'regs'
while @findtype 'regs[]' 'any' 'backpack'
moveitem found 'regbag'
pause 1000
endwhile
endfor
pause 1000
elseif @inrange 'regbox' 2 and @findtype '0xf7b' 'any' 'backpack'
useobject 'regbox'
for 0 to 'regs'
while @findtype 'regs[]' 'any' 'backpack'
moveitem found 'regbag'
pause 1000
endwhile
endfor
pause 1000
elseif @inrange 'regbox' 2 and @findtype '0xf8c' 'any' 'backpack'
useobject 'regbox'
for 0 to 'regs'
while @findtype 'regs[]' 'any' 'backpack'
moveitem found 'regbag'
pause 1000
endwhile
endfor
endif
Last edited: