summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-05-02 02:45:45 -0300
committerJesusaves <cpntb1@ymail.com>2020-05-02 02:45:45 -0300
commit22e8f5793a870c10c687b01a7d8d88de121cb881 (patch)
treea74e18c9d44bc2b8cd18a391363b7e2c6f0e35a0
parentfae2c31992c2be878ab9f0c3eed509ecdf4beb55 (diff)
downloadserverdata-22e8f5793a870c10c687b01a7d8d88de121cb881.tar.gz
serverdata-22e8f5793a870c10c687b01a7d8d88de121cb881.tar.bz2
serverdata-22e8f5793a870c10c687b01a7d8d88de121cb881.tar.xz
serverdata-22e8f5793a870c10c687b01a7d8d88de121cb881.zip
Katazuli is now less spammy.
-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)