From 38dc7226c90711b989478dc4e838154e8cb0b65f Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 28 Apr 2020 19:00:42 -0300 Subject: *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) --- db/re/item_db.conf | 3 ++- npc/items/inc_sc_bonus.txt | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3-60-g2f50