Originally Posted by
haruhigumi
Is there a command to lock a piece? For example if the buff Camouflage is up, would I put something in job_post_precast to either set the body the same as engaged/idle and it won't change the body at all during precast (and since it's same body as midcast it shouldn't be in/out either then). The logic is Camo drops if the body piece is removed giving it the extra duration.
Or would just set something like eventArgs.useMidcastGear in precast and just forgo a snapshot precast while under camo.
they are many ways to do it... could you when Camo is up use others sets too
this is the one disabling the body piece
Code:
function buff_change(status,gain_or_loss)
if status == "Camouflage" then
if gain_or_loss == "gain" then
equip(body="Orion jerkin")
send_command('@wait .5;gs disable body')
else
enable('body')
end
end
end
if equip(body="Orion jerkin") doesnt work, 'coz havent tried it, use make a set with the body and use equip(set.name).
Edit: actually on precast of camo you should equip the body so dont really need to equip it on buff gain..
so would be
Code:
function buff_change(status,gain_or_loss)
if status == "Camouflage" then
if gain_or_loss == "gain" then
send_command('@wait .5;gs disable body') -- or just disable('body') just not sure if this can affect precast, and avoid you equipping the body by disabling it, thats why the 0.5 delay
else
enable('body')
end
end
end