Jump to content
  • 0

Npc that spawn monsters


Question

Posted (edited)

I don't know if this is possible or not but I want this its awesome. Lets say we have a map name pay_dun0001(custom map). I want a npc in there control the monster for example if you wan proceed to the next room that is pay_dun0002 you need to kill this npc monster in that map it self, before proceeding to the next room. Example the npc will spawn 20 porings then onces 20 poring is dead it will spawn the next monster instancely that is drops. 20 drops . After that monster is dead then you can proceed to the next room.

 

PLEASE!!! THANK YOU IN ADVANCE.

 

Regards.


 



bump

Edited by cmsm94

7 answers to this question

Recommended Posts

Posted


prontera,156,178,3 script zqscdf 56,{

if ( mobcount( "prontera","all" ) ) end;

callsub L_spawn, ( @roundihub+1 );

warp .next_map$,0,0;

end;

L_spawn:

.@round = getarg(0) +1;

.@size = getarraysize( getd( ".round"+ .@round ) );

if ( .@size == 0 ) return;

for ( ; .@i < .@size; .@i += 2 )

monster "prontera",0,0,"--ja--", getd( ".round"+ .@round +"["+ .@i +"]" ) , getd( ".round"+ .@round +"["+ (.@i+1) +"]" ) ,"";

end;

oninit:

setarray .round1, 1002,5, 1003,4;// modid, amount

setarray .round2, 1002,5, 1003,4;// modid, amount

setarray .round3, 1002,5, 1003,4;// modid, amount

setarray .round4, 1002,5, 1003,4;// modid, amount

.next_map$ = "geffen";

end;

onPCLoadMapEvent: @roundihub = 0;

}

prontera mapflag loadevent

Posted

Thank you for answering~~! Im gonna test it now



prontera,156,178,3	script	zqscdf	56,{
	if ( mobcount( "prontera","all" ) ) end;
	callsub L_spawn, ( @roundihub+1 );
	warp .next_map$,0,0;
	end;

L_spawn:
	.@round = getarg(0) +1;
	.@size = getarraysize( getd( ".round"+ .@round ) );
	if ( .@size == 0 ) return;
	for ( ; .@i < .@size; .@i += 2 )
		monster "prontera",0,0,"--ja--", getd( ".round"+ .@round +"["+ .@i +"]" ) , getd( ".round"+ .@round +"["+ (.@i+1) +"]" ) ,"";
	end;
oninit:
	setarray .round1, 1002,5, 1003,4;// modid, amount
	setarray .round2, 1002,5, 1003,4;// modid, amount
	setarray .round3, 1002,5, 1003,4;// modid, amount
	setarray .round4, 1002,5, 1003,4;// modid, amount
	.next_map$ = "geffen";
	end;

onPCLoadMapEvent: @roundihub = 0;
}
prontera	mapflag	loadevent

Okay it is not working for the second round, No spawn there... Is it like once you kill all you have to talk the npc again to go round 2 or it will auto?

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