Jump to content

[C++] Improve Movespeed


Papix

Recommended Posts

Hello community,

The values associated with movespeed are BYTE (255) by default, in this short guide I'll teach you how to change them to short (65535).

Binary

// @Userinterface/Locale_inc.h

// Add
#define ENABLE_EXTEND_MOVE_SPEED

// @Userinterface/Packet.h

// Inside these typedef struct
typedef struct packet_add_char
typedef struct packet_add_char2
typedef struct packet_update_char
typedef struct packet_update_char2

// replace this
	BYTE bMovingSpeed;

// With this
#ifdef ENABLE_EXTEND_MOVE_SPEED
	short bMovingSpeed;
#else
	BYTE bMovingSpeed;
#endif


Source

// @common/service.h

// Add
#define ENABLE_EXTEND_MOVE_SPEED

// @game/packet.h

// Inside these typedef struct
typedef struct packet_add_char
typedef struct packet_add_char2
typedef struct packet_update_char
typedef struct packet_update_char2

// replace this
	BYTE bMovingSpeed;

// With this
#ifdef ENABLE_EXTEND_MOVE_SPEED
	short bMovingSpeed;
#else
	BYTE bMovingSpeed;
#endif
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...