From eb8dee1d9a43a217db407cb706c9a57f59b486b4 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 18 Jun 2019 22:38:49 -0300 Subject: Magic Apple (MaxHP +3500 for 10 minutes). Item for Player Quest. Effects expire on death. Also sold for 115 Strange Coins on Aeros Shop. --- db/re/item_db.conf | 18 ++++++++++++++++++ npc/001-1/rewards.txt | 1 + npc/001-7/homunculus.txt | 6 +++--- 3 files changed, 22 insertions(+), 3 deletions(-) diff --git a/db/re/item_db.conf b/db/re/item_db.conf index 44e1ca561..303f0d6f2 100644 --- a/db/re/item_db.conf +++ b/db/re/item_db.conf @@ -3251,6 +3251,24 @@ item_db: ( callfunc "grenade", 3, rand(100,150)+BaseLevel*6, true; "> }, +{ + Id: 683 + AegisName: "MagicApple" + Name: "Magic Apple" + Type: "IT_USABLE" + Buy: 1000000 + Sell: 0 + Weight: 10 + Refine: false + Delay: 500 + Script: <" + @min = 3500; + @max = 3500; + @delay = 600; + @type = SC_INCMHP; + doevent "inc_sc_bonus::OnUse"; + "> +}, // Mounts (690 to 699, probably there will be extra IDs) { diff --git a/npc/001-1/rewards.txt b/npc/001-1/rewards.txt index 12edfd4be..0855b6af3 100644 --- a/npc/001-1/rewards.txt +++ b/npc/001-1/rewards.txt @@ -64,6 +64,7 @@ OnInit: sellitem BlueDye, 36; // Consumables + sellitem MagicApple,115; sellitem Grenade,50; sellitem ElixirOfLife,32; sellitem CelestiaTea,18; diff --git a/npc/001-7/homunculus.txt b/npc/001-7/homunculus.txt index 19e68dbd3..23673d0d6 100644 --- a/npc/001-7/homunculus.txt +++ b/npc/001-7/homunculus.txt @@ -179,10 +179,10 @@ OnInit: close; } mesn strcharinfo(0); - mesc l("You carefully pick a @@. It looks delicious, but you probably will need it later.", getitemlink(RedApple)); + mesc l("You carefully pick a @@. It looks delicious, but you probably will need it later.", getitemlink(MagicApple)); if (!(.@q & .hcID)) { - inventoryplace RedApple, 1; - getitem RedApple, 1; + inventoryplace MagicApple, 1; + getitem MagicApple, 1; setq2 FrostiaQuest_Homunculus, .@q|.hcID; } close; -- cgit v1.2.3-70-g09d2