summaryrefslogtreecommitdiff
path: root/db/pre-re
diff options
context:
space:
mode:
authorIbrahim Zidan <brahem@aotsw.com>2019-05-07 08:05:39 +0200
committerIbrahim Zidan <brahem@aotsw.com>2019-09-22 23:45:40 +0200
commit5d8e006fb85df2b3bbc32f2348bbcaad950546ba (patch)
tree9894ad33f8707d121869ac8088bd05206dbd04f9 /db/pre-re
parent3d595e664563bf6ac3e434152baadd7dbc295d06 (diff)
downloadhercules-5d8e006fb85df2b3bbc32f2348bbcaad950546ba.tar.gz
hercules-5d8e006fb85df2b3bbc32f2348bbcaad950546ba.tar.bz2
hercules-5d8e006fb85df2b3bbc32f2348bbcaad950546ba.tar.xz
hercules-5d8e006fb85df2b3bbc32f2348bbcaad950546ba.zip
Remove the hardcoded checks in pc_rental_expire and use OnRentalEndScript field in item database for those items instead
Fixes #140 Signed-off-by: Ibrahim Zidan <brahem@aotsw.com>
Diffstat (limited to 'db/pre-re')
-rw-r--r--db/pre-re/item_db.conf55
1 files changed, 46 insertions, 9 deletions
diff --git a/db/pre-re/item_db.conf b/db/pre-re/item_db.conf
index 3fe2fdacd..ba9de0dd4 100644
--- a/db/pre-re/item_db.conf
+++ b/db/pre-re/item_db.conf
@@ -69572,7 +69572,11 @@ item_db: (
nomail: true
noauction: true
}
- Script: <" setfont 1; ">
+ Script: <" setfont(1); ">
+ OnRentalEndScript: <"
+ if (getfont() == 1)
+ setfont(0);
+ ">
},
{
Id: 12288
@@ -69589,7 +69593,11 @@ item_db: (
nomail: true
noauction: true
}
- Script: <" setfont 2; ">
+ Script: <" setfont(2); ">
+ OnRentalEndScript: <"
+ if (getfont() == 2)
+ setfont(0);
+ ">
},
{
Id: 12289
@@ -69606,7 +69614,11 @@ item_db: (
nomail: true
noauction: true
}
- Script: <" setfont 3; ">
+ Script: <" setfont(3); ">
+ OnRentalEndScript: <"
+ if (getfont() == 3)
+ setfont(0);
+ ">
},
{
Id: 12290
@@ -69858,7 +69870,11 @@ item_db: (
nomail: true
noauction: true
}
- Script: <" setfont 4; ">
+ Script: <" setfont(4); ">
+ OnRentalEndScript: <"
+ if (getfont() == 4)
+ setfont(0);
+ ">
},
{
Id: 12305
@@ -69875,7 +69891,11 @@ item_db: (
nomail: true
noauction: true
}
- Script: <" setfont 5; ">
+ Script: <" setfont(5); ">
+ OnRentalEndScript: <"
+ if (getfont() == 5)
+ setfont(0);
+ ">
},
{
Id: 12306
@@ -69892,7 +69912,11 @@ item_db: (
nomail: true
noauction: true
}
- Script: <" setfont 6; ">
+ Script: <" setfont(6); ">
+ OnRentalEndScript: <"
+ if (getfont() == 6)
+ setfont(0);
+ ">
},
{
Id: 12307
@@ -69909,7 +69933,11 @@ item_db: (
nomail: true
noauction: true
}
- Script: <" setfont 7; ">
+ Script: <" setfont(7); ">
+ OnRentalEndScript: <"
+ if (getfont() == 7)
+ setfont(0);
+ ">
},
{
Id: 12308
@@ -69926,7 +69954,11 @@ item_db: (
nomail: true
noauction: true
}
- Script: <" setfont 8; ">
+ Script: <" setfont(8); ">
+ OnRentalEndScript: <"
+ if (getfont() == 8)
+ setfont(0);
+ ">
},
{
Id: 12309
@@ -69943,7 +69975,11 @@ item_db: (
nomail: true
noauction: true
}
- Script: <" setfont 9; ">
+ Script: <" setfont(9); ">
+ OnRentalEndScript: <"
+ if (getfont() == 9)
+ setfont(0);
+ ">
},
{
Id: 12310
@@ -73053,6 +73089,7 @@ item_db: (
noauction: true
}
Script: <" setcashmount(); ">
+ OnRentalEndScript: <" sc_end(SC_ALL_RIDING); ">
},
{
Id: 12701