forked from AlanWarren/gearswap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
User-Globals.lua
73 lines (64 loc) · 2.17 KB
/
User-Globals.lua
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
-- Rings = S{'Capacity Ring', 'Warp Ring', 'Trizek Ring', 'Expertise Ring', 'Emperor Band', 'Caliber Ring', 'Echad Ring', 'Facility Ring'}
sets.reive = {neck="Adoulin's Refuge +1"}
-- sets.crafting = { body="Alchemist's Apron", sub="Brewer's Scutum", head="Midras's Helm +1", main="Caduceus", neck="Alchemist's Torque", ring1="Craftmaster's ring", ring2="Orvail Ring" }
equip_lock = S{
"Warp Ring",
"Capacity Ring",
"Vocation Ring",
"Trizek Ring",
"Endorsement Ring"
}
-- function user_handle_equipping_gear(status, eventArgs)
-- if equip_lock:contains(player.equipment.right_ring) then
-- disable('ring2')
-- else
-- enable('ring2')
-- end
-- end
function user_post_precast(spell, action, spellMap, eventArgs)
-- reive mark
if spell.type:lower() == 'weaponskill' then
if buffactive['Reive Mark'] then
equip(sets.reive)
end
end
end
function user_post_aftercast(spell, action, spellMap, eventArgs)
if spell.type:lower() == 'weaponskill' then
send_command('wait 1; input /echo ---------------- TP <tp> ----------------')
end
end
function user_customize_melee_set(meleeSet)
if buffactive['Reive Mark'] then
meleeSet = set_combine(meleeSet, sets.reive)
end
return meleeSet
end
function user_customize_idle_set(idleSet)
if buffactive['Reive Mark'] then
idleSet = set_combine(idleSet, sets.reive)
end
return idleSet
end
-- function user_buff_change(buff, gain, eventArgs)
-- -- Sick and tired of rings being unequip when you have 10,000 buffs being gain/lost?
-- if not gain then
-- if Rings:contains(player.equipment.ring1) or Rings:contains(player.equipment.ring2) then
-- eventArgs.handled = true
-- end
-- end
-- end
function is_sc_element_today(spell)
if spell.type ~= 'WeaponSkill' then
return
end
local weaponskill_elements = S{}:
union(skillchain_elements[spell.skillchain_a]):
union(skillchain_elements[spell.skillchain_b]):
union(skillchain_elements[spell.skillchain_c])
if weaponskill_elements:contains(world.day_element) then
return true
else
return false
end
end