Official BG system

canditw

New member
Messages
78
Points
0
Is there any scripts of the actual bg where all the npc are joined into one? So players dont have to go to individual bg's npc to register or join.

 
I don't think so.. If you want the original Battlegrounds but less walking from one NPC to another, you could just move them closer to each other. I did this once. I moved the NPC's where you sign up and the NPC's where you go into the chats next to each other in a different map. Like this: 

WMxnn5B.jpg
You have to change a few things though like where players spawn for example. 
I hope this helped somehow, if not at least inspired you o//o 

Edit: The map was made by Chemical Crush. 

 
Last edited by a moderator:
Does anyone know which lines I need to edit to change it from Default 10v10 to 5v5 or 3v3 in the bg file?

I've tried editing, but it still doesnt work start once the rooms are full with 5v5

 

bat_room,86,227,4 script Lieutenant Ator 4_M_KY_KNT,{
end;
OnInit:
waitingroom "Battle Station",6,"start#bat_b01::OnReadyCheck",1,0,80;
end;
OnEnterBG:
$@FlaviusBG1_id1 = waitingroom2bg("bat_b01",10,290,"start#bat_b01::OnGuillaumeQuit","");
end;
}

bat_room,85,204,0 script Lieutenant Thelokus 4_M_CRU_KNT,{
end;
OnInit:
waitingroom "Battle Station",6,"start#bat_b01::OnReadyCheck",1,0,80;
end;
OnEnterBG:
$@FlaviusBG1_id2 = waitingroom2bg("bat_b01",390,10,"start#bat_b01::OnCroixQuit","");
end;
}



and

Code:
OnReadyCheck:
	if( $@FlaviusBG1 )
		end;
	.@Guillaume = getwaitingroomstate(0,"Lieutenant Ator");
	.@[member=Croix] = getwaitingroomstate(0,"Lieutenant Thelokus");
	if( !.@Guillaume && !.@[member="Croix"] ) {
		donpcevent "#bat_b01_timer::OnStop";
		end;
	}
	if( .@Guillaume < 5 || .@[member=Croix] < 5 )
		end;
	$@FlaviusBG1 = 1;
	$@FlaviusBG1_Victory = 0;
	$@[member="Croix"]_ScoreBG1 = 0;
	$@Guill_ScoreBG1 = 0;
	bg_updatescore "bat_b01",$@Guill_ScoreBG1,$@[member="Croix"]_ScoreBG1;
 
Last edited by a moderator:
you need to change it for both waitingrooms
default_smile.png


 
I've tried changing both waiting room from 11 to 6 but it still doesn't warp the players once it is full. Am I missing some edits elsewhere?

 
Are your NPC's all on the same maps as before or did you move any of them to a new map? It's been 3 years when I changed all of it but I think I recall a problem with the map switch. If anything I can try to check if I have a backup of my old files and upload it somewhere but no promises.

 
Last edited by a moderator:
@@Daifuku I've duplicated them onto a new map but I'll try the original map first. Thank you


EDIT:
Yes like daifuku said switching the map is the problem here, the original map works fine but how do I make it available on another map?

 
Last edited by a moderator:
@@Daifuku I've duplicated them onto a new map but I'll try the original map first. Thank you

EDIT:

Yes like daifuku said switching the map is the problem here, the original map works fine but how do I make it available on another map?
I think it had a check somewhere if the player was on the map, otherwise it wouldn't warp to the prepare/waiting room or battle maps. But as I mentioned earlier, it's been so long @@; Check for warps where the player gets warped to another map and change it until you find the right one. 

 
Back
Top