Jump to content
  • 0

Annieruru Custom BG


Question

Posted

Hi Miss  AnnieRuru what I want is
• automatically announce for evey 2 hrs
• They need to register in npc in 5 minutes
• after 5 minutes if the team is not equal the game will still start

sorry for my bad english

 

8 answers to this question

Recommended Posts

Posted (edited)

just to be sure, do you want the team creation to be randomize ?

I can also make this script runs only 1 waitingroom, then randomize the team creation

player couldn't able to decide to go into which team, the script randomize that

Edited by AnnieRuru
  • Upvote 1
Posted (edited)

try this

EDIT: fixed the 5 minute to join inside config

[paste=29oz1mkt0846]

I've also included the GM can manually on/off the event,

well ... I did it because of debug purpose =/

Edited by AnnieRuru
  • Upvote 1
Posted

Aaaaaaaaaaaaaaaaaaaaaaaawesome!  /thx  /thx  /thx

but still they can choose red team and blue team npc
is it possible only 1 npc then for choosing the red and blue team is randomize?
Thank you very much  @Miss AnnieRuru  /thx 




 

Posted (edited)

source modification

http://rathena.org/board/topic/72571-battleground-system-without-waitingroom/

shuffle algorithm

function	script	rand__	{
	.@range = getarg(0);
	.@count = getarg(2, 0);
	if ( !.@count || .@count > .@range )
		.@count = .@range;
	else if ( .@count > 128 )
		.@count = 128;
	while ( .@i < .@count ) {
		.@r = .@save = rand( .@i, .@range -1 ) ;
		if ( !getd( ".@tmp1_"+ .@i ) ) {
			.@r = ( getd(".@tmp1_"+ .@r ) )? getd( ".@tmp2_"+ .@r ) : .@r;
			setd ".@tmp2_"+ .@i, .@r;
			setd ".@tmp2_"+ .@save , .@i;
			setd ".@tmp1_"+ .@save , 1;
			set getelementofarray( getarg(1), .@i ), .@r;
			if ( .@save < .@count )
				set getelementofarray( getarg(1), .@save ), .@i;
		}
		.@i++;
	}
	return .@count;
}
and the script

http://rathena.org/board/pastebin/7a7lip0krpeq/

though next time, better PM me on hercules forum

because I seldom visit this forum already

EDIT:

please change line 77

callfunc "rand__", .minplayer2start, $@rand;
into
callfunc "rand__", $@arenamembersnum, $@rand;
Edited by AnnieRuru

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.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...