From c78c295c1cc44885e6148565a2877eca9fa3d0ab Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 25 Jan 2020 19:19:00 -0300 Subject: Prepare five new flavors of tea which I'm yet to decide the name. Lv 20 Tea, Lv 40 Tea, Lv 60 Tea, Lv 80 Tea, Lv 100 Tea. Names undecided, only effects. I also need the pixel art (or color codes). --- db/re/item_db.conf | 90 ++++++++++++++++++++++++++++++++++++++++++++++ npc/items/rand_mp_heal.txt | 1 + 2 files changed, 91 insertions(+) diff --git a/db/re/item_db.conf b/db/re/item_db.conf index 55ccea8a2..85c58a563 100644 --- a/db/re/item_db.conf +++ b/db/re/item_db.conf @@ -15051,6 +15051,96 @@ item_db: ( doevent "rand_sc_heal::OnUse"; "> }, +{ + Id: 8014 + AegisName: "RandomTea1" + Name: "Random Tea 1" + Type: "IT_HEALING" + Buy: 200 + Sell: 5 + Weight: 5 + Refine: false + Delay: 500 + UseEffect: "EFFECT_HEAL" + Script: <" + @min = 120; + @max = 272; + @delay = 2; + doevent "rand_mp_heal::OnUse"; + "> +}, +{ + Id: 8015 + AegisName: "RandomTea2" + Name: "Random Tea 2" + Type: "IT_HEALING" + Buy: 200 + Sell: 5 + Weight: 5 + Refine: false + Delay: 500 + UseEffect: "EFFECT_HEAL" + Script: <" + @min = 300; + @max = 452; + @delay = 3; + doevent "rand_mp_heal::OnUse"; + "> +}, +{ + Id: 8016 + AegisName: "RandomTea3" + Name: "Random Tea 3" + Type: "IT_HEALING" + Buy: 200 + Sell: 5 + Weight: 5 + Refine: false + Delay: 500 + UseEffect: "EFFECT_HEAL" + Script: <" + @min = 480; + @max = 632; + @delay = 4; + doevent "rand_mp_heal::OnUse"; + "> +}, +{ + Id: 8017 + AegisName: "RandomTea4" + Name: "Random Tea 4" + Type: "IT_HEALING" + Buy: 200 + Sell: 5 + Weight: 5 + Refine: false + Delay: 500 + UseEffect: "EFFECT_HEAL" + Script: <" + @min = 660; + @max = 812; + @delay = 5; + doevent "rand_mp_heal::OnUse"; + "> +}, +{ + Id: 8018 + AegisName: "RandomTea5" + Name: "Random Tea 5" + Type: "IT_HEALING" + Buy: 200 + Sell: 5 + Weight: 5 + Refine: false + Delay: 500 + UseEffect: "EFFECT_HEAL" + Script: <" + @min = 840; + @max = 992; + @delay = 6; + doevent "rand_mp_heal::OnUse"; + "> +}, ) diff --git a/npc/items/rand_mp_heal.txt b/npc/items/rand_mp_heal.txt index d64661bea..918e02dc3 100644 --- a/npc/items/rand_mp_heal.txt +++ b/npc/items/rand_mp_heal.txt @@ -28,6 +28,7 @@ OnUse: // Save the effect @mp_healeffect = rand2(@min, @max); + @mp_healeffect = @mp_healeffect / @delay + 1; @mp_healdelay = @delay; // Apply the effect and finish -- cgit v1.2.3-60-g2f50