Jump to content
  • 0

Battle monsters


Question

Posted (edited)

Sorry for my English.

Help please. How to make that mob could fight the mob?

In battle_check_target entered for the test at the beginning of the function return 1

int battle_check_target( struct block_list *src, struct block_list *target,int flag)
{
int m,state = 0; //Initial state none
int strip_enemy = 1; //Flag which marks whether to remove the BCT_ENEMY status if it's also friend/ally.
struct block_list *s_bl = src, *t_bl = target;
nullpo_ret(src);
nullpo_ret(target);
m = target->m;
return 1;
...
...
}

, but don't fight mobs.

Why? What did I forget?

Edited by Racer

2 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...