- script npc_main -1,{ OnStart: if ( getwaitingroomstate( 0, "npc#1" ) == 1 && getwaitingroomstate( 0, "npc#2" ) == 1 ){ set .bg_team_one,waitingroom2bg( "prontera",150,181,"npc_main::OnQuit","npc_main::OnDied","npc#1" ); set .bg_team_two,waitingroom2bg( "prontera",160,181,"npc_main::OnQuit","npc_main::OnDied","npc#2" ); bg_warp .bg_team_one,"prontera",150,181; bg_warp .bg_team_two,"prontera",160,181; announce "Warped both BG Team.",0; } end; OnQuit: OnDied: end; } prontera,155,181,5 script Sample#leavebg 757,{ if( getcharid(4) ){ npctalk strcharinfo(0)+" leaved battle group."; bg_leave; } end; } prontera,150,182,5 script npc#1 100,{ end; OnInit: waitingroom "team 1",2,"npc_main::OnStart",1; end; } prontera,160,182,5 script npc#2 100,{ end; OnInit: waitingroom "team 2",2,"npc_main::OnStart",1; end; }