diff options
Diffstat (limited to 'npc/042-10/ctrl.txt')
-rw-r--r-- | npc/042-10/ctrl.txt | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/npc/042-10/ctrl.txt b/npc/042-10/ctrl.txt index a2a4b27d7..a92d11b92 100644 --- a/npc/042-10/ctrl.txt +++ b/npc/042-10/ctrl.txt @@ -158,9 +158,28 @@ function script KatazuliCore { if (is_staff() && $@GM_OVERRIDE) dispbottom l("[DEBUG] Current Power: %d", .@power); - // TODO: Circle was shut down + // Circle was shut down (give rewards if appropriate) if (.@power >= 300) { - // TODO + if ($KAMELOT_QUEST[.@g] & .@id) end; + $KAMELOT_QUEST[.@g]=$KAMELOT_QUEST[.@g]|.@id; + unittalk(getcharid(3), "We did it! The seal is now broken!", true); + // Player Reward for completing this stage + getitem GuildCoin, 1; + getexp $KAMELOT_MX[.@g]*50, $KAMELOT_MX[.@g]*10; + // Guild Reward for completing this stage + .@ggp=1200+$KAMELOT_MX[.@g]*10; + .@gxp=$KAMELOT_MX[.@g]*25; + $GUILD_BANK[.@g]+=.@ggp; + guildgetexp(.@gxp); // 25xp per player average level (max 2500/3750) + // Announce + mapannounce getmap(), strcharinfo(0)+" has broken a magic seal!", 0; + // Guild Master Notification + .@gm$=getguildmaster(.@g); + if (!getcharid(3, .@gm$)) return; + .@gma=getcharid(3, .@gm$); + .@gmb=getcharid(0, .@gm$); + if (!isloggedin(.@gma, .@gmb)) return; + message .@gm$, strcharinfo(0)+" broke a magic seal: Guild GP +"+.@ggp+" Guild XP +"+.@gxp; end; } |