summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--db/re/item_db.conf3
-rw-r--r--npc/items/inc_sc_bonus.txt1
2 files changed, 3 insertions, 1 deletions
diff --git a/db/re/item_db.conf b/db/re/item_db.conf
index 1ae6e73f5..aedc9aed4 100644
--- a/db/re/item_db.conf
+++ b/db/re/item_db.conf
@@ -631,6 +631,7 @@ item_db: (
sc_end SC_DEEP_SLEEP;
sc_end SC_DEC_AGI;
percentheal 100, 100;
+ callfunc("SC_Bonus", SC_KAIZEL, 180000, 1); // Revives with 1% HP if you die
">
},
{
@@ -15992,7 +15993,7 @@ item_db: (
Refine: false
Delay: 500
Script: <"
- sc_start SC_KAIZEL, 60000, 40; // Revives with 40% HP if you die
+ callfunc("SC_Bonus", SC_KAIZEL, 60000, 40); // Revives with 40% HP if you die
">
},
diff --git a/npc/items/inc_sc_bonus.txt b/npc/items/inc_sc_bonus.txt
index a26d5701e..8e6b6e5be 100644
--- a/npc/items/inc_sc_bonus.txt
+++ b/npc/items/inc_sc_bonus.txt
@@ -15,6 +15,7 @@
// .@min Min amount of type
// .@max Max amount of type (optional)
+// SC_Bonus(delay, SC, min{, max})
function script SC_Bonus {
.@delay=getarg(0);
.@type=getarg(1);