summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-04-28 19:00:42 -0300
committerJesusaves <cpntb1@ymail.com>2020-04-28 19:00:42 -0300
commit38dc7226c90711b989478dc4e838154e8cb0b65f (patch)
tree1c47b91105026351b8a74c4682cfd0d249ed653a
parent0a808cdee32b7c8c29e2dbce2c109ae6c0d92e2d (diff)
downloadserverdata-38dc7226c90711b989478dc4e838154e8cb0b65f.tar.gz
serverdata-38dc7226c90711b989478dc4e838154e8cb0b65f.tar.bz2
serverdata-38dc7226c90711b989478dc4e838154e8cb0b65f.tar.xz
serverdata-38dc7226c90711b989478dc4e838154e8cb0b65f.zip
*NEW* [Elixir Of Life] will not only dispel ailments and fully heal.
It'll also set auto-revive for 3 minutes if you accidentaly die! =D You hardly will waste this potion if you use it in combat. But beware: You'll come back with ONLY 1% HP! (20% if you use S. Pot. Imortality)
-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);