I found the code, but i don't know the block list type.
I tried to change it, but nothing happen... hmm...
Update: the pet trying to move and attack the player, after he/she at attack range, the pet lost target, and move back.
Update2: found it, it's on function battle_check_target
you have to change this
switch( src->type ) { //Checks on actual src type
case BL_PET:
if (t_bl->type != BL_MOB && flag &BCT_ENEMY)
return 0; //Pet may not attack non-mobs.
if (t_bl->type == BL_MOB && ((TBL_MOB*)t_bl)->guardian_data && flag&BCT_ENEMY)
return 0; //pet may not attack Guardians/Emperium
break;
into this
switch( src->type ) { //Checks on actual src type
case BL_PET:
if (t_bl->type != BL_MOB && t_bl->type != BL_PC && flag &BCT_ENEMY) //<-- OVER HERE!!
return 0; //Pet may not attack non-mobs. // and pc i guess
if (t_bl->type == BL_MOB && ((TBL_MOB*)t_bl)->guardian_data && flag&BCT_ENEMY)
return 0; //pet may not attack Guardians/Emperium
break;
Question
jigsam
So guys, how to make pet attacking in pvp?
I found the code, but i don't know the block list type.
I tried to change it, but nothing happen... hmm...
Update: the pet trying to move and attack the player, after he/she at attack range, the pet lost target, and move back.
Update2: found it, it's on function battle_check_target
you have to change this
into this
and change the pet_target_check function
My naght sieger is iching to taste human blood. Now he can. XD

Edited by jigsamLink to comment
Share on other sites
1 answer 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.