Home > other > Want to ask next game about monsters props drop to pick up this is how to implement a series of proc
Want to ask next game about monsters props drop to pick up this is how to implement a series of proc
Time:09-22
Actually I game development is small white, this two days suddenly want to know the knowledge about network game monsters, I hope to have who can tell me about your "The monster was struck -> system - item drop - players pick up items selected items" How is this a series of process server receives and return to the game data, the client is what kind of operation, and at the time of data interaction problems such as how to avoid intercepted by a third party program modification,
CodePudding user response:
Attacking players (attack, skills, etc.), the client will the relevant action by agreement (generally includes attack type, object ID, etc.) are sent to the server, the server for the corresponding calculation, and then return the results to the client, the results including the loss of blood, death, after the client receives the news make a drop of blood, death and so on movement performance, server monster death, according to the relevant configuration of monsters ID lookup drop, and then calculated (are generally based on probability and random), it is concluded that the item drop, then notify the client in xyz coordinate put the props, the client is, accordingly, Players see items, click on the pick up props, the client pick up props and structure of the message, sent to the server, the server accordingly, generally is determining the player coordinates, props coordinates, the player can pick up, after testing by gather items, will return to the client, the client accordingly, in general, this return notice as a result, it is divided into removes the specified object from the world and add the specified object in the player package two,
CodePudding user response:
About security, can't be intercepted tampering with one hundred percent to avoid network news, can only increase the difficulty of the interception of tampering with as much as possible, are generally implemented by message encryption, after encryption processing, general won't be cracked, to solve the difficulty of this kind of custom protocol is quite big, crack or almost no one can achieve this agreement, unless there is a ghost, and even if the agreement is cracked, no obvious loophole, if the server is not so good out useful plugins, so generally RPG games, logic operation is the server, the client only work performance, this kind of game is not possible in the true sense of plugins,
CodePudding user response:
Well, look at is very detailed, educated, give to you, but I'd like to ask a few questions, That have this kind of situation in which a drop of my captures the encrypted data, I continue to intercept data in next fall, but I don't need, just put the last time the ciphertext returned to the client, get two same items will happen? Or is just performance change, props itself is unable to change?