summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-02-05 19:53:04 +0300
committerAndrei Karas <akaras@inbox.ru>2019-02-11 03:22:46 +0300
commit772578af2f989b5f44df5f6514804a36181224bf (patch)
treeea6b35572651655d366a0c3e75f80ad19381cae0
parentbcc2cb2ca1663d55dbcad3389e95836481c9ddc3 (diff)
downloadhercules-772578af2f989b5f44df5f6514804a36181224bf.tar.gz
hercules-772578af2f989b5f44df5f6514804a36181224bf.tar.bz2
hercules-772578af2f989b5f44df5f6514804a36181224bf.tar.xz
hercules-772578af2f989b5f44df5f6514804a36181224bf.zip
Extend class field in packet 0x3880
-rw-r--r--src/char/mapif.c10
-rw-r--r--src/map/intif.c4
2 files changed, 7 insertions, 7 deletions
diff --git a/src/char/mapif.c b/src/char/mapif.c
index b35543d31..7dd2aba98 100644
--- a/src/char/mapif.c
+++ b/src/char/mapif.c
@@ -1427,14 +1427,14 @@ static int mapif_pet_created(int fd, int account_id, struct s_pet *p)
WFIFOW(fd, 0) = 0x3880;
WFIFOL(fd, 2) = account_id;
if (p != NULL){
- WFIFOW(fd, 6) = p->class_;
- WFIFOL(fd, 8) = p->pet_id;
+ WFIFOL(fd, 6) = p->class_;
+ WFIFOL(fd, 10) = p->pet_id;
ShowInfo("int_pet: created pet %d - %s\n", p->pet_id, p->name);
} else {
- WFIFOB(fd, 6) = 0;
- WFIFOL(fd, 8) = 0;
+ WFIFOL(fd, 6) = 0;
+ WFIFOL(fd, 10) = 0;
}
- WFIFOSET(fd, 12);
+ WFIFOSET(fd, 14);
return 0;
}
diff --git a/src/map/intif.c b/src/map/intif.c
index 758b30148..413d3e384 100644
--- a/src/map/intif.c
+++ b/src/map/intif.c
@@ -1640,7 +1640,7 @@ static void intif_parse_GuildMasterChanged(int fd)
// Request pet creation
static void intif_parse_CreatePet(int fd)
{
- pet->get_egg(RFIFOL(fd,2), RFIFOW(fd,6), RFIFOL(fd,8));
+ pet->get_egg(RFIFOL(fd, 2), RFIFOL(fd, 6), RFIFOL(fd, 10));
}
// ACK pet data
@@ -3000,7 +3000,7 @@ void intif_defaults(void)
-1,-1, 7, 7, 7,11, 8, 0, 10, 0, 0, 0, 0, 0, 0, 0, //0x3850 Auctions [Zephyrus] itembound[Akinari] Clan System[Murilo BiO]
-1, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, //0x3860 Quests [Kevin] [Inkfish]
-1, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 3, 3, 0, //0x3870 Mercenaries [Zephyrus] / Elemental [pakpil]
- 12,-1, 7, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, //0x3880
+ 14,-1, 7, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, //0x3880
-1,-1, 7, 3, 0,-1, 7, 15,18 + NAME_LENGTH, 0, 0, 0, 0, 0, 0, 0, //0x3890 Homunculus [albator] / RoDEX [KirieZ]
};