diff options
Diffstat (limited to 'npc/craft')
-rw-r--r-- | npc/craft/tweak.txt | 13 |
1 files changed, 6 insertions, 7 deletions
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)) { |