-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsos_hunter.lic
More file actions
63 lines (54 loc) · 1.46 KB
/
sos_hunter.lic
File metadata and controls
63 lines (54 loc) · 1.46 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#SoS
target = GameObj.npcs.find{ |npc| npc.name =~ /sentinel|lurk|monstrosity|shaper/ }
attack_stance = "offensive"
defense_stance = "defensive"
current_knockdown_routine = nil
list_of_targets_a = /shaper/
list_of_target_b = /sentinel|lurk|monstrosity/
routine_a = [917]
routine_b = [410]
if target.name =~ list_of_targets_a
current_knockdown_routine = routine_a
current_knockdown_routine = routine_b
end
haste = proc{
Spell[506].cast if Spell[506].affordable? unless Spell[506].active?
}
knockdown = proc{
current_knockdown_routine.each { |i|
waitrt?
waitcastrt?
Spell[i].cast
}
}
stand = proc {
if not standing?
while not checkstance 'offensive'
fput 'stance offensive'
sleep 0.10
end
fput "stand" until standing?
end
}
until target.status =~ /dead|gone/
stand.call
haste.call
waitrt?
waitcastrt?
fput "stance #{attack_stance}" if checkstance != attack_stance
if target.status =~ /prone|sit|lay|kneel|stun|sleep|rooted|frozen/
echo target.status
result = dothistimeout "attack ##{target.id}", 1, /A clean miss|and hit|the attack/
if result =~ /A clean miss/
knockdown.call
elsif result =~ /and hit|the attack/
nil
end
else
knockdown.call
end
end
waitrt?
fput "stance #{defense_stance}" if checkstance != defense_stance
start_script("sloot") unless running?("sloot")
wait_while { running? 'sloot' }