summaryrefslogtreecommitdiff
path: root/src/map/script.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/script.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/script.h')
-rw-r--r--src/map/script.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/script.h b/src/map/script.h
index 64e709a27..a75b948ab 100644
--- a/src/map/script.h
+++ b/src/map/script.h
@@ -1049,6 +1049,8 @@ struct script_interface {
void (*run_use_script) (struct map_session_data *sd, struct item_data *data, int oid);
void (*run_item_equip_script) (struct map_session_data *sd, struct item_data *data, int oid);
void (*run_item_unequip_script) (struct map_session_data *sd, struct item_data *data, int oid);
+ void (*run_item_rental_end_script) (struct map_session_data *sd, struct item_data *data, int oid);
+ void (*run_item_rental_start_script) (struct map_session_data *sd, struct item_data *data, int oid);
};
#ifdef HERCULES_CORE