summaryrefslogtreecommitdiff
path: root/src/char
diff options
context:
space:
mode:
authorpanikon <panikon@zoho.com>2014-04-19 18:28:51 -0300
committerpanikon <panikon@zoho.com>2014-04-19 18:28:51 -0300
commitd57781cee04e99fa8be7c209a75b949a57eba59d (patch)
tree1727620e892958802e9319ac23d74de51e955e64 /src/char
parent11d2525f4a7a358030caaa17fe82dc7bab8fe63f (diff)
downloadhercules-d57781cee04e99fa8be7c209a75b949a57eba59d.tar.gz
hercules-d57781cee04e99fa8be7c209a75b949a57eba59d.tar.bz2
hercules-d57781cee04e99fa8be7c209a75b949a57eba59d.tar.xz
hercules-d57781cee04e99fa8be7c209a75b949a57eba59d.zip
Fixed issue: 8150
* http://hercules.ws/board/tracker/issue-8150-cash-shop-updating-quantity-bug/ * Also fixed issue where when using ATitem to get more than one pet egg would result on getting only one egg * Changed packet 0x3880 structure now it also contains pet class and dropped flag from this packet, it was pointless
Diffstat (limited to 'src/char')
-rw-r--r--src/char/int_pet.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/char/int_pet.c b/src/char/int_pet.c
index 2867aed77..25f00e6f0 100644
--- a/src/char/int_pet.c
+++ b/src/char/int_pet.c
@@ -122,18 +122,18 @@ int inter_pet_delete(int pet_id){
//------------------------------------------------------
int mapif_pet_created(int fd, int account_id, struct s_pet *p)
{
- WFIFOHEAD(fd, 11);
- WFIFOW(fd, 0) =0x3880;
- WFIFOL(fd, 2) =account_id;
+ WFIFOHEAD(fd, 12);
+ WFIFOW(fd, 0) = 0x3880;
+ WFIFOL(fd, 2) = account_id;
if(p!=NULL){
- WFIFOB(fd, 6)=0;
- WFIFOL(fd, 7) =p->pet_id;
+ WFIFOW(fd, 6) = p->class_;
+ WFIFOL(fd, 8) = p->pet_id;
ShowInfo("int_pet: created pet %d - %s\n", p->pet_id, p->name);
}else{
- WFIFOB(fd, 6)=1;
- WFIFOL(fd, 7)=0;
+ WFIFOB(fd, 6) = 0;
+ WFIFOL(fd, 8) = 0;
}
- WFIFOSET(fd, 11);
+ WFIFOSET(fd, 12);
return 0;
}