summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
Diffstat (limited to 'npc')
-rw-r--r--npc/craft/tweak.txt16
1 files changed, 14 insertions, 2 deletions
diff --git a/npc/craft/tweak.txt b/npc/craft/tweak.txt
index b0eb9cdb2..39b6b287a 100644
--- a/npc/craft/tweak.txt
+++ b/npc/craft/tweak.txt
@@ -32,11 +32,22 @@ function script SmithTweakSystem {
.@price=getarg(0, 600);
copyarray(.knowledge,RECIPES_EQUIPMENT,getarraysize(RECIPES_EQUIPMENT));
+ // How many times more can you tweak?
+ // You get 1 action, capped to 6
+ .@left=gettimeparam(GETTIME_HOUR)-SMITH_TWEAKS;
+ if (.@left > 6) {
+ .@left=6;
+ SMITH_TWEAKS=gettimeparam(GETTIME_HOUR)-6;
+ }
+
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("Note: You may fail to write skills to it."), 1;
mesc l("Operation Cost: @@ GP", .@price), 3;
- if (Zeny < .@price)
+ // Do you have money or AP
+ if (Zeny < .@price || !.@left)
return false;
.@id=requestitemindex();
@@ -46,8 +57,9 @@ function script SmithTweakSystem {
if (!csys_Confirm(.@id))
return false;
- // Take the money away
+ // Take the money and AP away
Zeny-=.@price;
+ SMITH_TWEAKS+=1;
// Check if you fail
if (!csys_Check(.@id)) {