Jump to content
  • 0

Npc that spawn monsters


cmsm94

Question


  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  170
  • Reputation:   5
  • Joined:  08/11/13
  • Last Seen:  

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
Link to comment
Share on other sites

7 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  


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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  170
  • Reputation:   5
  • Joined:  08/11/13
  • Last Seen:  

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?

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

you can try this

http://upaste.me/r/3cf9a5

and...i really lazy to write these kidn of script because all these already exist in forum.....a lot of it....

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  170
  • Reputation:   5
  • Joined:  08/11/13
  • Last Seen:  

you can try this

http://upaste.me/r/3cf9a5

and...i really lazy to write these kidn of script because all these already exist in forum.....a lot of it....

How about the warping to next ground ? after killing all those monster then you will be warp auto/manually to another map

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  170
  • Reputation:   5
  • Joined:  08/11/13
  • Last Seen:  

huh this mob will spawn all maps?? i want only a specific map n once all killed you will be warp to prontera 150 150

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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