summaryrefslogtreecommitdiff
path: root/npc/craft
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-06-01 00:22:46 -0300
committerJesusaves <cpntb1@ymail.com>2019-06-01 00:22:46 -0300
commit2bb4aba0ea7492857509b8ce5838ee5ab61f0bc9 (patch)
treebb6ceb1f139f7fa9fd9e21172c929fa55647e69c /npc/craft
parent6c2d694e6528efaa421e17202bf80650bcbd3f4c (diff)
downloadserverdata-2bb4aba0ea7492857509b8ce5838ee5ab61f0bc9.tar.gz
serverdata-2bb4aba0ea7492857509b8ce5838ee5ab61f0bc9.tar.bz2
serverdata-2bb4aba0ea7492857509b8ce5838ee5ab61f0bc9.tar.xz
serverdata-2bb4aba0ea7492857509b8ce5838ee5ab61f0bc9.zip
How to distress Freeyorp? Add an AP system :>
Diffstat (limited to 'npc/craft')
-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)) {