From 33716c9f54773f60b5af1430e842cfbd8c7dc71d Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 18 Dec 2021 11:32:45 -0300 Subject: Add commands for Hello=) --- npc/commands/kami.txt | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3-60-g2f50