From 7ff8068df6164f6b5cd8df29ded820e2c8e80491 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 5 Jun 2019 13:52:36 -0300 Subject: Be harsher at item tweaking - it must have a bonus previously. AP System is now just an annoyance, not really relevant. --- npc/craft/tweak.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'npc/craft') diff --git a/npc/craft/tweak.txt b/npc/craft/tweak.txt index 39b6b287a..b5c847e17 100644 --- a/npc/craft/tweak.txt +++ b/npc/craft/tweak.txt @@ -43,6 +43,8 @@ function script SmithTweakSystem { mes l("Which item will you tweak?"); mesc l("Note: You can only perform this operation @@/6 times.", .@left); mesc l("You recover a tweaking point every hour."); + mesc l("EXPERTS ONLY - If you are not a talented crafter, avoid this."), 1; + mesc l("The item must have a previous bonus, which WILL BE LOST!"), 1; mesc l("Note: You may fail to write skills to it."), 1; mesc l("Operation Cost: @@ GP", .@price), 3; @@ -57,6 +59,12 @@ function script SmithTweakSystem { if (!csys_Confirm(.@id)) return false; + // If the item have no bonuses - fail + if (getitemoptionidbyindex(.@id, 0) <= 0) { + mesc l("This item have no bonuses, and cannot be tweaked."), 1; + return false; + } + // Take the money and AP away Zeny-=.@price; SMITH_TWEAKS+=1; -- cgit v1.2.3-60-g2f50