summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/042-10/ctrl.txt17
1 files changed, 13 insertions, 4 deletions
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)