From 29be22da9a67918fa7fb8e00b292ac9999512ebe Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 26 Dec 2021 08:46:40 -0300 Subject: The new battleground wrappers are AMAZING. I can now use BG System without the hurdle of waiting rooms. --- npc/001-1/bgmaster.txt | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'npc/001-1') diff --git a/npc/001-1/bgmaster.txt b/npc/001-1/bgmaster.txt index 2fe4f8b04..5087b7665 100644 --- a/npc/001-1/bgmaster.txt +++ b/npc/001-1/bgmaster.txt @@ -37,7 +37,8 @@ L_Control: menu l("Introduce"), L_Intro, rif($@BGMaster1 != 1 && is_gm(),l("Enable BG")), L_On, - l("Disable BG"), L_Off; + l("Disable BG"), L_Off, + rif(is_admin(), l("Solo Try")), L_Beta; L_On: mes ""; @@ -177,6 +178,26 @@ OnDoEvent: bg_monster($@FK_Team2, "001-2",rand(142, 145), rand(37, 80), "Halinarzo Guard", FallenGuard2, "Cassia::OnSkip"); initnpctimer(); end; + +L_Beta: + $@BGMaster1 = 1; + + $@FK_Team1 = bgnew("001-2",rand(105, 108), rand(37, 80),"start#bat_a02::OnSide1Quit",""); + $@FK_Team2 = bgnew("001-2",rand(142, 145), rand(37, 80),"start#bat_a02::OnSide2Quit",""); + + debugmes "FK Team 1 (%d) Team 2 (%d)", $@FK_Team1, $@FK_Team2; + .@i = bgjoin($@FK_Team1, "001-2", rand(105, 108), rand(37, 80), getcharid(3)); + debugmes "Result: %d", .@i; + + setbgteam $@FK_Team1, 1; + setbgteam $@FK_Team2, 2; + + //bg_warp $@FK_Team1,"001-2",rand(105, 108), rand(37, 80); + //bg_warp $@FK_Team2,"001-2",rand(142, 145), rand(37, 80); + + donpcevent "Cassia::OnDoEvent"; + //initnpctimer; + end; } -- cgit v1.2.3-60-g2f50