summaryrefslogtreecommitdiff
path: root/npc/functions
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
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')
-rw-r--r--npc/functions/craft/alchemy.txt6
-rw-r--r--npc/functions/guild.txt2
2 files changed, 6 insertions, 2 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";
diff --git a/npc/functions/guild.txt b/npc/functions/guild.txt
index 09422946d..6b9d95299 100644
--- a/npc/functions/guild.txt
+++ b/npc/functions/guild.txt
@@ -14,7 +14,7 @@ function script getguildrole {
.@pos=-1;
getguildmember(.@gid, 2);
for (.@i=0; .@i < $@guildmembercount; .@i++) {
- debugmes "Found AID %d - Position %d", $@guildmemberaid[.@i], $@guildmemberpos[.@i];
+ //debugmes "Found AID %d - Position %d", $@guildmemberaid[.@i], $@guildmemberpos[.@i];
if (.@aid == $@guildmemberaid[.@i]) {
.@pos=$@guildmemberpos[.@i];
break;