サブ垢の羅盤 Gearswap・send使用
メイン垢を操作していると、ついつい羅盤が割れていたりしますよね
ただの強化魔法などなら、アイコンやRecastを見て対応できるのですが、羅盤のHPは場所が悪い・・・どうしても見にくい・・・
サブ垢の風水士のGearswapにこちらを追加しています
function pet_change(pet,gain)
if not gain then
send_command(windower.to_shift_jis('@input //send @all /echo 羅盤無し'))
end
end
これで羅盤がなくなった時にすべてのアカウントにechoで「羅盤無し」をログに流すので把握しやすいです。
ログをロックできるので、/tellでもよさそうですね。
また、メイン垢がアタッカーの場合は、メイン垢のGearswapに
auto = false
function status_change(new, old)
if new == 'Idle' then
equip(sets.idle)
if auto then send_command(windower.to_shift_jis('@input //send @geo /ja フルサークル <me>')) end
elseif new == 'Engaged' then
equip(sets.engage)
if auto then send_command(windower.to_shift_jis('@input //send @geo /ma ジオフレイル <bt>')) end
end
end
function self_command(command)
if command == 'auto' then
if auto == false then
send_command(windower.to_shift_jis('@input /echo Auto ON'))
auto = true
else
send_command(windower.to_shift_jis('@input /echo Auto OFF'))
auto = false
end
end
end
これで、ジオフレイルをAutoで置き、倒すと消すを実装しています。
ただし、抜刀してから釣ると<bt>のターゲットが見つからないため、釣った後の抜刀で動作します。
また、セルフコマンドで 変数autoをboolean型で切り替えていますので、動かす場合は //gs c auto または マクロ内 /con gs c auto にて