Jump to content
  • 0

BG Emperium Type Help


Question

6 answers to this question

Recommended Posts

Posted

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
Posted

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";
Posted

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

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