Nokia Posted March 31, 2013 Group: Members Topic Count: 43 Topics Per Day: 0.01 Content Count: 150 Reputation: 5 Joined: 12/28/11 Last Seen: May 10, 2013 Share Posted March 31, 2013 Hey, can someone add a function: The loser team will also get a reward? i just dont get it. bg_emp_0.0.txt Quote Link to comment Share on other sites More sharing options...
Emistry Posted March 31, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted March 31, 2013 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 Quote Link to comment Share on other sites More sharing options...
Nokia Posted March 31, 2013 Group: Members Topic Count: 43 Topics Per Day: 0.01 Content Count: 150 Reputation: 5 Joined: 12/28/11 Last Seen: May 10, 2013 Author Share Posted March 31, 2013 thanks it works Quote Link to comment Share on other sites More sharing options...
mrlongshen Posted March 31, 2013 Group: Members Topic Count: 98 Topics Per Day: 0.02 Content Count: 1302 Reputation: 79 Joined: 12/04/12 Last Seen: September 26, 2019 Share Posted March 31, 2013 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"; Quote Link to comment Share on other sites More sharing options...
Capuche Posted March 31, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted March 31, 2013 setbgid is a custom command made by AnnieRuru Topic Quote Link to comment Share on other sites More sharing options...
mrlongshen Posted March 31, 2013 Group: Members Topic Count: 98 Topics Per Day: 0.02 Content Count: 1302 Reputation: 79 Joined: 12/04/12 Last Seen: September 26, 2019 Share Posted March 31, 2013 setbgid is a custom command made by AnnieRuru Topic i have patch. but i cant use it. hmm Quote Link to comment Share on other sites More sharing options...
Nokia Posted April 1, 2013 Group: Members Topic Count: 43 Topics Per Day: 0.01 Content Count: 150 Reputation: 5 Joined: 12/28/11 Last Seen: May 10, 2013 Author Share Posted April 1, 2013 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 Quote Link to comment Share on other sites More sharing options...
Question
Nokia
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.