summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-09-17 12:44:33 +0000
committerai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-09-17 12:44:33 +0000
commit2c1b05e983bc4b1ee565c375c71db8f5a8f19b9c (patch)
tree718eca2778c4371f4b4e6d32c64b75efaa1eb00b /src/map/clif.c
parenta3b5d7d0f3e6724836b411183fa8f7fd0bc5bf8e (diff)
downloadhercules-2c1b05e983bc4b1ee565c375c71db8f5a8f19b9c.tar.gz
hercules-2c1b05e983bc4b1ee565c375c71db8f5a8f19b9c.tar.bz2
hercules-2c1b05e983bc4b1ee565c375c71db8f5a8f19b9c.tar.xz
hercules-2c1b05e983bc4b1ee565c375c71db8f5a8f19b9c.zip
* Rental items no longer expire in cart and storage. The packet does not support this and rentals cannot be put in on official either (since r14082, related r14083).
- Corrected packet 0x299 (ZC_CASH_ITEM_DELETE) missing inventory index field (since r13370). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14958 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index f81675d69..d986e8700 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -13865,11 +13865,14 @@ void clif_rental_time(int fd, int nameid, int seconds)
WFIFOSET(fd,8);
}
-void clif_rental_expired(int fd, int nameid)
+
+/// Deletes a rental item from client's inventory (ZC_CASH_ITEM_DELETE).
+/// 0299 <index>.W <nameid>.W
+void clif_rental_expired(int fd, int index, int nameid)
{ // '<ItemName>' item has been deleted from the Inventory
WFIFOHEAD(fd,6);
WFIFOW(fd,0) = 0x0299;
- WFIFOW(fd,2) = 0;
+ WFIFOW(fd,2) = index+2;
WFIFOW(fd,4) = nameid;
WFIFOSET(fd,6);
}