summaryrefslogtreecommitdiff
path: root/npc/functions/craft/alchemy.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-04-15 13:37:29 -0300
committerJesusaves <cpntb1@ymail.com>2019-04-15 13:37:29 -0300
commit1bb7efd20540844d55d364306a5c1259745988e6 (patch)
treebe1182e833d2000210ffd9c322e17030a3a37dd6 /npc/functions/craft/alchemy.txt
parent9a488498e0462b92512266d8bff9a973bfca85a7 (diff)
downloadserverdata-1bb7efd20540844d55d364306a5c1259745988e6.tar.gz
serverdata-1bb7efd20540844d55d364306a5c1259745988e6.tar.bz2
serverdata-1bb7efd20540844d55d364306a5c1259745988e6.tar.xz
serverdata-1bb7efd20540844d55d364306a5c1259745988e6.zip
Rewrite the Guild Alchemy System in a way which works (but is MESSY)
Diffstat (limited to 'npc/functions/craft/alchemy.txt')
-rw-r--r--npc/functions/craft/alchemy.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/npc/functions/craft/alchemy.txt b/npc/functions/craft/alchemy.txt
index b76db43fd..e23416596 100644
--- a/npc/functions/craft/alchemy.txt
+++ b/npc/functions/craft/alchemy.txt
@@ -14,9 +14,13 @@ function script AlchemySystem {
// Set .scope, .knowledge and .success
.scope=getarg(0, CRAFT_PLAYER);
if (.scope == CRAFT_PLAYER)
+ {
copyarray(.knowledge,RECIPES_ALCHEMY,getarraysize(RECIPES_ALCHEMY));
+ }
else if (.scope == CRAFT_GUILD)
- copyarray(.knowledge,$RECIPES_ALCHEMY[getcharid(2)],getarraysize($RECIPES_ALCHEMY[getcharid(2)]));
+ {
+ copyarray( .knowledge,getd("$RECIPES_ALCHEMY_"+getcharid(2)),getarraysize(getd("$RECIPES_ALCHEMY_"+getcharid(2))) );
+ }
.success=false;
setskin "craft2";