purityz 0 Posted August 6, 2013 (edited) 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 August 6, 2013 by purityz Quote Share this post Link to post Share on other sites
0 goddameit 52 Posted August 8, 2013 yep, you will need to refresh client by relogin or else (jump, warp,...) Quote Share this post Link to post Share on other sites
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.
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 purityzShare this post
Link to post
Share on other sites