From db11ed42d6f98b612c20ca1745b560ab31018025 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 30 May 2019 16:10:55 -0300 Subject: Tweak system is more flexible in cost-terms now. --- npc/craft/tweak.txt | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'npc/craft/tweak.txt') diff --git a/npc/craft/tweak.txt b/npc/craft/tweak.txt index 61435a2e0..b0eb9cdb2 100644 --- a/npc/craft/tweak.txt +++ b/npc/craft/tweak.txt @@ -25,19 +25,18 @@ function script SmithTweakReset { return; } -// Usage: SmithTweakSystem ({scope}) -// Scopes: CRAFT_PLAYER, CRAFT_NPC +// Usage: SmithTweakSystem ({price}) // Returns true on success, false on failure function script SmithTweakSystem { - // Set .scope, .knowledge and .success - .scope=getarg(0, CRAFT_PLAYER); + // Set .knowledge and the price + .@price=getarg(0, 600); copyarray(.knowledge,RECIPES_EQUIPMENT,getarraysize(RECIPES_EQUIPMENT)); mes l("Which item will you tweak?"); mesc l("Note: You may fail to write skills to it."), 1; - mesc l("Operation Cost: 600 GP"), 3; + mesc l("Operation Cost: @@ GP", .@price), 3; - if (Zeny < 600) + if (Zeny < .@price) return false; .@id=requestitemindex(); @@ -48,7 +47,7 @@ function script SmithTweakSystem { return false; // Take the money away - Zeny-=600; + Zeny-=.@price; // Check if you fail if (!csys_Check(.@id)) { -- cgit v1.2.3-70-g09d2