From b7e223c55e272e99cd0a01a60979e3e79a888f62 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 26 Apr 2019 00:50:51 -0300 Subject: Game Storyline Interface, past event transitions accounted! --- npc/commands/kami.txt | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) (limited to 'npc/commands') diff --git a/npc/commands/kami.txt b/npc/commands/kami.txt index fa17bc442..a9ff6656d 100644 --- a/npc/commands/kami.txt +++ b/npc/commands/kami.txt @@ -30,3 +30,46 @@ OnInit: bindatcmd "k", "@k::OnCall", 80, 80, 1; bindatcmd "servmsg", "@k::OnServMsg", 99, 99, 1; } + +// kamibroadcast( message{, sender} ) +function script kamibroadcast { + .@msg$=getarg(0); + .@snd$=getarg(1, ""); + + // Send to #world + if (.@snd$ == "") + channelmes("#world", .@msg$); + else + channelmes("#world", "[ "+.@snd$+" ] : "+.@msg$); + + // Make an announce + if (.@snd$ == "") + announce .@msg$, bc_all|bc_npc; + else + announce .@snd$+": "+.@msg$, bc_all|bc_npc; + + return; +} + +// Required for GM use in 2019-04-27 +- script @mkdbg 32767,{ + end; +OnMsg1to2: + detachrid(); + // Game Story Change: Idle MK -> Active MK + kamibroadcast("I can't handle it anymore! NO MORE!", "Monster King"); + sleep(2500); + kamibroadcast("Come, my minions! Lay siege to towns! LEAVE NO OPPOSITION TO ME!", "Monster King"); + sleep(2500); + kamibroadcast("Burn, destroy, do whatever you need, until your last breath, my lieutenants and colonels!", "Monster King"); + sleep(2500); + kamibroadcast("##4 .:: Game Story Instructions on #world ::."); + channelmes("#world", "##1 **GAME STORY CHANGE** - The Monster King minions will now attack cities and lay waste to them."); + channelmes("#world", "##1 Players must defeat the lieutenants and colonels in order to prevent sieges from continuing."); + end; + +OnInit: + bindatcmd "mkdbgjesus", "@mkdbg::OnMsg1to2", 99, 100, 0; + end; +} + -- cgit v1.2.3-70-g09d2