I am implementing the system cell_pvp which leaves only one aria in pvp map, I ultilizo a pre-renawal version of eAthena, I made the following change over time to give some compile errors, wanted to know what the problem is.
if( sd->state.monster_ignore && flag&BCT_ENEMY )
return 0; // Global inminuty only to Attacks
+ if(s_bl->type == BL_PC)
+ tsd = BL_CAST(BL_PC, s_bl);
+ if(s_bl->type == BL_PC && map_getcell(sd->bl.m,sd->bl.x,sd->bl.y,CELL_CHKPVP) && flag&BCT_ENEMY && map_getcell(tsd->bl.m,tsd->bl.x,tsd->bl.y,CELL_CHKPVP))
+ state |= BCT_ENEMY; //PvP enemy.
if( sd->status.karma && s_bl->type == BL_PC && ((TBL_PC*)s_bl)->status.karma )
state |= BCT_ENEMY; // Characters with bad karma may fight amongst them
if( sd->state.killable ) {
state |= BCT_ENEMY; // Everything can kill it
strip_enemy = 0;
Question
Scofield
I am implementing the system cell_pvp which leaves only one aria in pvp map, I ultilizo a pre-renawal version of eAthena, I made the following change over time to give some compile errors, wanted to know what the problem is.
error in console
up.
Edited by cumbe11Link to comment
Share on other sites
0 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.