08-03-2007, 11:44 PM
Well i was thinking, everyone here seems to be using complex timers, checks etc blah to send updates on things like experience, skills all that stuff...
Would it be plausable to simply go through the source and avoiding timers etc simply add a call to an 'on event' module. In this module it would basically resend all the players information like exp, hp, skills etc etc. Surely this way your only calling the information when its needed.. i.e. you kill a monster, the server goes yay call on event and sends you your info.
Surely this would eliminate packet spamming.. and even though it is one hell of a tedious job tracking down every single part of code where something related to the player changes wouldnt it be massively beneficial?
Just wondering since i am thinking of going through a version of ms and doing it... the theory sounds perfect to me but i might be being a total retard and barking up the wrong tree... :roll:.
Would it be plausable to simply go through the source and avoiding timers etc simply add a call to an 'on event' module. In this module it would basically resend all the players information like exp, hp, skills etc etc. Surely this way your only calling the information when its needed.. i.e. you kill a monster, the server goes yay call on event and sends you your info.
Surely this would eliminate packet spamming.. and even though it is one hell of a tedious job tracking down every single part of code where something related to the player changes wouldnt it be massively beneficial?
Just wondering since i am thinking of going through a version of ms and doing it... the theory sounds perfect to me but i might be being a total retard and barking up the wrong tree... :roll:.