Jump to content
  • 0
Azumoto

NPC Spawn mob

Question

10 answers to this question

Recommended Posts

try this

prontera,155,181,5 script Sample 757,{
setarray [email protected][0],1002,1002,1002,1002;
mes "What you want to summon ?";
for( set [email protected],0; [email protected] < getarraysize( [email protected] ); set [email protected],[email protected] + 1;
set [email protected]$,[email protected]$ + getmonsterinfo( [email protected][[email protected]],0 )+":";
set [email protected],select( [email protected]$ ) - 1;
mes "Summon "+getmonsterinfo( [email protected][[email protected]],0 )+"?";
if( select("YES:NO") == 1 ){
monster strcharinfo(3),-1,-1,"--ja--",[email protected][[email protected]],1,"";
}
close;
}

Link to comment
Share on other sites

prontera,152,182,5	script	Sample	757,{
mes "What you want to summon ?";
[email protected] = select( .menu$ ) -1;
mes "Summon "+ .mob_name$[[email protected]] +" ?";
if ( select ( "Yes", "No" ) == 2 ) close;
close2;
monster "this", -1,-1, "--ja--", .mob_id[[email protected]], 1, "";
end;
OnInit:
setarray .mob_id, 1076, 1002, 1015; // configuration here

while ( .mob_id[[email protected]] ) {
	.mob_name$[[email protected]] = getmonsterinfo( .mob_id[[email protected]], 0 );
	[email protected]++;
}
.menu$ = implode( .mob_name$, ":" );
end;
}

dunno why but suddenly in the mood to optimized other member's scripts xD

Link to comment
Share on other sites

prontera,152,182,5	script	Sample	757,{
mes "What you want to summon ?";
[email protected] = select( .menu$ ) -1;
mes "Summon "+ .mob_name$[[email protected]] +" ?";
if ( select ( "Yes", "No" ) == 2 ) close;
close2;
monster "this", -1,-1, "--ja--", .mob_id[[email protected]], 1, "";
end;
OnInit:
setarray .mob_id, 1076, 1002, 1015; // configuration here

while ( .mob_id[[email protected]] ) {
	.mob_name$[[email protected]] = getmonsterinfo( .mob_id[[email protected]], 0 );
	[email protected]++;
}
.menu$ = implode( .mob_name$, ":" );
end;
}

dunno why but suddenly in the mood to optimized other member's scripts xD

Hi Annie i used this script but when i load it and talk to npc i dont see any MENU OPTIONS its totally blank which i think i should be choosing a mob to summon.

also can it be add a specific amount of monster to summon? like if i want 2000 Porings :D

Edited by jigsgfx
Link to comment
Share on other sites

lol, reminds me of my private mvp room script

guild_vs2,50,50,5    script    asdasdasdasd    100,{
   mes "What you want to summon ?";
   [email protected] = select( .menu$ ) -1;
   mes "input amount to summon";
   if ( input( [email protected], 1, .max_summon ) ) {
       mes "invalid amount";
       close;
   }
   mes "Summon "+ [email protected] +"x "+ .mob_name$[[email protected]] +" ?";
   if ( select ( "Yes", "No" ) == 2 ) close;
   close2;
   monster "this", 0,0, "--ja--", .mob_id[[email protected]], [email protected];
   end;
OnInit:
   setarray .mob_id, 1076, 1002, 1015; // configuration here
   .max_summon = 2000;

   while ( .mob_id[[email protected]] ) {
       .mob_name$[[email protected]] = getmonsterinfo( .mob_id[[email protected]], 0 );
       [email protected]++;
   }
   .menu$ = implode( .mob_name$, ":" );
   end;
}

post-8685-0-68546300-1357798695_thumb.jpg

the script works fine in latest rathena

  • Upvote 1
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.