diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-05-01 08:24:10 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-05-01 08:24:10 -0300 |
commit | 8cd4d7061a431b5386d91e3c9af950017daa0688 (patch) | |
tree | 33abc1a3aea85941e4c6aeeeece27a2d042f4461 /npc/042-10/ctrl.txt | |
parent | 246ea7f358d3a7331a03f8667f81dd5c05445676 (diff) | |
download | serverdata-8cd4d7061a431b5386d91e3c9af950017daa0688.tar.gz serverdata-8cd4d7061a431b5386d91e3c9af950017daa0688.tar.bz2 serverdata-8cd4d7061a431b5386d91e3c9af950017daa0688.tar.xz serverdata-8cd4d7061a431b5386d91e3c9af950017daa0688.zip |
This allows you to break seals, but not to obtain Dark Petals
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; } |