Uo steam question

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
 

halygon

Grandmaster
I am not sure a list is required at all. Try just having a:

Code:
findtype <graphicID> 'any' 'backpack'

The "ignoreobject" line at the bottom should keep it from selecting the same box again, not to mention you can put in the findtype line to only look in the top level of your backpack, which once you move the box will prevent it from being found.
 

DingDong

Master
All right thanks, gotta try when in getting home later.
The most important is that it wont go for same chest again except with failures, thats been my main problem to solve. Maybe im thinking wrong and this more simple way will work :)
 

DingDong

Master
I am not sure a list is required at all. Try just having a:

Code:
findtype <graphicID> 'any' 'backpack'

The "ignoreobject" line at the bottom should keep it from selecting the same box again, not to mention you can put in the findtype line to only look in the top level of your backpack, which once you move the box will prevent it from being found.
Heya Halygon!

Thanks a bunch, works like a charm, just a few pauses here and there that had to be adjusted, but it works.

is there anyway to show current serial in a system message, so I can follow it when it switches?
 

halygon

Grandmaster
Heya Halygon!

Thanks a bunch, works like a charm, just a few pauses here and there that had to be adjusted, but it works.

is there anyway to show current serial in a system message, so I can follow it when it switches?
Nope, not that I know of.
 
Top