From 2bb4aba0ea7492857509b8ce5838ee5ab61f0bc9 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 1 Jun 2019 00:22:46 -0300 Subject: How to distress Freeyorp? Add an AP system :> --- npc/craft/tweak.txt | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'npc') 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)) { -- cgit v1.2.3-60-g2f50