}
automacro emoguild {
console /\[(距離|dist)=(.*)\] (.*) \((\d+)\): \*(剪刀)\*$/
call {
if ($.lastMatch2 < 9) goto emoguild
stop
:emoguild
$n = $.lastMatch4
do eval foreach my $_player (@{$::playersList->getItems()}) { next if $_player->{name} eq ""; next if $_player->{actorType} ne "Player"; if ($_player->{'binID'} eq "$n") {$::Macro::Data::varStack{name} = $_player->{'name'}; $::Macro::Data::varStack{job} = $_player->job; $::Macro::Data::varStack{lvl} = $_player->{'lv'}; $::Macro::Data::varStack{sex} = $::sex_lut{$_player->{'sex'}}; $::Macro::Data::varStack{pos} = "$_player->{pos_to}{x}" . " $_player->{pos_to}{y}"; $::Macro::Data::varStack{dist} = sprintf("%.1f", distance($::char->{pos_to}, $_player->{pos_to})); $::Macro::Data::varStack{guild} = $_player->{guild} ? $_player->{guild}{name} : ''; $::Macro::Data::varStack{id} = $_player->{'binID'}; $::Macro::Data::varStack{status} = join (", ", keys %{$_player->{statuses}});}}
if ("$guild" == "公會") goto ok
stop
:ok
if ($.lastMatch5 == "剪刀") goto wave
:wave
# 施展點穴-活
do sp SR_GENTLETOUCH_REVITALIZE $.lastMatch4 10
stop
}
}
automacro emoguild {
console /\[(距離|dist)=(.*)\] (.*) \((\d+)\): \*(剪刀)\*$/
call {
if ($.lastMatch2 < 9) goto emoguild
stop
:emoguild
$n = $.lastMatch4
do eval foreach my $_player (@{$::playersList->getItems()}) { next if $_player->{name} eq ""; next if $_player->{actorType} ne "Player"; if ($_player->{'binID'} eq "$n") {$::Macro::Data::varStack{name} = $_player->{'name'}; $::Macro::Data::varStack{job} = $_player->job; $::Macro::Data::varStack{lvl} = $_player->{'lv'}; $::Macro::Data::varStack{sex} = $::sex_lut{$_player->{'sex'}}; $::Macro::Data::varStack{pos} = "$_player->{pos_to}{x}" . " $_player->{pos_to}{y}"; $::Macro::Data::varStack{dist} = sprintf("%.1f", distance($::char->{pos_to}, $_player->{pos_to})); $::Macro::Data::varStack{guild} = $_player->{guild} ? $_player->{guild}{name} : ''; $::Macro::Data::varStack{id} = $_player->{'binID'}; $::Macro::Data::varStack{status} = join (", ", keys %{$_player->{statuses}});}}
if ("$guild" == "公會") goto ok
stop
:ok
if ($.lastMatch5 == "剪刀") goto wave
:wave
# 施展點穴-活
do sp SR_GENTLETOUCH_REVITALIZE $.lastMatch4 10
stop
}
}
全站熱搜
留言列表