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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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