summaryrefslogtreecommitdiff
path: root/src/map/itemdb.h
diff options
context:
space:
mode:
authorIbrahim Zidan <brahem@aotsw.com>2019-05-07 06:37:11 +0200
committerIbrahim Zidan <brahem@aotsw.com>2019-09-22 23:45:38 +0200
commit5d7c8d9857f096abfc4f205c8771b0b4c91fab2c (patch)
treea36b6b0ac2c942e2a18340a715bf256980c1dbec /src/map/itemdb.h
parent92f3ecdcb341b798c93d5c8b0320fb8cb85e759c (diff)
downloadhercules-5d7c8d9857f096abfc4f205c8771b0b4c91fab2c.tar.gz
hercules-5d7c8d9857f096abfc4f205c8771b0b4c91fab2c.tar.bz2
hercules-5d7c8d9857f096abfc4f205c8771b0b4c91fab2c.tar.xz
hercules-5d7c8d9857f096abfc4f205c8771b0b4c91fab2c.zip
Implement new script fields for items triggered on rentral status changes
- OnRentalStartScript triggered when a rental item is added to inventory - OnRentalEndScript triggered when a rental period end/expire of the item Related #140 Signed-off-by: Ibrahim Zidan <brahem@aotsw.com>
Diffstat (limited to 'src/map/itemdb.h')
-rw-r--r--src/map/itemdb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/itemdb.h b/src/map/itemdb.h
index 7da7609f1..d1e5973e8 100644
--- a/src/map/itemdb.h
+++ b/src/map/itemdb.h
@@ -516,6 +516,8 @@ struct item_data {
struct script_code *script; ///< Default script for everything.
struct script_code *equip_script; ///< Script executed once when equipping.
struct script_code *unequip_script; ///< Script executed once when unequipping.
+ struct script_code *rental_start_script; ///< Script executed once this item get rented
+ struct script_code *rental_end_script; ///< Script executed once this item rent ends
struct {
unsigned available : 1;
unsigned no_refine : 1; // [celest]