Jump to content
  • 0

BG Emperium Type Help


Nokia

Question


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  150
  • Reputation:   5
  • Joined:  12/28/11
  • Last Seen:  

Hey,

 

can someone add a function: The loser team will also get a reward?

 

i just dont get it.

 

bg_emp_0.0.txt

Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

try this

http://pastebin.com/raw.php?i=T6eU8m9j

	if ( .winside ) {
		mapannounce "bat_c01", "[ "+( ( .winside == 1 )?"Red":"Blue" )+" Team] won !", 0;
		// Winner Rewards.
		getbgusers ( .winside == 1 )? .red : .blue;
		for ( .@i = 0; .@i < $@arenamembersnum; .@i++ )
			getitem .rewarditem[0], .rewarditem[1], $@arenamembers[.@i]; // item reward
			
		// Loser Rewards.
		getbgusers ( .winside == 1 )? .blue : .red;
		for ( .@i = 0; .@i < $@arenamembersnum; .@i++ )
			getitem .rewarditem[0], .rewarditem[1], $@arenamembers[.@i]; // item reward
	} else
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  150
  • Reputation:   5
  • Joined:  12/28/11
  • Last Seen:  

thanks it works :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  1302
  • Reputation:   77
  • Joined:  12/04/12
  • Last Seen:  

please help me. i get this problem..

 

[Error]:  Loading NPC file: npc/1.test/simplebg.txt
script error on npc/1.test/simplebg.txt line 8
    parse_line: expect command, missing function name or calling undeclared func
tion
     3 : OnStart:
     4 :        getmapxy .@map$, .@x, .@y, 1;
     5 :        warpwaitingpc .@map$, .@x, .@y;
     6 :        callfunc "rand__", .minplayer2start *2, $@rand;
     7 :        for ( .@i = 0; .@i < $@warpwaitingpcnum; .@i++ )
*    8 :                's'etbgid ( .@i % 2 )? .red : .blue, $@warpwaitingpc[ $@
rand[.@i] ];
     9 :        delwaitingroom strnpcinfo(0);
    10 :        bg_warp .red, "bat_c01", 50,124;
    11 :        bg_warp .blue, "bat_c01", 149,59;
    12 :        setwall "bat_c01",54,122,6,7,0,"batc01wall_a";
    13 :        setwall "bat_c01",55,122,5,7,0,"batc01wall_b";
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

setbgid is a custom command made by AnnieRuru

Topic

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  1302
  • Reputation:   77
  • Joined:  12/04/12
  • Last Seen:  

setbgid is a custom command made by AnnieRuru

Topic

 

i have patch. but i cant use it. hmm :(

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  150
  • Reputation:   5
  • Joined:  12/28/11
  • Last Seen:  

Can i ask for another function?

 

actually If the bg starts, the waitingroom will be deleted, so how about creating a new waitingroom for users to join an running game?

 

example:

 

- all users joined and the round starts

- the chatroom will be deleted and a new one appears

- the new chatroom have to check how many players are inside, if the limit is reached no one can join the running game

- like.. to start the round you need 3 players, but the limit is set to 6, so after the round starts another 3 players can join

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