Every cycle you process every packet received and send packets as needed, this is including the update mask of each player in that area which includes combat level, cords and appearance of each player in that region, you also do the same for NPC's.
|
|
I've never understood how to do this, could somebody please give me a quick guide on what I need to do? What packets I need to call, etc? What data I need to send to the client? Thanks.
All I really understand is that I need a loop that ticks at 600ms, and in that loop it has to send packets to the client. I don't know which packets/data I need to send...
And all I want is for the landscape to show, at the players location. I don't need the player to show just yet...
Every cycle you process every packet received and send packets as needed, this is including the update mask of each player in that area which includes combat level, cords and appearance of each player in that region, you also do the same for NPC's.
yeah i know that but i dont get what packets and shit like that
You may want to take a look at [Only registered and activated users can see links. ]
If you need me to explain, packets (to my understanding) are bits of data being sent back and forth from the client. We use a ripped "stream.java" from the 317 client, which is basicly a IO buffer obfuscated all to shit. We use a byte array and shifted bits to write the bytes to an OutputStream, in most cases java.io.OutputStream
As for what you asked, it's all in that winterlove server i sent you, you can pull that apart if you want to.
| « NPCDrops.TSM | [PI] Adding Objects » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |