You haven't given the pvpzone method...
This probably is the best method, unless your players rapidly click more then once every 0.5 seconds.
|
Add under packet 241.
Make sure to remove your old attack option.Code:if(PVPzone == true) { outStream.createFrameVarSize(104); outStream.writeByteC(3) ;outStream.writeByteA(1); outStream.writeString("Attack"); outStream.endFrameVarSize(); } else { outStream.createFrameVarSize(104); outStream.writeByteC(3); outStream.writeByteA(1); outStream.writeString("null"); outStream.endFrameVarSize(); }
You haven't given the pvpzone method...
This probably is the best method, unless your players rapidly click more then once every 0.5 seconds.
wats packet 241? o.o
clicking packet or something?
Yes its for clicking, and its not really needed to be checked every time you click either..
I used to think this was better, although it is probably better to have a boolean declaring whether or not it has changed and call it in process. Somebody could simply mass click (not even right-click) and it will constantly reset the right click option.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |