Analyzing the code, figured out how to run problem. Simply by changing the order of a few lines:
current code:pt_br wrote:Sempre que se distancia de um monstros, principalmente ao entrar por uma passagem, o monstro fica paralizado. Este é um bug conhecido do jogo.
Analisando os códigos, descobri como corrir problema. Bastando apenas trocar a ordem de algumas linhas:
corrected code:static int mob_attack (struct mob_data *md, unsigned int tick, int data) {
struct block_list *tbl = NULL;
nullpo_retr (0, md);
if ((tbl = map_id2bl (md->target_id)) == NULL)
return 0;
if (!mob_check_attack (md))
return 0;
The simplest way to check the problem and the fix is also creating a monster that does not move, offensive and attacking from a distance.static int mob_attack (struct mob_data *md, unsigned int tick, int data) {
struct block_list *tbl = NULL;
nullpo_retr (0, md);
if (!mob_check_attack (md))
return 0;
if ((tbl = map_id2bl (md->target_id)) == NULL)
return 0;
buggy: to distance himself from the monster he stops attacking and is paralyzed.
no bug, it comes back to attack once again reaches the target.
pt_br wrote:A forma mais simples de verificar o problema e também a correção é criando um monstro que não se move, ofensivo e que ataca à distancia.
com bug: ao se distanciar do monstro ele para de atacar e fica paralizado.
sem bug: ele volta a atacar assim que alcança o alvo novamente.