summaryrefslogtreecommitdiff
path: root/npc/042-2
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-04-28 14:10:22 -0300
committerJesusaves <cpntb1@ymail.com>2020-04-28 14:10:22 -0300
commitc9ffeba0df480e472a053f29a374b6a56b1a50a7 (patch)
treef28ff714d1e9f94bce94517fc4af44e8d14ce78a /npc/042-2
parent558be6e0a9a4dc6dd8510cd7475ebb44629297a4 (diff)
downloadserverdata-c9ffeba0df480e472a053f29a374b6a56b1a50a7.tar.gz
serverdata-c9ffeba0df480e472a053f29a374b6a56b1a50a7.tar.bz2
serverdata-c9ffeba0df480e472a053f29a374b6a56b1a50a7.tar.xz
serverdata-c9ffeba0df480e472a053f29a374b6a56b1a50a7.zip
Ops
Diffstat (limited to 'npc/042-2')
-rw-r--r--npc/042-2/door.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/npc/042-2/door.txt b/npc/042-2/door.txt
index d663a063b..f04d4ef3f 100644
--- a/npc/042-2/door.txt
+++ b/npc/042-2/door.txt
@@ -22,11 +22,14 @@ OnKillBoss:
dispbottom l("You found a key.");
getitem TreasureKey, 1;
$KAMELOT_KEYMASK[.@g]=$KAMELOT_KEYMASK[.@g]|16;
- getitem GuildCoin, 1; // Reward for completing this stage
+ // Reward for completing this stage
+ getitem GuildCoin, min(1, $KAMELOT_MX[.@g]/20);
$GUILD_BANK[.@g]+=500;
.@gxp=$KAMELOT_MX[.@g]*5;
guildgetexp(.@gxp); // 5xp per player average level (max 500/750)
+ // Announce
mapannounce getmap(), strcharinfo(0)+" has found the key for the door!", 0;
+ // Guild Master Notification
.@gm$=getguildmaster(.@g);
if (!getcharid(3, .@gm$)) end;
.@gma=getcharid(3, .@gm$);