Created: 08/03/2022, 05:33:38 AM Updated: 08/15/2022, 07:34:58 PM View Change History
1
2
3if not varexist inny
4
5 @setvar! innySelectionRequired 0
6
7 removelist innnies
8 createlist innnies
9
10 if counttype "bamboo flute" backpack as innyCount
11 pushlist innnies "bamboo flute"
12 if innyCount > 1
13 @setvar! innySelectionRequired 1
14 endif
15 endif
16
17 if counttype "tambourine" backpack as innyCount
18 pushlist innnies "tambourine"
19 if innyCount > 1
20 @setvar! innySelectionRequired 1
21 endif
22 endif
23
24 if counttype "drum" backpack as innyCount
25 pushlist innnies "drum"
26 if innyCount > 1
27 @setvar! innySelectionRequired 1
28 endif
29 endif
30
31 if counttype "lute" backpack as innyCount
32 pushlist innnies "lute"
33 if innyCount > 1
34 @setvar! innySelectionRequired 1
35 endif
36 endif
37
38 if counttype "flute" backpack as innyCount
39 pushlist innnies "flute"
40 if innyCount > 1
41 @setvar! innySelectionRequired 1
42 endif
43 endif
44
45 if counttype "lap harp" backpack as innyCount
46 pushlist innnies "lap harp"
47 if innyCount > 1
48 @setvar! innySelectionRequired 1
49 endif
50 endif
51
52 if list innnies <= 0
53 overhead "No instrunements found!" 34
54 stop
55 endif
56
57 if innySelectionRequired = 1
58 overhead "Please select your instrunment"
59 setvar inny
60 elseif list innnies = 1
61 foreach goodies in innnies
62 if findtype goodies backpack as setInny
63 setvar inny setInny
64 endif
65 endfor
66 elseif list innnies > 1
67 overhead "You got a bunch bro" 34
68 overhead "Please select your instrunment"
69 setvar inny
70 endif
71
72 overhead "innySelectionRequired: {{innySelectionRequired}}" 88
73 foreach goodies in innnies
74 overhead goodies
75 endfor
76endif
77
78if find inny backpack
79 getlabel inny desc
80 overhead desc
81
82 lift inny
83 droprelloc 0 0
84 wait 400
85
86 overhead "Do the inventory stuff"
87
88 if findtype "ornate elven chest" ground -1 -1 2 as recycler
89 dclick recycler
90 waitforgump 4045111101 1000
91 if gumpexists 4045111101
92 gumpresponse 3 4045111101
93 wft 500
94 target self
95 endif
96 endif
97
98
99 wait 800
100 lift inny
101 drop backpack
102
103else
104 unsetvar inny
105 replay
106endif