DingDong
Master
Hi trying to figure out a code here and I have gotten stuck.
Trying to trap lots of boxes in my pack and move to another container.
lets say I have 5 boxes in my chest.
I want to find a box in my pack, trap it and move it to another bag when ready. if I fail trap it I want it to stay in my pack til its trapped, after that I want just that box ignored til I clear the list by my self later on.
"
if not listexist 'box'
createlist 'box'
endif
if list 'box' == 0
pushlist 'box' typenumber
endif
if not find 'box'
sysmsg 'out of boxes'
else
setalias 'thebox'
*trapping the box* (This script works)
endif
*moves it to another container* (This script works)
ignoreobject 'thebox'
"
The problem I have is that I only got the sysmsg 'out of boxes' but I have boxes in my pack, the list is cleared manually so the script just loops the out of box things.
So I want a script that, go throw my chests 1 by 1 and ignore the ones I have already in my list..I will clear the list manually if needed.
thanks
Trying to trap lots of boxes in my pack and move to another container.
lets say I have 5 boxes in my chest.
I want to find a box in my pack, trap it and move it to another bag when ready. if I fail trap it I want it to stay in my pack til its trapped, after that I want just that box ignored til I clear the list by my self later on.
"
if not listexist 'box'
createlist 'box'
endif
if list 'box' == 0
pushlist 'box' typenumber
endif
if not find 'box'
sysmsg 'out of boxes'
else
setalias 'thebox'
*trapping the box* (This script works)
endif
*moves it to another container* (This script works)
ignoreobject 'thebox'
"
The problem I have is that I only got the sysmsg 'out of boxes' but I have boxes in my pack, the list is cleared manually so the script just loops the out of box things.
So I want a script that, go throw my chests 1 by 1 and ignore the ones I have already in my list..I will clear the list manually if needed.
thanks