From 4b654ae965eacc92bafe042383ff380041e81d98 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 29 Mar 2019 00:58:02 -0300 Subject: Implement @botcheck for public --- localserver/npc/botcheck_blackbox.txt | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/localserver/npc/botcheck_blackbox.txt b/localserver/npc/botcheck_blackbox.txt index b2edfe4..b11050e 100644 --- a/localserver/npc/botcheck_blackbox.txt +++ b/localserver/npc/botcheck_blackbox.txt @@ -4,5 +4,32 @@ // Description: // Bot check area configuration, measures, utilitaries, // and various configuration files to prevent bots. - // You must fill this file manually, or don't file it at all. + +botcheck,37,41,0 script Bot Master NPC_ELMO,{ + if (!is_staff()) + end; + mesc l("This file must be requested due not being public."), 1; + mesc l("Too many evil bots out there %%e They can't learn this!"), 1; + close; + +OnCall: + if (getmap() ~= "botcheck") { + if (@bck_map$ != "") + warp @bck_map$, @bck_x, @bck_y; + else + warp "Save", 0, 0; + dispbottom l("You passed the botcheck. Thanks for playing the game %%G"); + end; + } + getmapxy(@bck_map$, @bck_x, @bck_y, 0); + warp "botcheck", 38, 40; + dispbottom l("BOTCHECK: You are on botcheck area. DO NOT attack or collect items until given the order."); + end; + +OnInit: + bindatcmd "botcheck", "Bot Master::OnCall", 60, 60, 1; + end; + +} + -- cgit v1.2.3-70-g09d2