Skip to content

Commit

Permalink
Patch 1571
Browse files Browse the repository at this point in the history
・キャラクター削除時に実績データの削除がされていなかったのを修正(char.c)

・PACKETVER[20201007]以降でキャラクター作成、削除時のパケットヘッダ誤りを修正(char.c)
  • Loading branch information
refis committed Nov 10, 2024
1 parent 6c540be commit 531b240
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 1,10 @@
----------------------------------------
//1571 [2024/11/10] by refis

・キャラクター削除時に実績データの削除がされていなかったのを修正(char.c)

・PACKETVER[20201007]以降でキャラクター作成、削除時のパケットヘッダ誤りを修正(char.c)

----------------------------------------
//1570 [2024/11/03] by refis

Expand Down
11 changes: 9 additions & 2 deletions src/char/char.c
Original file line number Diff line number Diff line change
Expand Up @@ -1616,7 1616,7 @@ static void mmo_char_send006d(int fd, const struct mmo_charstatus *st, int sex)
WFIFOB(fd,156) = sex; // 性別
WFIFOSET(fd,157);
#elif PACKETVER < 20231220
WFIFOW(fd,0) = 0x6d;
WFIFOW(fd,0) = 0xb6f;
WFIFOL(fd,2) = st->char_id;
WFIFOQ(fd,6) = st->base_exp;
WFIFOL(fd,14) = st->zeny;
Expand Down Expand Up @@ -1662,7 1662,7 @@ static void mmo_char_send006d(int fd, const struct mmo_charstatus *st, int sex)
WFIFOB(fd,176) = st->sex; // 性別
WFIFOSET(fd,177);
#else
WFIFOW(fd,0) = 0x6d;
WFIFOW(fd,0) = 0xb6f;
WFIFOL(fd,2) = st->char_id;
WFIFOQ(fd,6) = st->base_exp;
WFIFOL(fd,14) = st->zeny;
Expand Down Expand Up @@ -2026,6 2026,9 @@ static int char_delete(const struct mmo_chardata *cd)
// ROメール削除
maildb_delete(cd->st.char_id);

// 実績削除
achievedb_delete(cd->st.char_id);

// ランキング削除
char_ranking_delete(cd->st.char_id);

Expand Down Expand Up @@ -2329,7 2332,11 @@ int parse_tologin(int fd)
int found_num = chardb_load_all(sd,sd->account_id);
int j;
const struct mmo_charstatus *st;
#if PACKETVER < 20201007
WFIFOW(fdc,0)=0x99d;
#else
WFIFOW(fdc,0)=0xb72;
#endif
for( j = 0; j < max_char_slot ; j ) {
if(sd->found_char[j] == NULL)
continue;
Expand Down

0 comments on commit 531b240

Please sign in to comment.