Jump to content
  • 0
GMxMomi

Battleground Clone!

Question

i request Battleground clone!!

5 player register at waiting room!!

if 5 player already register warp to some pvp map!!

summon 15 evil clone!!

each player have 3 evil clone!

max win 15!!

if death automatic out the game!!

if win automatic got prize!!

bump

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

simple script

prontera,155,178,5	script	ldjfhksfjs	100,{
end;
OnInit:
.minplayer2start = 5; // minimum player to start
.summon_clone = 3; // summon how many evil clone per player
L_Reset:
waitingroom "Clone Event", .minplayer2start +1, strnpcinfo(0)+"::OnEventInit", .minplayer2start;
end;
OnEventInit:
if ( getwaitingroomstate(0) < .minplayer2start ) end;
warpwaitingpc "guild_vs2", 0,0;
killmonster "guild_vs2", strnpcinfo(0)+"::Onclonedead";
for ( [email protected] = 0; [email protected] < [email protected]; [email protected]++ )
	for ( [email protected] = 0; [email protected] < .summon_clone; [email protected]++ )
		clone "guild_vs2", 0,0, strnpcinfo(0)+"::Onclonedead", getcharid( 0, rid2name( [email protected]arpwaitingpc[[email protected]] ) );
.count = .minplayer2start * .summon_clone;
copyarray .register_aid, [email protected],  [email protected];
delwaitingroom;
end;
Onclonedead:
.count--;
if ( .count ) end;
announce "all clones are dead !", 0;
[email protected] = getarraysize( .register_aid );
for ( [email protected] = 0; [email protected] < [email protected]; [email protected]++ )
	getitem 501, 1, .register_aid[[email protected]]; // reward item here
getmapxy [email protected]$, [email protected], [email protected], 1;
mapwarp "guild_vs2", [email protected]$, [email protected], [email protected];
goto L_Reset;
OnPCDieEvent:
OnPCLogoutEvent:
if ( strcharinfo(3) != "guild_vs2" ) end;
[email protected] = getarraysize( .register_aid );
while ( .register_aid[[email protected]] != getcharid(3) && [email protected] < [email protected] ) [email protected]++;
deletearray .register_aid[[email protected]], 1;
warp "Save", 0,0;
if ( [email protected] > 1 ) end;
announce "all players died, what a failure", 0;
killmonster "guild_vs2", strnpcinfo(0)+"::Onclonedead";
goto L_Reset;
}

guild_vs2	mapflag	nosave	SavePoint
guild_vs2	mapflag	nowarp
guild_vs2	mapflag	nowarpto
guild_vs2	mapflag	noteleport
guild_vs2	mapflag	nomemo
guild_vs2	mapflag	nopenalty
guild_vs2	mapflag	nobranch
guild_vs2	mapflag	noicewall

Edited by AnnieRuru
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...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.