From 5fb385aef1e83cef546ea69b1b06feb00b8e5a73 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Thu, 22 Mar 2012 07:37:23 +0000 Subject: Rehashed Item_delay.txt (bugreport:5487) - Before you could only have MAX_ITEMDELAYS (10) items with delays. Now: you can have up to MAX_ITEMDELAYS (10) concurrent delays. and of course you can always increase MAX_ITEMDELAYS in src/map/itemdb.h as much as you may need. - Item delays are no longer lost on logout, they're persistent until server restarts. - When a item use is denied due to delay still up a message now tells the user why he can't use the item (before would leave the user wondering wtf was going on. it had no response) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15762 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/pc.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/map/pc.h') diff --git a/src/map/pc.h b/src/map/pc.h index a035092b5..8d8e9e7e0 100644 --- a/src/map/pc.h +++ b/src/map/pc.h @@ -218,7 +218,7 @@ struct map_session_data { unsigned int ks_floodprotect_tick; // [Kill Steal Protection] struct { - int nameid; + short nameid; unsigned int tick; } item_delay[MAX_ITEMDELAYS]; // [Paradox924X] @@ -897,4 +897,8 @@ void pc_overheat(struct map_session_data *sd, int val); * Royal Guard **/ int pc_banding(struct map_session_data *sd, short skill_lv); +/** + * Item Cooldown persistency + **/ +void pc_itemcd_do(struct map_session_data *sd, bool load); #endif /* _PC_H_ */ -- cgit v1.2.3-70-g09d2