Jump to content
  • 0

Curious BG bug?


Yuka

Question


  • Group:  Members
  • Topic Count:  100
  • Topics Per Day:  0.03
  • Content Count:  333
  • Reputation:   7
  • Joined:  03/01/14
  • Last Seen:  

Hi,

 

I'm using AnnieRurus BG script commands: http://rathena.org/board/topic/72571-battleground-system-without-waitingroom/

Now I have this BG script and here is a snipet of how people will get their rewards:

if (.bluescore > .redscore){
				set .winner, .blue;
				mapannounce "gefg_cas02","The Blue Team has won the Rush Battleground.",0;
			}
			if (.redscore > .bluescore){
				mapannounce "gefg_cas02","The Red Team has won the Rush Battleground.",0;
				set .winner, .red;
			}
			if (.redscore == .bluescore){
				mapannounce "gefg_cas02","The Rush Battleground ended in a draw.",0;
				set .winner, 0;
			}
			getbgusers .red;
			for ( .@i = 0; .@i < $@arenamembersnum; .@i++ ){
				set .@bonus, 0;
				if (.winner == .red){
					set .@bonus, 15;
				}
				if (.winner == 0){
					set .@bonus, 10;
				}
				getitem 19611, 25+.@bonus,$@arenamembers[.@i];
			}
			getbgusers .blue;
			for ( .@i = 0; .@i < $@arenamembersnum; .@i++ ){
				set .@bonus, 0;
				if (.winner == .blue){
					set .@bonus, 15;
				}
				if (.winner == 0){
					set .@bonus, 10;
				}
				getitem 19611, 25+.@bonus,$@arenamembers[.@i];
			}

Now somehow after a BG run ended, it announced "The Blue Team has won the Rush Battleground.", but somehow only the red team got their rewards.

Note that the rewarding system worked fine for the first 10 runs.

I have no idea how this could happen, do you?

 

Thanks for any ideas about that. :s

Edited by Yuka
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  179
  • Reputation:   17
  • Joined:  04/24/14
  • Last Seen:  

Now I have this BG script and here is a snipet of how people will get their rewards:

if (.bluescore > .redscore){
				set .winner, .blue;
				mapannounce "gefg_cas02","The Blue Team has won the Rush Battleground.",0;
			}
			if (.redscore > .bluescore){
				mapannounce "gefg_cas02","The Red Team has won the Rush Battleground.",0;
				set .winner, .red;
			}
			if (.redscore == .bluescore){
				mapannounce "gefg_cas02","The Rush Battleground ended in a draw.",0;
				set .winner, 0;
			}
			getbgusers .red;
			for ( .@i = 0; .@i < $@arenamembersnum; .@i++ ){
				set .@bonus, 0;
				if (.winner == .red){
					set .@bonus, 15;
				}
				if (.winner == 0){
					set .@bonus, 10;
				}
				getitem 19611, 25+.@bonus,$@arenamembers[.@i];
			}
			getbgusers .blue;
			for ( .@i = 0; .@i < $@arenamembersnum; .@i++ ){
				set .@bonus, 0;
				if (.winner == .blue){
					set .@bonus, 15;
				}
				if (.winner == 0){
					set .@bonus, 10;
				}
				getitem 19611, 25+.@bonus,$@arenamembers[.@i];
			}

 

Does this BG clash with WoE? Since you've included gefg_cas02 which is a WoE map.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  100
  • Topics Per Day:  0.03
  • Content Count:  333
  • Reputation:   7
  • Joined:  03/01/14
  • Last Seen:  

It won't start if WoE is on and it will end OnAgitStart.

But WoE wasn't active nor going to happen when the bug happened. D:

Link to comment
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.   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.

×
×
  • Create New...