Back to "corpse" tags

Lifty Loot (L) open own corpses and auto loot your loot by Jaseowns

1# Open own corpse and auto loot your loot by Jaseowns
2# UO Outlands
3####
4##  Requirements:
5##  Use control shift o organizer to setup your gear.
6##  https://outlands.uorazorscripts.com/script/11fd0082-1e79-4aa8-8015-b62fac929481
7#######
8##  -02/18/2023- 48 hour stream, we the best.
9##  -01/16/2024- We updated on the 12th day of streaming in a row!
10####
11@setvar! globalTimeout 650
12@setvar! automaticallyActivateAspect 1
13
14@clearignore 
15while findtype "corpse|bones" ground -1 -1 2 as jorpse
16    getlabel jorpse desc
17    if name in desc
18        overhead "This is our corpse"
19        dclick jorpse
20        wait globalTimeout
21    endif
22    @ignore jorpse
23endwhile
24@clearignore 
25
26if not varexist jootbag
27    overhead "I dunno your loot bag - use control shift o" 34
28    stop
29endif
30
31if not find jootbag backpack
32    hotkey "Set Grab Item HotBag"
33    wft 500
34    target backpack
35    overhead "Not in our bag bro jase" 34
36    hotkey "Grab Item"
37    wft 500
38    target jootbag
39    wait globalTimeout
40    if not find jootbag backpack
41        dclick jootbag
42        while findtype "gold coin" jootbag as item
43            hotkey "Grab Item"
44            wft 500
45            target item
46            wait globalTimeout
47        endwhile
48        hotkey "Grab Item"
49        wft 500
50        target jootbag
51    endif 
52endif
53
54if jase_righthand != 0 and not find jase_righthand self
55    // handle crooky 
56    dclick jase_righthand
57    wait globalTimeout
58endif
59
60if jase_lefthand != 0 and not find jase_lefthand self
61    // handle crooky 
62    if not targetexists 
63        hotkey "Grab Item"
64        wft 500
65    endif
66    target jase_lefthand
67    if not targetexists
68        wait globalTimeout
69    endif
70endif
71
72if jase_onehandedsecondary != 0 and not find jase_onehandedsecondary self
73    if not targetexists 
74        hotkey "Grab Item"
75        wft 500
76    endif
77    target jase_onehandedsecondary
78    if not targetexists
79        wait globalTimeout
80    endif
81endif
82if jase_innerlegs != 0 and not find jase_innerlegs self
83    if not targetexists 
84        hotkey "Grab Item"
85        wft 500
86    endif
87    target jase_innerlegs
88    wait globalTimeout
89endif
90if jase_outerlegs != 0 and not find jase_outerlegs self
91    if not targetexists 
92        hotkey "Grab Item"
93        wft 500
94    endif
95    target jase_outerlegs
96    if not targetexists
97        wait globalTimeout
98    endif
99endif
100if jase_outertorso != 0 and not find jase_outertorso self
101    if not targetexists 
102        hotkey "Grab Item"
103        wft 500
104    endif
105    target jase_outertorso
106    if not targetexists
107        wait globalTimeout
108    endif
109endif
110if jase_cloak != 0 and not find jase_cloak self
111    if not targetexists 
112        hotkey "Grab Item"
113        wft 500
114    endif
115    target jase_cloak
116    if not targetexists
117        wait globalTimeout
118    endif
119endif
120if jase_arms != 0 and not find jase_arms self
121    if not targetexists 
122        hotkey "Grab Item"
123        wft 500
124    endif
125    target jase_arms
126    if not targetexists
127        wait globalTimeout
128    endif
129endif
130if jase_earrings != 0 and not find jase_earrings self
131    if not targetexists 
132        hotkey "Grab Item"
133        wft 500
134    endif
135    target jase_earrings
136    if not targetexists
137        wait globalTimeout
138    endif
139endif
140if jase_middletorso != 0 and not find jase_middletorso self
141    if not targetexists 
142        hotkey "Grab Item"
143        wft 500
144    endif
145    target jase_middletorso
146    if not targetexists
147        wait globalTimeout
148    endif
149endif
150if jase_face != 0 and not find jase_face self
151    if not targetexists 
152        hotkey "Grab Item"
153        wft 500
154    endif
155    target jase_face
156    if not targetexists
157        wait globalTimeout
158    endif
159endif
160if jase_bracelet != 0 and not find jase_bracelet self
161    if not targetexists 
162        hotkey "Grab Item"
163        wft 500
164    endif
165    target jase_bracelet
166    if not targetexists
167        wait globalTimeout
168    endif
169endif
170if jase_innertorso != 0 and not find jase_innertorso self
171    if not targetexists 
172        hotkey "Grab Item"
173        wft 500
174    endif
175    target jase_innertorso
176    if not targetexists
177        wait globalTimeout
178    endif
179endif
180if jase_waist != 0 and not find jase_waist self
181    if not targetexists 
182        hotkey "Grab Item"
183        wft 500
184    endif
185    target jase_waist
186    if not targetexists
187        wait globalTimeout
188    endif
189endif
190if jase_neck != 0 and not find jase_neck self
191    if not targetexists 
192        hotkey "Grab Item"
193        wft 500
194    endif
195    target jase_neck
196    if not targetexists
197        wait globalTimeout
198    endif
199endif
200if jase_talisman != 0 and not find jase_talisman self
201    if not targetexists 
202        hotkey "Grab Item"
203        wft 500
204    endif
205    target jase_talisman
206    if not targetexists
207        wait globalTimeout
208    endif
209endif
210if jase_ring != 0 and not find jase_ring self
211    if not targetexists 
212        hotkey "Grab Item"
213        wft 500
214    endif
215    target jase_ring
216    if not targetexists
217        wait globalTimeout
218    endif
219endif
220if jase_gloves != 0 and not find jase_gloves self
221    if not targetexists 
222        hotkey "Grab Item"
223        wft 500
224    endif
225    target jase_gloves
226    if not targetexists
227        wait globalTimeout
228    endif
229endif
230if jase_quiver != 0 and not find jase_quiver self
231    if not targetexists 
232        hotkey "Grab Item"
233        wft 500
234    endif
235    target jase_quiver
236    if not targetexists
237        wait globalTimeout
238    endif
239endif
240if jase_head != 0 and not find jase_head self
241    if not targetexists 
242        hotkey "Grab Item"
243        wft 500
244    endif
245    target jase_head
246    if not targetexists
247        wait globalTimeout
248    endif
249endif
250if jase_outerbody != 0 and not find jase_outerbody self
251    if not targetexists 
252        hotkey "Grab Item"
253        wft 500
254    endif
255    target jase_outerbody
256    if not targetexists
257        wait globalTimeout
258    endif
259endif
260if jase_shirt != 0 and not find jase_shirt self
261    if not targetexists 
262        hotkey "Grab Item"
263        wft 500
264    endif
265    target jase_shirt
266    if not targetexists
267        wait globalTimeout
268    endif
269endif
270if jase_pants != 0 and not find jase_pants self
271    if not targetexists 
272        hotkey "Grab Item"
273        wft 500
274    endif
275    target jase_pants
276    if not targetexists
277        wait globalTimeout
278    endif
279endif
280if jase_shoes != 0 and not find jase_shoes self
281    if not targetexists 
282        hotkey "Grab Item"
283        wft 500
284    endif
285    target jase_shoes
286    if not targetexists
287        wait globalTimeout
288    endif
289endif
290
291
292if find jootbag backpack
293    overhead "We got our loot bag!" 88
294    dclick jootbag
295    wait globalTimeout
296    @clearignore 
297    while findtype "pouch" backpack 0 as item
298        getlabel item desc
299        if "(0 items" in desc
300            // do nothing
301        else
302            dclick item
303            wait 200
304        endif
305        @ignore item
306    endwhile
307    clearignore
308endif
309
310if not findlayer self righthand and jase_righthand != 0
311    // handle crooky 
312    dclick jase_righthand
313    wait globalTimeout
314endif
315if not findlayer self lefthand and jase_lefthand != 0
316    // handle crooky 
317    dclick jase_lefthand
318    wait globalTimeout
319endif
320if not findlayer self shoes and jase_shoes != 0
321    dclick jase_shoes
322    wait globalTimeout
323endif
324if not findlayer self pants and jase_pants != 0
325    dclick jase_pants
326    wait globalTimeout
327endif
328if not findlayer self shirt and jase_shirt != 0
329    dclick jase_shirt
330    wait globalTimeout
331endif
332if not findlayer self head and jase_head != 0
333    dclick jase_head
334    wait globalTimeout
335endif
336if not findlayer self gloves and jase_gloves != 0
337    dclick jase_gloves
338    wait globalTimeout
339endif
340if not findlayer self ring and jase_ring != 0
341    dclick jase_ring
342    wait globalTimeout
343endif
344#if not findlayer self talisman and jase_talisman != 0
345#    dclick jase_talisman
346#    wait globalTimeout
347#endif
348if not findlayer self neck and jase_neck != 0
349    dclick jase_neck
350    wait globalTimeout
351endif
352if not findlayer self waist and jase_waist != 0
353    dclick jase_waist
354    wait globalTimeout
355endif
356if not findlayer self innertorso and jase_innertorso != 0
357    dclick jase_innertorso
358    wait globalTimeout
359endif
360if not findlayer self bracelet and jase_bracelet != 0
361    dclick jase_bracelet
362    wait globalTimeout
363endif
364if not findlayer self face and jase_face != 0
365    dclick jase_face
366    wait globalTimeout
367endif
368if not findlayer self middletorso and jase_middletorso != 0
369    dclick jase_middletorso
370    wait globalTimeout
371endif
372if not findlayer self earrings and jase_earrings != 0
373    dclick jase_earrings
374    wait globalTimeout
375endif
376if not findlayer self arms and jase_arms != 0
377    dclick jase_arms
378    wait globalTimeout
379endif
380if not findlayer self cloak and jase_cloak != 0
381    dclick jase_cloak
382    wait globalTimeout
383endif
384if not findlayer self outertorso and jase_outertorso != 0
385    dclick jase_outertorso
386    wait globalTimeout
387endif
388if not findlayer self outerlegs and jase_outerlegs != 0
389    dclick jase_outerlegs
390    wait globalTimeout
391endif
392if not findlayer self innerlegs and jase_innerlegs != 0
393    dclick jase_innerlegs
394    wait globalTimeout
395endif
396if not findlayer self onehandedsecondary and jase_onehandedsecondary != 0
397    dclick jase_onehandedsecondary
398    wait globalTimeout
399endif
400if not findlayer self quiver and jase_quiver != 0
401    dclick jase_quiver
402    wait globalTimeout
403endif
404if not findlayer self outerbody and jase_outerbody != 0
405    overhead "hey satche"
406    lift jase_outerbody
407    drop self outerbody
408    wait globalTimeout
409endif
410
411
412if not findlayer self righthand and jase_righthand != 0
413    overhead "Missing righthand" 34
414endif
415if not findlayer self lefthand and jase_lefthand != 0
416    overhead "Missing lefthand" 34
417endif
418if not findlayer self shoes and jase_shoes != 0
419    overhead "Missing shoes" 34
420endif
421if not findlayer self pants and jase_pants != 0
422    overhead "Missing pants" 34
423endif
424if not findlayer self shirt and jase_shirt != 0
425    overhead "Missing shirt" 34
426endif
427if not findlayer self head and jase_head != 0
428    overhead "Missing head" 34
429endif
430if not findlayer self gloves and jase_gloves != 0
431    overhead "Missing gloves" 34
432endif
433if not findlayer self ring and jase_ring != 0
434    overhead "Missing ring" 34
435endif
436if not findlayer self talisman and jase_talisman != 0
437    overhead "Missing talisman" 34
438endif
439if not findlayer self neck and jase_neck != 0
440    overhead "Missing neck" 34
441endif
442if not findlayer self waist and jase_waist != 0
443    overhead "Missing waist" 34
444endif
445if not findlayer self innertorso and jase_innertorso != 0
446    overhead "Missing innertorso" 34
447endif
448if not findlayer self bracelet and jase_bracelet != 0
449    overhead "Missing bracelet" 34
450endif
451if not findlayer self face and jase_face != 0
452    overhead "Missing face" 34
453endif
454if not findlayer self middletorso and jase_middletorso != 0
455    overhead "Missing middletorso" 34
456endif
457if not findlayer self earrings and jase_earrings != 0
458    overhead "Missing earrings" 34
459endif
460if not findlayer self arms and jase_arms != 0
461    overhead "Missing arms" 34
462endif
463if not findlayer self cloak and jase_cloak != 0
464    overhead "Missing cloak" 34
465endif
466if not findlayer self outertorso and jase_outertorso != 0
467    overhead "Missing outertorso" 34
468endif
469if not findlayer self outerlegs and jase_outerlegs != 0
470    overhead "Missing outerlegs" 34
471endif
472if not findlayer self innerlegs and jase_innerlegs != 0
473    overhead "Missing innerlegs" 34
474endif
475if not findlayer self onehandedsecondary and jase_onehandedsecondary != 0
476    overhead "Missing onehandedsecondary" 34
477endif
478if not findlayer self quiver and jase_quiver != 0
479    overhead "Missing quiver" 34
480endif
481if not findlayer self outerbody and jase_outerbody != 0
482    overhead "Missing outerbody" 34
483endif
484
485
486if automaticallyActivateAspect = 1
487    
488    while not gumpexists 2424293173
489        say '[aspect'    
490        waitforgump 2424293173 500
491    endwhile
492
493    if gumpexists 2424293173
494        // weapon
495        gumpresponse 8 2424293173
496        waitforgump 2424293173 5000
497        gumpresponse 8 2424293173
498        waitforgump 2424293173 5000
499        // mage book
500        gumpresponse 13 2424293173
501        waitforgump 2424293173 5000
502        gumpresponse 13 2424293173
503        waitforgump 2424293173 5000
504        // armor
505        gumpresponse 17 2424293173
506        waitforgump 2424293173 5000
507        gumpresponse 17 2424293173
508        waitforgump 2424293173 5000
509        gumpclose 2424293173
510    endif
511
512endif