diff options
author | wizputer <wizputer@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-12-07 05:56:35 +0000 |
---|---|---|
committer | wizputer <wizputer@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-12-07 05:56:35 +0000 |
commit | 27fd5bb209c45a6e16465a659b4f8638fa967a3c (patch) | |
tree | e2a16690420c132d74f77ab0aa9e8207ac02e4f0 /src | |
parent | e4236103480b6f457eaf57c05cad1b713293cbd6 (diff) | |
download | hercules-27fd5bb209c45a6e16465a659b4f8638fa967a3c.tar.gz hercules-27fd5bb209c45a6e16465a659b4f8638fa967a3c.tar.bz2 hercules-27fd5bb209c45a6e16465a659b4f8638fa967a3c.tar.xz hercules-27fd5bb209c45a6e16465a659b4f8638fa967a3c.zip |
Fixed global message not working on txt [Wizputer]
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@482 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r-- | src/char/char.c | 15 | ||||
-rw-r--r-- | src/map/atcommand.c | 2 | ||||
-rw-r--r-- | src/map/chrif.c | 2 |
3 files changed, 2 insertions, 17 deletions
diff --git a/src/char/char.c b/src/char/char.c index e0dcdfbd8..2dc2242d9 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -2412,21 +2412,6 @@ int parse_frommap(int fd) { // printf("char: save_account_reg (from map)\n"); break; } - // Map server send information to change an email of an account -> login-server - case 0x3000: - if (RFIFOREST(fd) < 4 || RFIFOREST(fd) < RFIFOW(fd,2)) - return 0; - if (login_fd > 0) { // don't send request if no login-server - WFIFOW(login_fd,0) = 0x3000; - WFIFOW(login_fd,2) = RFIFOW(fd,2); - WFIFOL(login_fd,4) = RFIFOL(fd,4); - WFIFOB(login_fd,8) = RFIFOB(fd,8); - WFIFOSET(login_fd, RFIFOW(fd,2)); - printf("char : change sex -> login %d %d %d \n", RFIFOL(fd,4), RFIFOB(fd,8), RFIFOW(fd,2)); - } - RFIFOSKIP(fd, RFIFOW(fd,2)); - break; - default: // inter serverˆ—‚É“n‚· { diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 7c54336f2..1e0139286 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -7728,7 +7728,7 @@ atcommand_changesex( const char* command, const char* message) { nullpo_retr(-1, sd); - chrif_changesex(sd->status.account_id, ((sd->status.sex+1)%2)); + chrif_char_ask_name(sd->status.account_id,sd->status.name, 5,0,0,0,0,0,0); return 0; } diff --git a/src/map/chrif.c b/src/map/chrif.c index bc5392b22..62e6e8953 100644 --- a/src/map/chrif.c +++ b/src/map/chrif.c @@ -434,7 +434,7 @@ int chrif_changesex(int id, int sex) { if (char_fd < 1 ) return -1; - WFIFOW(char_fd,0) = 0x3000; + WFIFOW(char_fd,0) = 0x2b11; WFIFOW(char_fd,2) = 9; WFIFOL(char_fd,4) = id; WFIFOB(char_fd,8) = sex; |