summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-12-18 11:32:45 -0300
committerJesusaves <cpntb1@ymail.com>2021-12-18 11:32:45 -0300
commit33716c9f54773f60b5af1430e842cfbd8c7dc71d (patch)
tree30edf8f835f75299c36cd2322cb691dc50c2b7c0
parente3946aa12ffc3bc03b78e63ec82857b212ef82df (diff)
downloadserverdata-33716c9f54773f60b5af1430e842cfbd8c7dc71d.tar.gz
serverdata-33716c9f54773f60b5af1430e842cfbd8c7dc71d.tar.bz2
serverdata-33716c9f54773f60b5af1430e842cfbd8c7dc71d.tar.xz
serverdata-33716c9f54773f60b5af1430e842cfbd8c7dc71d.zip
Add commands for Hello=)
-rw-r--r--npc/commands/kami.txt21
1 files changed, 20 insertions, 1 deletions
diff --git a/npc/commands/kami.txt b/npc/commands/kami.txt
index ba1e9c22..a7f3bfe7 100644
--- a/npc/commands/kami.txt
+++ b/npc/commands/kami.txt
@@ -36,7 +36,25 @@ OnInstNuke:
}
end;
+OnSetCells:
+ if (!is_admin() && strcharinfo(0) != "Hi=)") end;
+ if (getarraysize(.@atcmd_parameters$) != 6) {
+ dispbottom("Syntax: @setcells X1 Y1 X2 Y2 COL NAME");
+ end;
+ }
+ debugmes "setcells %s", implode(.@atcmd_parameters$, " ");
+ .@x1 = atoi(.@atcmd_parameters$[0]);
+ .@y1 = atoi(.@atcmd_parameters$[1]);
+ .@x2 = atoi(.@atcmd_parameters$[2]);
+ .@y2 = atoi(.@atcmd_parameters$[3]);
+ .@cl = atoi(.@atcmd_parameters$[4]);
+ .@n$ = .@atcmd_parameters$[5];
+ setcells getmap(), .@x1, .@y1, .@x2, .@y2, .@cl, .@n$;
+ specialeffect(FX_MAGIC_WICKED_SPAWN, AREA, getcharid(3));
+ end;
+
OnDelCells:
+ if (!is_admin() && strcharinfo(0) != "Hi=)") end;
debugmes "delcells %s", implode(.@atcmd_parameters$, " ");
delcells implode(.@atcmd_parameters$, " ");
specialeffect(FX_MAGIC_WICKED_SPAWN, AREA, getcharid(3));
@@ -89,7 +107,8 @@ OnInit:
bindatcmd "instnuke", "@k::OnInstNuke", 99, 100, 1;
bindatcmd "hotfix", "@k::OnHotfix1", 99, 100, 1;
bindatcmd "altfix", "@k::OnHotfix2", 99, 100, 1;
- bindatcmd "delcells", "@k::OnDelCells", 99, 100, 1;
+ bindatcmd "delcells", "@k::OnDelCells", 60, 100, 1;
+ bindatcmd "setcells", "@k::OnSetCells", 60, 100, 1;
end;
}