ok so how can the player 1 will be immune to attack
like the condition : player 2 only can hit is those who has cash points but others who dont have cash points cannot be hit?
when using the cash point killing command?
i think i already found the clue from the battle_check_target so i try a test but i think i dont get it
this condition are put to { //Checks on target master below
if (map[m].flag.pvp && sd->state.pk_stateset == 1 && pc_readaccountreg(sd, "#CASHPOINTS") == 1)
return 1; // if the pk_stateset command is active only enemy with #cashpoints of 1 can be the target
if (map[m].flag.pvp && sd->state.pk_stateset == 0 && pc_readaccountreg(sd, "#CASHPOINTS") == 0)
return 1; // if the pk_stateset command is deactive only enemy without #cashpoints can be the target
but didnt work
when i test it the player who has that condition is the one who checks by the system
Ex. player 1 activates the pk_stateset and has cash point of 1 the failed thing is player 2 can attack him
please someone help me i think i mess up with pc_readaccountreg? because the player has it the only one who checks by the system
not the player that target help guys