From 8cd4d7061a431b5386d91e3c9af950017daa0688 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 1 May 2020 08:24:10 -0300 Subject: This allows you to break seals, but not to obtain Dark Petals --- npc/042-10/ctrl.txt | 23 +++++++++++++++++++++-- 1 file 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; } -- cgit v1.2.3-70-g09d2