forked from brycole/gemstone
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdisarm.rb
More file actions
36 lines (27 loc) · 760 Bytes
/
disarm.rb
File metadata and controls
36 lines (27 loc) · 760 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
## Disarm Script
## v.01 by Kalros
$disarmed = false
weapon_name = 'paingrip'
scripts = ['ubermonk', 'bigshot', 'sbounty', 'transcend', 'fbigshot', 'sloot', 'go2']
def toggle_scripts(pause, script_list)
script_list.each {|s| eval("#{pause}_script '#{s}'") if running? "#{s}"}
end
Thread.new {
while true
GameObj.loot.find {|i| i.name == "ora-spiked black paingrip"} ? $disarmed = true : $disarmed = false
sleep 0.5
end
}
while true
sleep 0.5
if $disarmed
echo "You have been disarmed!"
print "\a"
toggle_scripts('pause', scripts)
waitrt?
fput "get #{weapon_name}"
wait_until {!$disarmed}
echo "You are no longer disarmed!"
toggle_scripts('unpause', scripts)
end
end