Jump to content

[C++] Improve Movespeed


Papix

Mensajes recomendados

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
Enlace para comentar
Compartir en otros sitios

Unirse a la conversación

Puedes publicar ahora y registrarte más tarde. Si tienes una cuenta, regístrate para publicar con su cuenta.

Guest
Responder a este tema...

×   Has pegado contenido con formato .   Eliminar formato

  Only 75 emoji are allowed.

×   Tu enlace se ha incorporado automáticamente.   Mostrar un enlace en su lugar

×   Se ha restaurado el contenido anterior. .   Borrar editor

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

  • Recientemente navegando por este tema   0 miembros

    • No hay usuarios registrados visitando esta página.
×
×
  • Crear nuevo...