From 695ea00674255d10bd6e357c7c5b8f353a069422 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 14 Apr 2021 14:02:52 -0300 Subject: Why fixing the skill not consuming items, when I can hack it instead? :thinking: --- npc/002-1/elanore.txt | 2 +- npc/magic/level1-grow-plants.txt | 3 +++ npc/magic/level1-lesser-heal.txt | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) (limited to 'npc') diff --git a/npc/002-1/elanore.txt b/npc/002-1/elanore.txt index 11567fb5..2a400994 100644 --- a/npc/002-1/elanore.txt +++ b/npc/002-1/elanore.txt @@ -53,7 +53,7 @@ L_NoHealMessage: L_Chat: mesn l("Elanore the Healer"); - mes "\"Hello! Can I help you?\""; + mesq l("Hello! Can I help you?"); next; goto L_Main; diff --git a/npc/magic/level1-grow-plants.txt b/npc/magic/level1-grow-plants.txt index c3a1a102..c3b21bad 100644 --- a/npc/magic/level1-grow-plants.txt +++ b/npc/magic/level1-grow-plants.txt @@ -16,6 +16,9 @@ function script SK_GrowPlants { case SKILL_MODRILAX: .@it = MauveHerb; .@mobId = MauvePlant; break; } + // Consume reagents + delitem Root, 1; + delitem .@it, 1; // Continue but with a special flag SK_summon(.@mobId, 2, 1, false); return; diff --git a/npc/magic/level1-lesser-heal.txt b/npc/magic/level1-lesser-heal.txt index 0f6c9f74..d7de0185 100644 --- a/npc/magic/level1-lesser-heal.txt +++ b/npc/magic/level1-lesser-heal.txt @@ -36,8 +36,9 @@ function script SK_Lum { getunitdata(@skillTarget, UDT_HP); } - // No need for healing? + // No need for healing? Otherwise, take reagent if (.@limit <= 0) return; + delitem Lifestone, 1; // Real healing happens here .@PW=90+(10*@skillLv); -- cgit v1.2.3-60-g2f50