Question about transferring items

Ask for help

Moderators: Murderator+, Murderator

Post Reply
Thdin
Posts: 51
Joined: 2004-07-22 07:37:37

Question about transferring items

Post by Thdin »

How can I script a section of my code to simply dump ALL items from a bag in my pack to a container I recall to (after mining, for example, to dump all the ore)

Right now I have this:

Code: Select all


Lotsofdropping:
UO.FindType('0x19B9','0x0000','orebag')
if UO.GetQuantity('finditem')>0 then
      UO.MoveItem('finditem','0','StoreCont')
      CheckLag()
      wait(500)
      goto Lotsofdropping
endif



But for some reason, it does not always find ALL the piles of ore. Is there a way to do this?
Thdin
Posts: 51
Joined: 2004-07-22 07:37:37

Post by Thdin »

I discovered what the problem was.

Lotsofdropping:
UO.FindType('0x19B9','0x0000','orebag') <<<<<<<<<<<
if UO.GetQuantity('finditem')>0 then
UO.MoveItem('finditem','0','StoreCont')
CheckLag()
wait(500)
goto Lotsofdropping
endif

I need to have a -1 instead of a 0x0000. Then it loops until Getquantity==0.

:D
Post Reply