diff options
Diffstat (limited to 'npc/functions/craft/alchemy.txt')
-rw-r--r-- | npc/functions/craft/alchemy.txt | 6 |
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"; |