RotMG PvP basic HowTo (private server)
It is really simple. As you all know, when the client receives an ALLYSHOOT packet, it displays a projectile that can't hit players.
In the same way, when it receives a SHOOT packet (I think it's this one, not sure tho) it displays a projectile that can trigger the hit detection on players.
To get PvP working, we should just need to send SHOOT packets instead of ALLYSHOOT ones, and treat them as enemy projectiles (already coded).
This image shows the process (basically): http://i.imgur.com/nDksICc.png
That's it. We could add some more features, but as of now I'm busy on other things.
Just wanted to tell you guys that it is possible. Feel free to try it out by yourself.
In the same way, when it receives a SHOOT packet (I think it's this one, not sure tho) it displays a projectile that can trigger the hit detection on players.
To get PvP working, we should just need to send SHOOT packets instead of ALLYSHOOT ones, and treat them as enemy projectiles (already coded).
This image shows the process (basically): http://i.imgur.com/nDksICc.png
That's it. We could add some more features, but as of now I'm busy on other things.
Just wanted to tell you guys that it is possible. Feel free to try it out by yourself.


