Da einige danach fragen :
Code
- Client Src:
- Locale_inc.h/Defines.h
- #define ENABLE_MOVESPEED
- Packet.h:
- packet_add_char so ändern
- typedef struct packet_add_char
- {
- uint8_t header;
- uint32_t dwVID;
- float angle;
- long x;
- long y;
- long z;
- uint8_t bType;
- uint16_t wRaceNum;
- #ifdef ENABLE_MOVESPEED
- WORD bMovingSpeed;
- #else
- BYTE bMovingSpeed;
- #endif
- uint8_t bAttackSpeed;
- uint8_t bStateFlag;
- uint32_t dwAffectFlag[2]; // ??
- } TPacketGCCharacterAdd;
- packet_add_char2 so abändern
- typedef struct packet_add_char2
- {
- uint8_t header;
- uint32_t dwVID;
- char name[CHARACTER_NAME_MAX_LEN + 1];
- float angle;
- long x;
- long y;
- long z;
- uint8_t bType;
- uint16_t wRaceNum;
- uint16_t awPart[CHR_EQUIPPART_NUM];
- #ifdef ENABLE_MOVESPEED
- WORD bMovingSpeed;
- #else
- BYTE bMovingSpeed;
- #endif
- uint8_t bAttackSpeed;
- uint8_t bStateFlag;
- uint32_t dwAffectFlag[2]; // ??
- uint8_t bEmpire;
- uint32_t dwGuild;
- int16_t sAlignment;
- uint8_t bPKMode;
- uint32_t dwMountVnum;
- } TPacketGCCharacterAdd2;
- packet_update_char so ändern
- typedef struct packet_update_char
- {
- uint8_t header;
- uint32_t dwVID;
- uint16_t awPart[CHR_EQUIPPART_NUM];
- #ifdef ENABLE_MOVESPEED
- WORD bMovingSpeed;
- #else
- BYTE bMovingSpeed;
- #endif
- uint8_t bAttackSpeed;
- uint8_t bStateFlag;
- uint32_t dwAffectFlag[2];
- uint32_t dwGuildID;
- int16_t sAlignment;
- uint8_t bPKMode;
- uint32_t dwMountVnum;
- } TPacketGCCharacterUpdate;
- packet_update_char2 so ändern
- typedef struct packet_update_char2
- {
- uint8_t header;
- uint32_t dwVID;
- uint16_t awPart[CHR_EQUIPPART_NUM];
- #ifdef ENABLE_MOVESPEED
- WORD bMovingSpeed;
- #else
- BYTE bMovingSpeed;
- #endif
- uint8_t bAttackSpeed;
- uint8_t bStateFlag;
- uint32_t dwAffectFlag[2];
- uint32_t dwGuildID;
- int16_t sAlignment;
- uint8_t bPKMode;
- uint32_t dwMountVnum;
- } TPacketGCCharacterUpdate2
- Server Src:
- service.h /CommonDefines.h
- #define ENABLE_MOVESPEED
- #ifdef ENABLE_MOVESPEED
- #define MOVESPEED 400 // ändern falls man mehr haben will
- #define MOVESPEED_CAP 600// ändern falls man mehr haben will
- #endif
- Char.cpp
- Suche :
- int CHARACTER::GetPoint
- Änder
- #ifdef ENABLE_MOVESPEED
- int CHARACTER::GetPoint(WORD type) const
- #else
- int CHARACTER::GetPoint(BYTE type) const
- #endif
- suche int CHARACTER::GetLimitPoint:
- Änder
- #ifdef ENABLE_MOVESPEED
- int CHARACTER::GetLimitPoint(WORD type) const
- #else
- int CHARACTER::GetLimitPoint(BYTE type) const
- #endif
- Suche :
- int void CHARACTER::SetPoint
- Änder
- #ifdef ENABLE_MOVESPEED
- void CHARACTER::SetPoint(WORD type, int val)
- #else
- void CHARACTER::SetPoint(BYTE type, int val)
- #endif
- Suche in
- void CHARACTER::ComputePoints()
- SetPoint(POINT_MOV_SPEED, 200);
- SetPoint(POINT_ATT_SPEED, 100);
- PointChange(POINT_ATT_SPEED, GetPoint(POINT_PARTY_HASTE_BONUS));
- SetPoint(POINT_CASTING_SPEED, 100);
- änder in
- SetPoint(POINT_MOV_SPEED, MOVESPEED);
- SetPoint(POINT_ATT_SPEED, 100);
- PointChange(POINT_ATT_SPEED, GetPoint(POINT_PARTY_HASTE_BONUS));
- SetPoint(POINT_CASTING_SPEED, 100);
- suche in int CHARACTER::GetLimitPoint(WORD type) const
- case POINT_MOV_SPEED:
- ändere
- if (IsPC())
- limit = MOVESPEED_CAP;
- else
- limit = 350;
- break;
- char.h
- Ändere so
- #ifdef ENABLE_MOVESPEED
- void SetPoint(WORD idx, int val);
- int GetPoint(WORD idx) const;
- int GetLimitPoint(WORD idx) const;
- #else
- void SetPoint(BYTE idx, int val);
- int GetPoint(BYTE idx) const;
- int GetLimitPoint(BYTE idx) const;
- #endif
- packet.h
- typedef struct packet_add_char
- {
- BYTE header;
- DWORD dwVID;
- float angle;
- long x;
- long y;
- long z;
- BYTE bType;
- WORD wRaceNum;
- #ifdef ENABLE_MOVESPEED
- WORD bMovingSpeed;
- #else
- BYTE bMovingSpeed;
- #endif
- BYTE bAttackSpeed;
- BYTE bStateFlag;
- DWORD dwAffectFlag[2]; // 효과
- } TPacketGCCharacterAdd;
- typedef struct packet_update_char
- {
- BYTE header;
- DWORD dwVID;
- WORD awPart[CHR_EQUIPPART_NUM];
- #ifdef ENABLE_MOVESPEED
- WORD bMovingSpeed;
- #else
- BYTE bMovingSpeed;
- #endif
- BYTE bAttackSpeed;
- BYTE bStateFlag;
- DWORD dwAffectFlag[2];
- DWORD dwGuildID;
- short sAlignment;
- BYTE bPKMode;
- DWORD dwMountVnum;
- //WORD wRaceNum;
- } TPacketGCCharacterUpdate;
Kein besonderes Schönes tut