Jump to content
  • 0
canditw

Official BG system

Question

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.

Share this post


Link to post
Share on other sites

9 answers to this question

Recommended Posts

  • 0

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. 

Share this post


Link to post
Share on other sites
  • 0

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

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;

Edited by canditw

Share this post


Link to post
Share on other sites
  • 0

you need to change it for both waitingrooms :)

Share this post


Link to post
Share on other sites
  • 0

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.

Share this post


Link to post
Share on other sites
  • 0

@@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?

Edited by canditw

Share this post


Link to post
Share on other sites
  • 0

@@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. 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.