summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwizputer <wizputer@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-07 05:56:35 +0000
committerwizputer <wizputer@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-07 05:56:35 +0000
commit27fd5bb209c45a6e16465a659b4f8638fa967a3c (patch)
treee2a16690420c132d74f77ab0aa9e8207ac02e4f0
parente4236103480b6f457eaf57c05cad1b713293cbd6 (diff)
downloadhercules-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
-rw-r--r--Changelog.txt1
-rw-r--r--src/char/char.c15
-rw-r--r--src/map/atcommand.c2
-rw-r--r--src/map/chrif.c2
4 files changed, 3 insertions, 17 deletions
diff --git a/Changelog.txt b/Changelog.txt
index 3943c1d9e..4be44ca5b 100644
--- a/Changelog.txt
+++ b/Changelog.txt
@@ -1,5 +1,6 @@
Date Added
12/6
+ * Fixed global message not working on txt [Wizputer]
* fixed a server crash in mobinsite [MouseJstr]
* fixed a server crash in party sharing exp [MouseJstr]
* fixed a server crash in BS_FINDINGORE [MouseJstr]
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;