Jump to content
  • 0
Sign in to follow this  
purityz

MAPPROPERTY_NOTHING

Question

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?

Edited by purityz

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.