Jump to content
  • 0

Battleground Clone!


GMxMomi

Question


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  48
  • Reputation:   0
  • Joined:  04/24/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

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 ( .@i = 0; .@i < $@warpwaitingpcnum; .@i++ )
	for ( .@j = 0; .@j < .summon_clone; .@j++ )
		clone "guild_vs2", 0,0, strnpcinfo(0)+"::Onclonedead", getcharid( 0, rid2name( $@warpwaitingpc[.@i] ) );
.count = .minplayer2start * .summon_clone;
copyarray .register_aid, $@warpwaitingpc,  $@warpwaitingpcnum;
delwaitingroom;
end;
Onclonedead:
.count--;
if ( .count ) end;
announce "all clones are dead !", 0;
.@size = getarraysize( .register_aid );
for ( .@i = 0; .@i < .@size; .@i++ )
	getitem 501, 1, .register_aid[.@i]; // reward item here
getmapxy .@map$, .@x, .@y, 1;
mapwarp "guild_vs2", .@map$, .@x, .@y;
goto L_Reset;
OnPCDieEvent:
OnPCLogoutEvent:
if ( strcharinfo(3) != "guild_vs2" ) end;
.@size = getarraysize( .register_aid );
while ( .register_aid[.@i] != getcharid(3) && .@i < .@size ) .@i++;
deletearray .register_aid[.@i], 1;
warp "Save", 0,0;
if ( .@size > 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


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  48
  • Reputation:   0
  • Joined:  04/24/12
  • Last Seen:  

thanks annie~

but the npc not work/response when click~ by the way i using 3 ceam~

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