Saturday, 8 June 2013

macro untuk mengecek hiding

macro ini berguna untuk mengecek orang yang hide di dalam 1 layar dan bisa memberitahu posisi orang tersebut berdasarkan koordinat. cara pakainya cukup ketik !hide atau hide dan bot akan segera mencari player yg hiding di layar itu



automacro hide{
pubm /^!?hide$/
exclusive 1
call {
$result = subhide(0)
do c $result
}
}

sub subhide {
use strict;
use Misc;
my $result = "tidak ada yang hiding";
my $say;
my $nama;
my $pljob;
my $pllv;
my $plx;
my $ply;
for my $player (@{$playersList->getItems()}) {
my $plstatus = $player->statusesString;
next unless $player;
if ( $plstatus =~ /(Hiding|Cloaking|Chase Walk)/i) {
$nama = $player->name;
$pljob = $player->job;
$pllv = $player->{lv};
$plx = $player->{pos_to}{x};
$ply = $player->{pos_to}{y};
$say = "$nama job: $pljob lvl: $pllv pos: ($plx , $ply)\n";
sendMessage($messageSender, "c", "$say");
$result = "complete";
}
}
return $result;
}

No comments:

Post a Comment