summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-06-05 13:52:36 -0300
committerJesusaves <cpntb1@ymail.com>2019-06-05 13:52:36 -0300
commit7ff8068df6164f6b5cd8df29ded820e2c8e80491 (patch)
tree604ab1d4434139ad617480f0d4fc1993ec7d9b88
parentcd48ff779729f92e80a650dd36ee7a11fea3e732 (diff)
downloadserverdata-7ff8068df6164f6b5cd8df29ded820e2c8e80491.tar.gz
serverdata-7ff8068df6164f6b5cd8df29ded820e2c8e80491.tar.bz2
serverdata-7ff8068df6164f6b5cd8df29ded820e2c8e80491.tar.xz
serverdata-7ff8068df6164f6b5cd8df29ded820e2c8e80491.zip
Be harsher at item tweaking - it must have a bonus previously.
AP System is now just an annoyance, not really relevant.
-rw-r--r--npc/014-5-1/sagratha.txt2
-rw-r--r--npc/craft/tweak.txt8
2 files changed, 10 insertions, 0 deletions
diff --git a/npc/014-5-1/sagratha.txt b/npc/014-5-1/sagratha.txt
index cd8e1b6c1..2bb6850b0 100644
--- a/npc/014-5-1/sagratha.txt
+++ b/npc/014-5-1/sagratha.txt
@@ -157,6 +157,8 @@ function script SaggyMobCount {
close;
break;
default:
+ closeclientdialog;
+ goodbye;
close;
}
// TODO: Learn Magic
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;