Nokia Posted March 31, 2013 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
Emistry Posted March 31, 2013 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
mrlongshen Posted March 31, 2013 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
Capuche Posted March 31, 2013 Posted March 31, 2013 setbgid is a custom command made by AnnieRuru Topic Quote
mrlongshen Posted March 31, 2013 Posted March 31, 2013 setbgid is a custom command made by AnnieRuru Topic i have patch. but i cant use it. hmm Quote
Nokia Posted April 1, 2013 Author 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
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
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.