Back to "stream" tags

Pretty Bag Item Stack by Jaseowns

// Pretty Bag Item Stack by Jaseowns // move items by type into a stack but offset # drop prettyBag -1 -1 -1 - same as dropping on the container # drop prettyBag 0 0 0 - top left of bag # -info to get the Position coordinates // @setvar! prettyBag 0x40238ECE @setvar! prettyBag 0x401E08E3 @setvar! globalTimeout 650 // 100 100 0 center of a backpack and pouch // 65 75 0 center of a bag @setvar! itemCounter 0 @setvar! itemStartPositionX 100 @setvar! itemStartPositionY 100 @clearignore // Earth while findtype 3985 backpack 2767 as item if counttype 3985 backpack 2767 as totalItems @setvar! itemStartPositionY 100 if totalItems = 9 @setvar! itemStartPositionX 100 elseif totalItems = 8 @setvar! itemStartPositionX 101 elseif totalItems = 7 @setvar! itemStartPositionX 102 elseif totalItems = 6 @setvar! itemStartPositionX 103 elseif totalItems = 5 @setvar! itemStartPositionX 104 elseif totalItems = 4 @setvar! itemStartPositionX 105 elseif totalItems = 3 @setvar! itemStartPositionX 106 elseif totalItems = 2 @setvar! itemStartPositionX 107 elseif totalItems = 1 @setvar! itemStartPositionX 108 else @setvar! itemStartPositionX 100 endif endif lift item 1 drop prettyBag itemStartPositionX itemStartPositionY 0 wait globalTimeout @ignore item endwhile // Air while findtype 3985 backpack 2263 as item if counttype 3985 backpack 2263 as totalItems @setvar! itemStartPositionY 150 if totalItems = 9 @setvar! itemStartPositionX 100 elseif totalItems = 8 @setvar! itemStartPositionX 101 elseif totalItems = 7 @setvar! itemStartPositionX 102 elseif totalItems = 6 @setvar! itemStartPositionX 103 elseif totalItems = 5 @setvar! itemStartPositionX 104 elseif totalItems = 4 @setvar! itemStartPositionX 105 elseif totalItems = 3 @setvar! itemStartPositionX 106 elseif totalItems = 2 @setvar! itemStartPositionX 107 elseif totalItems = 1 @setvar! itemStartPositionX 108 else @setvar! itemStartPositionX 100 endif endif lift item 1 drop prettyBag itemStartPositionX itemStartPositionY 0 wait globalTimeout @ignore item endwhile // Blood while findtype 3985 backpack 2087 as item if counttype 3985 backpack 2087 as totalItems @setvar! itemStartPositionY 50 if totalItems = 9 @setvar! itemStartPositionX 100 elseif totalItems = 8 @setvar! itemStartPositionX 101 elseif totalItems = 7 @setvar! itemStartPositionX 102 elseif totalItems = 6 @setvar! itemStartPositionX 103 elseif totalItems = 5 @setvar! itemStartPositionX 104 elseif totalItems = 4 @setvar! itemStartPositionX 105 elseif totalItems = 3 @setvar! itemStartPositionX 106 elseif totalItems = 2 @setvar! itemStartPositionX 107 elseif totalItems = 1 @setvar! itemStartPositionX 108 else @setvar! itemStartPositionX 100 endif endif lift item 1 drop prettyBag itemStartPositionX itemStartPositionY 0 wait globalTimeout @ignore item endwhile @clearignore