Ir para conteúdo
Faça parte da equipe! (2024) ×
Conheça nossa Beta Zone! Novas áreas a caminho! ×

  • Quem está por aqui   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
  • 0

Programar o bot pra não passar em certos mapas


tjxd96
 Compartilhar

Pergunta

7 respostass a esta questão

Posts Recomendados

  • 0

Existe o routeweights.txt na pasta control.

 

Lá dá para Bloquear mapas, um exemplo.

 

Ir de Morroc Até moc_fild17

 

O Bot, Passa por moc_fild12, moc_fild11 e chega no moc_fild17

 

Se você não quizer passar pelo moc_fild11 é só abrir o routeweights e adicionar isso:

# Add your map weights here. Format: <mapname> <weight>

 

moc_fild11 10000

 

Sempre deixe 10000

Link para o comentário
Compartilhar em outros sites

  • 0
Ah, isso é o bot tentando localizar o Monstro.

 

Creio que só com algum macro... Mas não tenho "Habilidade" com macros ,D

 

isso eu sei mas tipow ele para na frente do monstro, nisso ja vem outra pessoa e ataca da muita raiva.

Link para o comentário
Compartilhar em outros sites

  • 0

é, mas isso é o Bot localizando o Monstro,

 

Eu só sei um modo para tirar isso: Fazendo o bot dar Ks.

 

 

Tutorial de dar KS:

 

Bom antes de tudo gostaria de avisar que o uso deste método é por sua conta e risco...

1 - Localize a pasta src dentro da pasta do seu OK.

2 - Dentro da pasta src possui um arquivo chamado Misc.pl

3 - Abra ele usando o notepad.

4 - Encontre estas linhas :

 

sub checkMonsterCleanness {

return 1 if (!$config{attackAuto});

my $ID = $_[0];

return 1 if ($playersList->getByID($ID));

my $monster = $monstersList->getByID($ID);

# If party attacked monster, or if monster attacked/missed party

if ($monster->{dmgFromParty} > 0 || $monster->{dmgToParty} > 0 || $monster->{missedToParty} > 0) {

return 1;

}

if ($config{aggressiveAntiKS}) {

# Aggressive anti-KS mode, for people who are paranoid about not kill stealing.

#If we attacked the monster first, do not drop it... Cause WE are being ks'd

return 1 if ($monster->{dmgFromYou} || $monster->{missedFromYou});

# If others attacked the monster then always drop it, wether it attacked us or not!

return 0 if (($monster->{dmgFromPlayer} && %{$monster->{dmgFromPlayer}})

|| ($monster->{missedFromPlayer} && %{$monster->{missedFromPlayer}})

|| (($monster->{castOnByPlayer}) && %{$monster->{castOnByPlayer}})

|| (($monster->{castOnToPlayer}) && %{$monster->{castOnToPlayer}}));

}

# If monster attacked/missed you

return 1 if ($monster->{'dmgToYou'} || $monster->{'missedYou'});

# If we're in follow mode

if (defined(my $followIndex = AI::findAction("follow"))) {

my $following = AI::args($followIndex)->{following};

my $followID = AI::args($followIndex)->{ID};

if ($following) {

# And master attacked monster, or the monster attacked/missed master

if ($monster->{dmgToPlayer}{$followID} > 0

|| $monster->{missedToPlayer}{$followID} > 0

|| $monster->{dmgFromPlayer}{$followID} > 0) {

return 1;

}

}

}

if (($monster->{statuses} && scalar(keys %{$monster->{statuses}}))

|| objectInsideSpell($monster)) {

return 0;

}

# If monster hasn't been attacked by other players

if (scalar(keys %{$monster->{missedFromPlayer}}) == 0

&& scalar(keys %{$monster->{dmgFromPlayer}}) == 0

&& scalar(keys %{$monster->{castOnByPlayer}}) == 0

# and it hasn't attacked any other player

&& scalar(keys %{$monster->{missedToPlayer}}) == 0

&& scalar(keys %{$monster->{dmgToPlayer}}) == 0

&& scalar(keys %{$monster->{castOnToPlayer}}) == 0

) {

# The monster might be getting lured by another player.

# So we check whether it's walking towards any other player, but only

# if we haven't already attacked the monster.

if ($monster->{dmgFromYou} || $monster->{missedFromYou}) {

return 1;

} else {

return !objectIsMovingTowardsPlayer($monster);

}

}

# The monster didn't attack you.

# Other players attacked it, or it attacked other players.

if ($monster->{dmgFromYou} || $monster->{missedFromYou}) {

# If you have already attacked the monster before, then consider it clean

return 1;

}

# If you haven't attacked the monster yet, it's unclean.

return 0;

}

 

Cole isto no lugar :

sub checkMonsterCleanness {

return 1 if (!$config{attackAuto});

my $ID = $_[0];

return 1 if ($playersList->getByID($ID));

my $monster = $monstersList->getByID($ID);

# If party attacked monster, or if monster attacked/missed party

if ($monster->{dmgFromParty} > 0 || $monster->{dmgToParty} > 0 || $monster->{missedToParty} > 0) {

return 1;

}

if ($config{aggressiveAntiKS}) {

# Aggressive anti-KS mode, for people who are paranoid about not kill stealing.

#If we attacked the monster first, do not drop it... Cause WE are being ks'd

return 1 if ($monster->{dmgFromYou} || $monster->{missedFromYou});

# If others attacked the monster then always drop it, wether it attacked us or not!

return 1 if (($monster->{dmgFromPlayer} && %{$monster->{dmgFromPlayer}})

|| ($monster->{missedFromPlayer} && %{$monster->{missedFromPlayer}})

|| (($monster->{castOnByPlayer}) && %{$monster->{castOnByPlayer}})

|| (($monster->{castOnToPlayer}) && %{$monster->{castOnToPlayer}}));

}

# If monster attacked/missed you

return 1 if ($monster->{'dmgToYou'} || $monster->{'missedYou'});

# If we're in follow mode

if (defined(my $followIndex = AI::findAction("follow"))) {

my $following = AI::args($followIndex)->{following};

my $followID = AI::args($followIndex)->{ID};

if ($following) {

# And master attacked monster, or the monster attacked/missed master

if ($monster->{dmgToPlayer}{$followID} > 0

|| $monster->{missedToPlayer}{$followID} > 0

|| $monster->{dmgFromPlayer}{$followID} > 0) {

return 1;

}

}

}

if (($monster->{statuses} && scalar(keys %{$monster->{statuses}}))

|| objectInsideSpell($monster)) {

return 1;

}

# If monster hasn't been attacked by other players

if (scalar(keys %{$monster->{missedFromPlayer}}) == 1 # <--- Aqui tbm tem que mudar p/ 1

&& scalar(keys %{$monster->{dmgFromPlayer}}) == 1 # <--- Aqui tbm tem que mudar p/ 1

&& scalar(keys %{$monster->{castOnByPlayer}}) == 1 # <--- Aqui tbm tem que mudar p/ 1

# and it hasn't attacked any other player

&& scalar(keys %{$monster->{missedToPlayer}}) == 1 # <--- Aqui tbm tem que mudar p/ 1

&& scalar(keys %{$monster->{dmgToPlayer}}) == 1 # <--- Aqui tbm tem que mudar p/ 1

&& scalar(keys %{$monster->{castOnToPlayer}}) == 1 # <--- Aqui tbm tem que mudar p/ 1

) {

# The monster might be getting lured by another player.

# So we check whether it's walking towards any other player, but only

# if we haven't already attacked the monster.

if ($monster->{dmgFromYou} || $monster->{missedFromYou}) {

return 1;

} else {

return !objectIsMovingTowardsPlayer($monster);

}

}

# The monster didn't attack you.

# Other players attacked it, or it attacked other players.

if ($monster->{dmgFromYou} || $monster->{missedFromYou}) {

# If you have already attacked the monster before, then consider it clean

return 1;

}

# If you haven't attacked the monster yet, it's unclean.

return 1;

}

 

Finish PRONTO pessoal se vcs fizeram certinho o bot comessará a dar ks a lot... Mais lembre-se além de bot, kser??? é fodss /heh, isto irá requerer de vc um openkore melhor configurado ainda....

 

By: SEVEN

Link para o comentário
Compartilhar em outros sites

  • 0

so n entendi um coisa

 

tipow para que o bot vai localizar um mostro q ta na frente dele? tipo ele anda em direcao ao monstro em para na frente dele pra localiza?? :confused:

meio dificiul de intender.

e isso atrapalha muito em mps mais movimentados :cool:

Link para o comentário
Compartilhar em outros sites

Este tópico está impedido de receber novos posts.
 Compartilhar

×
×
  • Criar Novo...

Informação Importante

Nós fazemos uso de cookies no seu dispositivo para ajudar a tornar este site melhor. Você pode ajustar suas configurações de cookies , caso contrário, vamos supor que você está bem para continuar.