summaryrefslogtreecommitdiff
path: root/npc/craft/alchemy.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-09-14 23:10:00 -0300
committerJesusaves <cpntb1@ymail.com>2020-09-14 23:10:00 -0300
commit9284a1c3406be2783c68aa05f11afee435887e57 (patch)
tree5684cc3c4f3c838952aeb92c723a33dbb6d90667 /npc/craft/alchemy.txt
parentefe9a4e6e1eb60ab5d2015acbfbbce82b0be70e9 (diff)
downloadserverdata-9284a1c3406be2783c68aa05f11afee435887e57.tar.gz
serverdata-9284a1c3406be2783c68aa05f11afee435887e57.tar.bz2
serverdata-9284a1c3406be2783c68aa05f11afee435887e57.tar.xz
serverdata-9284a1c3406be2783c68aa05f11afee435887e57.zip
Alchemy Table: Now you should be able to brew multiple instances at once!
However, this is expensive. Sponsors, who pay for hardware, can brew up to 25x at once. Everyone else like me, who lives with other ppl money, will be capped to 10x at once. I think 10 will be plenty without putting too much burden on the server.
Diffstat (limited to 'npc/craft/alchemy.txt')
-rw-r--r--npc/craft/alchemy.txt17
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;