Back to "drop" tags

Yottawatts by Yottawatts

Description: This script searches your backpack and a set lootbag within your backpack (your lootbag) for leather, regs, gems, boards, and ignots. It will set a container on ground as holdingcontainer open it, and ask you two set a bag for leather and bag for other items (regs ect). It will then move this items to the set containers. Very useful for new players using inn rooms and no shelfs or stockpiles!

1#Sets a lootbag to search in none found
2#By Yottawatts
3#UO Outlands
4#Info: This info takes leather, regs, gems, and meat, from lootbag and backpack and puts them into containers in my inn room.
5#Extra: Edit lists, add items to lists, and add new containers as needed.
6#Note: This will loop if not in range of containers   
7  
8    
9    
10#creates varible in razor and sets lootbag container id, or any container you want to search for items to move. 
11#I usually make this whatever my lootbag in my backpack is   
12if not varexist lootbag
13    @setvar lootbag
14endif
15
16#looks for set lootbag id from razor varibale, if not found set new lootbag id
17#Same other other bags. Add, rename as needed.!!!!!!!!!
18if not find lootbag 
19    @setvar lootbag
20endif
21
22#This is the container on the ground holding hidebag and regbag
23if not varexist HoldingContainer
24@setvar HoldingContainer
25endif
26
27#Looks for HoldingConainer within two spaces
28while not find HoldingContainer ground -1 -1 2
29    overhead 'Move to container' 30
30endwhile
31
32dclick HoldingContainer ground
33    
34#bag for leather
35#NOTE: \\ out lines for if not and end if, to @setvar for new bags if needed
36if not varexist hidebag
37    @setvar hidebag 
38endif
39
40
41#bag for meat, gems, regs
42if not varexist regbag
43    @setvar regbag 
44endif
45
46    
47clearsysmsg 
48clearignore
49
50# Search list for hide
51createlist hidesss
52clearlist hidesss
53
54#adds all raw leather items to hidesss list to look for
55@pushlist 'hidesss' 'cut up leather' 
56
57#looks for each item in list
58foreach x in hidesss 
59  while findtype x lootbag as found 
60      #looks for list items in lootbag and moves them to hidebag     
61      lift found 9999
62      wait 100
63      # -1 -1 0 will drop the items in bag onto current stack locations
64      drop hidebag -1 -1 0
65  endwhile
66endfor
67
68#looks for each item in list
69foreach x in hidesss 
70  while findtype x backpack as found 
71      #looks for list items in backpack and moves them to hidebag     
72      lift found 9999
73      wait 100
74      drop hidebag -1 -1 0
75    wait 200
76  endwhile
77endfor
78
79#same as above but different list and lift to different bag
80createlist regTypes 
81clearlist regTypes
82
83@pushlist 'regTypes' 'Blood Moss'
84@pushlist 'regTypes' 'Black Pearl%s%'
85@pushlist 'regTypes' 'Ginseng'
86@pushlist 'regTypes' 'Garlic'
87@pushlist 'regTypes' 'Sulfurous Ash'
88@pushlist 'regTypes' "Spider's Silk" 
89@pushlist 'regTypes' 'Nightshade'
90@pushlist 'regTypes' 'Mandrake Root%s%' 
91@pushlist 'regTypes' 'cut%s% of raw ribs'
92@pushlist 'regTypes' 'slab%s% of bacon'
93@pushlist 'regTypes' 'raw leg%s% of lamb'
94@pushlist 'regTypes' 'ham%s%'
95@pushlist 'regTypes' 'sausage%s%'
96@pushlist 'regTypes' 'sliced ham'
97@pushlist 'regTypes' 'raw chicken leg%s%'
98@pushlist 'regTypes' 'star sapphire%s%'
99@pushlist 'regTypes' 'diamond%s%'
100@pushlist 'regTypes' 'citrine%s%'
101@pushlist 'regTypes' 'sapphire%s%'
102@pushlist 'regTypes' 'piece%s% of amber'
103@pushlist 'regTypes' 'emerald%s%'
104@pushlist 'regTypes' 'amethyst%s%'
105@pushlist 'regTypes' 'rub%ies/y%'
106@pushlist 'regTypes' 'iron ingot%s'
107@pushlist 'regTypes' 'board%s'
108
109foreach x in regTypes
110  while findtype x lootbag as found
111      lift found 9999
112      wait 100
113      drop regbag -1 -1 0
114    wait 200
115  endwhile
116endfor
117
118foreach x in regTypes 
119  while findtype x backpack as found
120      lift found 9999
121      wait 100
122  drop regbag -1 -1 0
123    wait 200
124  endwhile
125endfor
126
127overhead 'Drop Off Complete!'