summaryrefslogtreecommitdiff
path: root/src/char
diff options
context:
space:
mode:
authormc_cameri <mc_cameri@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-13 12:35:57 +0000
committermc_cameri <mc_cameri@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-13 12:35:57 +0000
commitc905e2e19a9f913a4ea51b8a32dc97735a01b091 (patch)
treeee268e1dc482f4ae0a9ebd2cf5142a4873798bc4 /src/char
parent053eaa2d289853af24a28bc82e08ffcb74cbaf24 (diff)
downloadhercules-c905e2e19a9f913a4ea51b8a32dc97735a01b091.tar.gz
hercules-c905e2e19a9f913a4ea51b8a32dc97735a01b091.tar.bz2
hercules-c905e2e19a9f913a4ea51b8a32dc97735a01b091.tar.xz
hercules-c905e2e19a9f913a4ea51b8a32dc97735a01b091.zip
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@157 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char')
-rw-r--r--src/char/char.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/char/char.c b/src/char/char.c
index 399ac2a5c..152c9247b 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -2412,6 +2412,20 @@ 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