diff options
Diffstat (limited to 'npc/craft/alchemy.txt')
-rw-r--r-- | npc/craft/alchemy.txt | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/npc/craft/alchemy.txt b/npc/craft/alchemy.txt index e23416596..6e0084596 100644 --- a/npc/craft/alchemy.txt +++ b/npc/craft/alchemy.txt @@ -33,7 +33,22 @@ function script AlchemySystem { .success=false; } else { if (.scope == CRAFT_NPC || .knowledge[.@entry]) { - usecraft .@craft; + if (GSET_FIXED_ALCHEMY) { + .@m=limit(1, GSET_FIXED_ALCHEMY, 25); + } else { + .@max=(is_sponsor() ? 25 : 10); + mesc l("How many to brew? (%d-%d)", 1, .@max); + input(.@m, 1, .@max); + } + // Alchemy loop + .@i=0; + while (.@i < .@m) { + .@s=usecraft(.@craft); + .@i++; + // Failed for whatever reason + if (!.@s) + break; + } .success=true; } else { .success=false; |