viewing paste bg bug report usage | Athena

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
 
 
-   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;
}
 
Viewed 1086 times, submitted by Emistry.