Jump to content
  • 0

Can u help me put automatic prize in this script


Question

2 answers to this question

Recommended Posts

Posted

it seems his script using both waitingroom2bg and waitingroom2bg_single command,

if using array can become very complicated

think the easiest way is add in my getbgusers command which can be found here

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

then change

	if(.point[1]>.point[2])
{
	Announce "[battle Ground]:Team A Win!",0;
}else if(.point[2]>.point[1])
{
	Announce "[battle Ground]:Team B Win!",0;
}else
{
	Announce "[battle Ground]:Draw!",0;
}

into

	if(.point[1]>.point[2])
{
	Announce "[battle Ground]:Team A Win!",0;
	getbgusers $@bg_id_a;
	for ( .@i = 0; .@i < $@arenamembersnum; .@i++ )
		getitem 501, 1, $@arenamembers[.@i];
}else if(.point[2]>.point[1])
{
	Announce "[battle Ground]:Team B Win!",0;
	getbgusers $@bg_id_b;
	for ( .@i = 0; .@i < $@arenamembersnum; .@i++ )
		getitem 501, 1, $@arenamembers[.@i];
}else
{
	Announce "[battle Ground]:Draw!",0;
}

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