it works if you press shift. how to make an attack right away? I searched for a long time in clif.c how to make an enemy. not found =( can someone tell me how to send a packet to a client about an enemy? (I've been trying to figure out how to make factions hostile for 2 weeks)
npc menu
if (select(.@menu$) == 1) {
set faction, 1;
}else{
set faction, 2;
}
\src\map\battle.cpp
int battle_check_target( struct block_list *src, struct block_list *target,int flag)
int64 s_fvf = pc_readglobalreg((TBL_PC*)src, add_str("faction"));
int64 t_fvf = pc_readglobalreg((TBL_PC*)target, add_str("faction"));
if (s_fvf > 0 && t_fvf > 0 && s_fvf != t_fvf && mapdata->flag[MF_FVF]) {
return 1;
}