summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-02-05 20:03:24 +0300
committerAndrei Karas <akaras@inbox.ru>2019-02-11 03:22:46 +0300
commit734371e81026b74bad3b6e5c1d9466a1a122669a (patch)
tree8d1985c39d97ea7559e905c52a978fa7de617bc0 /src/map
parent772578af2f989b5f44df5f6514804a36181224bf (diff)
downloadhercules-734371e81026b74bad3b6e5c1d9466a1a122669a.tar.gz
hercules-734371e81026b74bad3b6e5c1d9466a1a122669a.tar.bz2
hercules-734371e81026b74bad3b6e5c1d9466a1a122669a.tar.xz
hercules-734371e81026b74bad3b6e5c1d9466a1a122669a.zip
Extend class and level field in packet 0x3080
Diffstat (limited to 'src/map')
-rw-r--r--src/map/intif.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/map/intif.c b/src/map/intif.c
index 413d3e384..616ad63b0 100644
--- a/src/map/intif.c
+++ b/src/map/intif.c
@@ -81,16 +81,16 @@ static int intif_create_pet(int account_id, int char_id, int pet_class, int pet_
WFIFOW(inter_fd, 0) = 0x3080;
WFIFOL(inter_fd, 2) = account_id;
WFIFOL(inter_fd, 6) = char_id;
- WFIFOW(inter_fd, 10) = pet_class;
- WFIFOW(inter_fd, 12) = pet_lv;
- WFIFOL(inter_fd, 14) = pet_egg_id;
- WFIFOL(inter_fd, 18) = pet_equip;
- WFIFOW(inter_fd, 22) = intimate;
- WFIFOW(inter_fd, 24) = hungry;
- WFIFOB(inter_fd, 26) = rename_flag;
- WFIFOB(inter_fd, 27) = incubate;
- memcpy(WFIFOP(inter_fd, 28), pet_name, NAME_LENGTH);
- WFIFOSET(inter_fd, 28 + NAME_LENGTH);
+ WFIFOL(inter_fd, 10) = pet_class;
+ WFIFOL(inter_fd, 14) = pet_lv;
+ WFIFOL(inter_fd, 18) = pet_egg_id;
+ WFIFOL(inter_fd, 22) = pet_equip;
+ WFIFOW(inter_fd, 26) = intimate;
+ WFIFOW(inter_fd, 28) = hungry;
+ WFIFOB(inter_fd, 30) = rename_flag;
+ WFIFOB(inter_fd, 31) = incubate;
+ memcpy(WFIFOP(inter_fd, 32), pet_name, NAME_LENGTH);
+ WFIFOSET(inter_fd, 32 + NAME_LENGTH);
return 0;
}