-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPositron_DRG.lua
More file actions
91 lines (78 loc) · 2.07 KB
/
Copy pathPositron_DRG.lua
File metadata and controls
91 lines (78 loc) · 2.07 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
function get_sets()
sets = {}
sets.precast = {}
sets.midcast = {}
sets.aftercast = {}
include("common/job_change.lua")
include("all/precast-utsusemi.lua") -- sets.precast.utsusemi
include("drg/fastcast.lua") -- sets.fastcast
include("drg/idle.lua") -- sets.idle
include("drg/tp.lua") -- sets.tp
include("drg/ws.lua") -- sets.ws
include("drg/ws-singlehit.lua") -- sets.ws.singlehit
include("drg/precast-angon.lua") -- sets.precast.angon
include("drg/precast-callwyvern.lua") -- sets.precast.callwyvern
include("drg/precast-jump.lua") -- sets.precast['Jump'], sets.precast['High Jump'], sets.precast['Spirit Jump'], sets.precast['Soul Jump']
include("drg/precast-spiritlink.lua") -- sets.precast.spiritlink
_SINGLE_HIT_WS = T {
"Raiden Thrust",
"Sonic Thrust",
"Camlann's Torment",
"Savage Blade"
}
send_command(macrobook_cmd..porter_cmd..lockstyle_cmd)
end
function sub_job_change(new, old)
send_command(
"wait 10; \
input /lockstyleset 34; \
gs equip sets.idle; \
du blinking self all off;"
)
end
function precast(spell, position)
-- WS Engaged Check
if spell.type == "WeaponSkill" and player.status ~= "Engaged" then
cancel_spell()
return
end
-- WS Distance Check
_RANGE_MULTIPLIER = 1.642276421172564
if spell.type == "WeaponSkill" and
spell.target.distance >
(spell.range * _RANGE_MULTIPLIER + spell.target.model_size)
then
add_to_chat(8, spell.name .. " aborted due to target out of range.")
cancel_spell()
return
end
if spell.type == "WeaponSkill" then
equip(sets.ws)
if _SINGLE_HIT_WS:contains(spell.name) then
equip(sets.ws.singlehit)
end
elseif spell.type == "JobAbility" then
equip(sets.precast[spell.name])
else
equip(sets.fastcast)
if spell.english:contains("Utsusemi") then
equip(sets.precast.utsusemi)
end
end
end
function midcast(spell)
end
function aftercast(spell)
if player.status == "Idle" then
equip(sets.idle)
elseif player.status == "Engaged" then
equip(sets.tp)
end
end
function status_change(new, old)
if new == "Engaged" then
equip(sets.tp)
elseif new == "Idle" then
equip(sets.idle)
end
end