From 22e8f5793a870c10c687b01a7d8d88de121cb881 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 2 May 2020 02:45:45 -0300 Subject: Katazuli is now less spammy. --- npc/042-10/ctrl.txt | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'npc/042-10/ctrl.txt') diff --git a/npc/042-10/ctrl.txt b/npc/042-10/ctrl.txt index c65a0ebbb..0cea4e0a7 100644 --- a/npc/042-10/ctrl.txt +++ b/npc/042-10/ctrl.txt @@ -130,6 +130,10 @@ function script KatazuliCore { if (!.@start && @katazuli <= gettimetick(2)) end; + // We should give a message + if (.@start) + @kataspam=0; + // All checks passed: KATAZULI specialeffect FX_MGSHIELD, AREA, getcharid(3); // Temporary FX @@ -144,14 +148,19 @@ function script KatazuliCore { setd("$@GTEMP_"+.@id+"_"+.@m$, .@power); // Inform new status - if (.@power < 5 && .@start) + if (.@power < 5 && @kataspam != 1) { unittalk(getcharid(3), "This circle is nearly at full power! We need to shut down it!", true); - else if (.@power < 100) + @kataspam=1; + } else if (.@power < 100 && @kataspam != 2) { unittalk(getcharid(3), "There is still too much power! Please drop "+getitemlink(DarkPetal)+" nearby!", true); - else if (.@power < 200) + @kataspam=2; + } else if (.@power < 200 && @kataspam != 3) { unittalk(getcharid(3), "At this rate, we will do it! Keep going! Please drop "+getitemlink(DarkPetal)+" nearby!", true); - else if (.@power < 300) + @kataspam=3; + } else if (.@power < 300 && @kataspam != 4) { unittalk(getcharid(3), "Guys I'm close to shut it down! Please drop "+getitemlink(DarkPetal)+" nearby!", true); + @kataspam=4; + } // Debug Information if (is_staff() && $@GM_OVERRIDE) -- cgit v1.2.3-60-g2f50