summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;