MAPPROPERTY_NOTHING

purityz

New member
Messages
12
Points
0
I've create the PVP ZONE in my server and I want it when player enter this PVP area can attack eachother without holding shiftkey.

So i've come up with this code to make people whos  enter PVP ZONE got a sword cursor(attacking cursor) by sending MAPPROPERTY_FREEPVPZONE.

  if(iMap->getcell(bl->m,bl->x,bl->y,CELL_CHKPVPZONE)){
   if(!ud->onPK){
   ShowDebug("%s Enter PvP Area n",sd->status.name);
   clif->map_property(sd, MAPPROPERTY_FREEPVPZONE);
   ud->onPK=1;
   }
 }else{
   if(ud->onPK){
   ShowDebug("%s Leaves PvP Area n",sd->status.name);
   clif->map_property(sd, MAPPROPERTY_NOTHING);
   ud->onPK=0;
   }
 }

but when they leaves, I've send MAPPROPERTY_NOTHING to client but there are still sword cursor until they relog.

anyone know how to make it work?

 
Last edited by a moderator:
yep, you will need to refresh client by relogin or else (jump, warp,...)

 
Back
Top