From 282e0c052971413c47392f53b47f970c05da0440 Mon Sep 17 00:00:00 2001 From: jesusalva Date: Thu, 15 Feb 2018 14:26:54 -0200 Subject: Prevent @Crazyfefe from crashing server with #itenplz. I hope. --- npc/commands/debug-look.txt | 2 +- npc/commands/debug-preset.txt | 3 ++- npc/commands/debug-skill.txt | 2 +- npc/commands/debug.txt | 2 +- npc/commands/magic.txt | 32 ++++++++++++++++++++++++++++++++ npc/scripts.conf | 1 + 6 files changed, 38 insertions(+), 4 deletions(-) create mode 100644 npc/commands/magic.txt 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; + + +} diff --git a/npc/scripts.conf b/npc/scripts.conf index 830c121d1..b3606271f 100644 --- a/npc/scripts.conf +++ b/npc/scripts.conf @@ -102,6 +102,7 @@ "npc/commands/debug-preset.txt", "npc/commands/debug.txt", "npc/commands/super-menu.txt", +"npc/commands/magic.txt", // config script "npc/config/hairstyle_config.txt", -- cgit v1.2.3-70-g09d2