supapogz2
25th August 2005, 17:15
In your config.txt type >>> Kill_Steal_On_Player
if (AI::action eq "attack" && timeOut(AI::args->{ai_attack_giveup}) && !$config{attackNoGiveup}) {
my $ID = AI::args->{ID};
$monsters{$ID}{attack_failed} = time if ($monsters{$ID});
AI::dequeue;
message "I cant reach you, i'll leave you alone hehehhh!\n", "ai_attack";
useTeleport(1) if ($config{'teleportAuto_dropTarget'});
--------------------------------------------------------------------------------------------------
} elsif (!$cleanMonster) {
# Drop target if it's already attacked by someone else
message "Lets Rock! eheheehe!!! ahihihihihi\n", "ai_attack";
sendMove(\$remote_socket, $realMyPos->{x}, $realMyPos->{y});
AI::dequeue;
--------------------------------------------------------------------------------------------------
# Check for kill steal while moving
if (AI::is("move", "route") && AI::args->{attackID} && AI::inQueue("attack")) {
my $ID = AI::args->{attackID};
if ($monsters{$ID} && !checkMonsterCleanness($ID)) {
message "ooppppss! i got you \n";
stopAttack();
if (AI::action eq "attack" && timeOut(AI::args->{ai_attack_giveup}) && !$config{attackNoGiveup}) {
my $ID = AI::args->{ID};
$monsters{$ID}{attack_failed} = time if ($monsters{$ID});
AI::dequeue;
message "I cant reach you, i'll leave you alone hehehhh!\n", "ai_attack";
useTeleport(1) if ($config{'teleportAuto_dropTarget'});
--------------------------------------------------------------------------------------------------
} elsif (!$cleanMonster) {
# Drop target if it's already attacked by someone else
message "Lets Rock! eheheehe!!! ahihihihihi\n", "ai_attack";
sendMove(\$remote_socket, $realMyPos->{x}, $realMyPos->{y});
AI::dequeue;
--------------------------------------------------------------------------------------------------
# Check for kill steal while moving
if (AI::is("move", "route") && AI::args->{attackID} && AI::inQueue("attack")) {
my $ID = AI::args->{attackID};
if ($monsters{$ID} && !checkMonsterCleanness($ID)) {
message "ooppppss! i got you \n";
stopAttack();