summaryrefslogtreecommitdiff
path: root/src/login/login.c
diff options
context:
space:
mode:
authorFate <fate-tmw@googlemail.com>2009-05-25 22:40:30 +0000
committerFate <fate-tmw@googlemail.com>2009-05-25 22:40:30 +0000
commitabb1b2ad079878b0750054982c95193200dd7bd5 (patch)
tree70ed99df5a07b0d478e5a0a038918371064a2a41 /src/login/login.c
parent208f15dd1bf61cb96df4e85b87e3d60eea55388e (diff)
downloadtmwa-abb1b2ad079878b0750054982c95193200dd7bd5.tar.gz
tmwa-abb1b2ad079878b0750054982c95193200dd7bd5.tar.bz2
tmwa-abb1b2ad079878b0750054982c95193200dd7bd5.tar.xz
tmwa-abb1b2ad079878b0750054982c95193200dd7bd5.zip
Made itemfrob an ladmin command that can be used while running the server
Diffstat (limited to 'src/login/login.c')
-rw-r--r--src/login/login.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/login/login.c b/src/login/login.c
index bf28e48..40da193 100644
--- a/src/login/login.c
+++ b/src/login/login.c
@@ -1863,6 +1863,16 @@ int parse_admin(int fd) {
}
break;
+ case 0x7924: { // [Fate] Itemfrob package: change item IDs
+ if (RFIFOREST(fd) < 10)
+ return 0;
+ charif_sendallwos(-1, RFIFOP(fd, 0), 10); // forward package to char servers
+ RFIFOSKIP(fd,10);
+ WFIFOW(fd,0) = 0x7925;
+ WFIFOSET(fd, 2);
+ break;
+ }
+
case 0x7930: // Request for an account creation
if (RFIFOREST(fd) < 91)
return 0;