Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Saving some Bytes
#1
The best way would be to use a
Code:
Public Enum
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:
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
I just started doing this.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)