diff options
author | Haru <haru@dotalux.com> | 2019-09-23 00:38:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-23 00:38:52 +0200 |
commit | d6dd1e7d1a8701def756d25ceb170674ee88f619 (patch) | |
tree | 291a0b3831c3876d13cad7a4488de3e10ad6c8ac /db/re | |
parent | a1b62d431c74c2b805e2b6bd8081c2b7b7a6ff7e (diff) | |
parent | ad19056bfcc1e98129bf25e14b58dcd0d438f9f9 (diff) | |
download | hercules-d6dd1e7d1a8701def756d25ceb170674ee88f619.tar.gz hercules-d6dd1e7d1a8701def756d25ceb170674ee88f619.tar.bz2 hercules-d6dd1e7d1a8701def756d25ceb170674ee88f619.tar.xz hercules-d6dd1e7d1a8701def756d25ceb170674ee88f619.zip |
Merge pull request #2462 from hemagx/dehardcoded_rentrals
Dehardcode Rental Expire/Renting item checks
Diffstat (limited to 'db/re')
-rw-r--r-- | db/re/item_db.conf | 57 |
1 files changed, 48 insertions, 9 deletions
diff --git a/db/re/item_db.conf b/db/re/item_db.conf index 794746784..f9997cb53 100644 --- a/db/re/item_db.conf +++ b/db/re/item_db.conf @@ -121,6 +121,8 @@ item_db: ( "> OnEquipScript: <" OnEquip Script (can also be multi-line) "> OnUnequipScript: <" OnUnequip Script (can also be multi-line) "> + OnRentalStartScript: <" On item renting script, gets called after item is created in inventory (can also be multi-line) "> + OnRentalEndScript: <" On item rent end/expire script, gets called after item is removed from inventory (can also be multi-line) "> }, **************************************************************************/ @@ -89226,7 +89228,11 @@ item_db: ( nomail: true noauction: true } - Script: <" setfont 1; "> + Script: <" setfont(1); "> + OnRentalEndScript: <" + if (getfont() == 1) + setfont(0); + "> }, { Id: 12288 @@ -89243,7 +89249,11 @@ item_db: ( nomail: true noauction: true } - Script: <" setfont 2; "> + Script: <" setfont(2); "> + OnRentalEndScript: <" + if (getfont() == 2) + setfont(0); + "> }, { Id: 12289 @@ -89260,7 +89270,11 @@ item_db: ( nomail: true noauction: true } - Script: <" setfont 3; "> + Script: <" setfont(3); "> + OnRentalEndScript: <" + if (getfont() == 3) + setfont(0); + "> }, { Id: 12290 @@ -89512,7 +89526,11 @@ item_db: ( nomail: true noauction: true } - Script: <" setfont 4; "> + Script: <" setfont(4); "> + OnRentalEndScript: <" + if (getfont() == 4) + setfont(0); + "> }, { Id: 12305 @@ -89529,7 +89547,11 @@ item_db: ( nomail: true noauction: true } - Script: <" setfont 5; "> + Script: <" setfont(5); "> + OnRentalEndScript: <" + if (getfont() == 5) + setfont(0); + "> }, { Id: 12306 @@ -89546,7 +89568,11 @@ item_db: ( nomail: true noauction: true } - Script: <" setfont 6; "> + Script: <" setfont(6); "> + OnRentalEndScript: <" + if (getfont() == 6) + setfont(0); + "> }, { Id: 12307 @@ -89563,7 +89589,11 @@ item_db: ( nomail: true noauction: true } - Script: <" setfont 7; "> + Script: <" setfont(7); "> + OnRentalEndScript: <" + if (getfont() == 7) + setfont(0); + "> }, { Id: 12308 @@ -89580,7 +89610,11 @@ item_db: ( nomail: true noauction: true } - Script: <" setfont 8; "> + Script: <" setfont(8); "> + OnRentalEndScript: <" + if (getfont() == 8) + setfont(0); + "> }, { Id: 12309 @@ -89597,7 +89631,11 @@ item_db: ( nomail: true noauction: true } - Script: <" setfont 9; "> + Script: <" setfont(9); "> + OnRentalEndScript: <" + if (getfont() == 9) + setfont(0); + "> }, { Id: 12310 @@ -93349,6 +93387,7 @@ item_db: ( noauction: true } Script: <" setcashmount(); "> + OnRentalEndScript: <" sc_end(SC_ALL_RIDING); "> }, { Id: 12623 |