diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-05-30 16:10:55 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-05-30 16:10:55 -0300 |
commit | db11ed42d6f98b612c20ca1745b560ab31018025 (patch) | |
tree | a000223c0da2b3c383ec59bb0dd893f759063601 | |
parent | 2ff1c4bc1deeec8cb17b830e039113cccff35b6d (diff) | |
download | serverdata-db11ed42d6f98b612c20ca1745b560ab31018025.tar.gz serverdata-db11ed42d6f98b612c20ca1745b560ab31018025.tar.bz2 serverdata-db11ed42d6f98b612c20ca1745b560ab31018025.tar.xz serverdata-db11ed42d6f98b612c20ca1745b560ab31018025.zip |
Tweak system is more flexible in cost-terms now.
-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)) { |