19-09-2007, 10:52 AM
The best way would be to use a for all of the packet names, but this is just a simple thing to do for playermove and npcmove, since those packets are sent the most.
Replace all of the finds.
Server Side
Find "playermove"
Replace it with "P"
Find "npcmove"
Replace it with "N"
Client Side
Find "playermove"
Replace it with "p"
Find "npcmove"
Replace it with "n"
Example for the Enum:
I just started doing this.
Code:
Public Enum
Replace all of the finds.
Server Side
Find "playermove"
Replace it with "P"
Find "npcmove"
Replace it with "N"
Client Side
Find "playermove"
Replace it with "p"
Find "npcmove"
Replace it with "n"
Example for the Enum:
Code:
Public Enum ServerToClient
StCPlayerMove = 0
StCVerify '"verify"
StCGuildInfo '"guildinfo"
StCQuestMsg '"QuestMsg"
StCLag ' "lag"
StCFriendList ' "friendlist"
StCDamageDisplay ' "damagedisplay"
StCItemWorn '"itemworn"
StCSendWing '"sendwing"
StCMapMsg2 '"mapmsg2"
StCShowLabelOnShop '"showlabelonshop"
StCServerResults' "serverresults"
End Enum