Created: 10/15/2022, 03:53:42 AM Updated: 04/18/2023, 03:57:54 PM View Change History
1
2
3
4
5@setvar! cdTrap 420000
6
7if not timerexists myTrapTimer1
8 createtimer myTrapTimer1
9 settimer myTrapTimer1 cdTrap
10endif
11if not timerexists myTrapTimer2
12 createtimer myTrapTimer2
13 settimer myTrapTimer2 cdTrap
14endif
15if not timerexists myTrapTimer3
16 createtimer myTrapTimer3
17 settimer myTrapTimer3 cdTrap
18endif
19if not timerexists myTrapTimer4
20 createtimer myTrapTimer4
21 settimer myTrapTimer4 cdTrap
22endif
23if not timerexists myTrapTimer5
24 createtimer myTrapTimer5
25 settimer myTrapTimer5 cdTrap
26endif
27
28if not findtype "Purple Potion" backpack
29 overhead "Thou hast a distinct lack of boom juice" 34
30 stop
31endif
32
33clearsysmsg
34
35if findtype "barrel lid" ground -1 -1 2
36 overhead "Already on a trap!"
37 stop
38endif
39
40if timer myTrapTimer1 >= cdTrap
41 if findtype 6263|6264 backpack as jire
42 while not gumpexists 3489968915
43 dclick jire
44 wft 500
45 target self
46 endwhile
47 if gumpexists 3489968915
48 overhead "Using trap 1 of 5" 88
49 gumpresponse 20 3489968915
50 wait 200
51 if insysmsg "You place a trap."
52 overhead "Sucess" 66
53 settimer myTrapTimer1 0
54 endif
55 endif
56 endif
57elseif timer myTrapTimer2 >= cdTrap
58 if findtype 6263|6264 backpack as jire
59 while not gumpexists 3489968915
60 dclick jire
61 wft 500
62 target self
63 endwhile
64 if gumpexists 3489968915
65 overhead "Using trap 2 of 5" 88
66 gumpresponse 20 3489968915
67 wait 200
68 if insysmsg "You place a trap."
69 overhead "Sucess" 66
70 settimer myTrapTimer2 0
71 endif
72 endif
73 endif
74elseif timer myTrapTimer3 >= cdTrap
75 if findtype 6263|6264 backpack as jire
76 while not gumpexists 3489968915
77 dclick jire
78 wft 500
79 target self
80 endwhile
81 if gumpexists 3489968915
82 overhead "Using trap 3 of 5" 88
83 gumpresponse 20 3489968915
84 wait 200
85 if insysmsg "You place a trap."
86 overhead "Sucess" 66
87 settimer myTrapTimer3 0
88 endif
89 endif
90 endif
91elseif timer myTrapTimer4 >= cdTrap
92 if findtype 6263|6264 backpack as jire
93 while not gumpexists 3489968915
94 dclick jire
95 wft 500
96 target self
97 endwhile
98 if gumpexists 3489968915
99 overhead "Using trap 4 of 5" 88
100 gumpresponse 20 3489968915
101 wait 200
102 if insysmsg "You place a trap."
103 overhead "Sucess" 66
104 settimer myTrapTimer4 0
105 endif
106 endif
107 endif
108elseif timer myTrapTimer5 >= cdTrap
109 if findtype 6263|6264 backpack as jire
110 while not gumpexists 3489968915
111 dclick jire
112 wft 500
113 target self
114 endwhile
115 if gumpexists 3489968915
116 overhead "Using trap 5 of 5" 88
117 gumpresponse 20 3489968915
118 wait 200
119 if insysmsg "You place a trap."
120 overhead "Sucess" 66
121 settimer myTrapTimer5 0
122 endif
123 endif
124 endif
125elseif findtype 6263|6264 backpack as jire
126 while not gumpexists 3489968915
127 dclick jire
128 wft 500
129 target self
130 endwhile
131 if gumpexists 3489968915
132 if ingump "5/5" 3489968915
133
134 overhead "NO MORE BOOM!" 34
135 else
136 settimer myTrapTimer1 cdTrap
137 gumpresponse 8 3489968915
138 endif
139 endif
140else
141 overhead "NO MORE BOOM WIRE!" 34
142endif
143
144
145if findtype "barrel lid" ground -1 -1 8 and findtype "music box" backpack as item
146 dclick item
147 wft 500
148 target self
149endif