summaryrefslogtreecommitdiff
path: root/npc/commands
diff options
context:
space:
mode:
authorjesusalva <cpntb1@ymail.com>2018-02-15 14:26:54 -0200
committerjesusalva <cpntb1@ymail.com>2018-02-15 14:26:54 -0200
commit282e0c052971413c47392f53b47f970c05da0440 (patch)
treecd998529df21410fb2fd9ba3c1ca6018bd477ba8 /npc/commands
parent52d67d3ae1f6151c6582fa34f4e0caf90a0d17b7 (diff)
downloadserverdata-282e0c052971413c47392f53b47f970c05da0440.tar.gz
serverdata-282e0c052971413c47392f53b47f970c05da0440.tar.bz2
serverdata-282e0c052971413c47392f53b47f970c05da0440.tar.xz
serverdata-282e0c052971413c47392f53b47f970c05da0440.zip
Prevent @Crazyfefe from crashing server with #itenplz. I hope.
Diffstat (limited to 'npc/commands')
-rw-r--r--npc/commands/debug-look.txt2
-rw-r--r--npc/commands/debug-preset.txt3
-rw-r--r--npc/commands/debug-skill.txt2
-rw-r--r--npc/commands/debug.txt2
-rw-r--r--npc/commands/magic.txt32
5 files changed, 37 insertions, 4 deletions
diff --git a/npc/commands/debug-look.txt b/npc/commands/debug-look.txt
index af6a099cc..d2abec492 100644
--- a/npc/commands/debug-look.txt
+++ b/npc/commands/debug-look.txt
@@ -98,5 +98,5 @@ OnCall:
end;
OnInit:
- bindatcmd "look", "@look::OnCall", 0, 99, 0;
+ bindatcmd "look", "@look::OnCall", 99, 99, 0;
}
diff --git a/npc/commands/debug-preset.txt b/npc/commands/debug-preset.txt
index 40f612614..92d9314b8 100644
--- a/npc/commands/debug-preset.txt
+++ b/npc/commands/debug-preset.txt
@@ -13,6 +13,7 @@
//
// ^ actual documentation may come one day, when I feel like it
// *hides*
+// Note from Jesusalva: I do not trust this script works well for TMW2.
function script DoRoutine {
@@ -242,5 +243,5 @@ OnCall:
end;
OnInit:
- bindatcmd "pre", "@pre::OnCall", 0, 99, 0;
+ bindatcmd "pre", "@pre::OnCall", 99, 99, 1;
}
diff --git a/npc/commands/debug-skill.txt b/npc/commands/debug-skill.txt
index 2ad9859f7..acfbbf709 100644
--- a/npc/commands/debug-skill.txt
+++ b/npc/commands/debug-skill.txt
@@ -77,5 +77,5 @@ OnCall:
end;
OnInit:
- bindatcmd "sdebug", "@sdebug::OnCall", 0, 99, 1;
+ bindatcmd "sdebug", "@sdebug::OnCall", 99, 99, 1;
}
diff --git a/npc/commands/debug.txt b/npc/commands/debug.txt
index f65be4854..4d04cb99a 100644
--- a/npc/commands/debug.txt
+++ b/npc/commands/debug.txt
@@ -138,6 +138,6 @@ OnCall:
end;
OnInit:
- bindatcmd "debug", "@debug::OnCall", 0, 99, 1;
+ bindatcmd "debug", "@debug::OnCall", 99, 99, 1;
// TODO / FIXME: add a @test command that opens the help window for test-server
}
diff --git a/npc/commands/magic.txt b/npc/commands/magic.txt
new file mode 100644
index 000000000..d63bf70a7
--- /dev/null
+++ b/npc/commands/magic.txt
@@ -0,0 +1,32 @@
+function script MagicIsDead {
+
+ setnpcdialogtitle l("We regret to inform...");
+ mes l("Magic is dead!");
+ next;
+ mes "";
+ mes l("You are staff, so no complaining! Go do it yourself!");
+ next;
+ return;
+}
+
+
+
+- script @MagicIsDead 32767,{
+ end;
+
+OnCall:
+ MagicIsDead;
+ closedialog;
+ end;
+
+OnInit:
+ bindatcmd "itenplz", "@MagicIsDead::OnCall", 100, 1, 0;
+ bindatcmd "lum", "@MagicIsDead::OnCall", 100, 1, 0;
+ bindatcmd "chiza", "@MagicIsDead::OnCall", 100, 1, 0;
+ bindatcmd "ingrav", "@MagicIsDead::OnCall", 100, 1, 0;
+ bindatcmd "frillyar", "@MagicIsDead::OnCall", 100, 1, 0;
+ bindatcmd "upmarmu", "@MagicIsDead::OnCall", 100, 1, 0;
+ bindatcmd "flar", "@MagicIsDead::OnCall", 100, 1, 0;
+
+
+}