Azumoto Posted September 14, 2012 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 24 Reputation: 0 Joined: 04/20/12 Last Seen: October 26, 2015 Share Posted September 14, 2012 hello I would like a npc that spawns either skeleton, poring, and zombies. But I can choose them! Quote Link to comment Share on other sites More sharing options...
1 AnnieRuru Posted January 9, 2013 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted January 9, 2013 prontera,152,182,5 script Sample 757,{ mes "What you want to summon ?"; .@s = select( .menu$ ) -1; mes "Summon "+ .mob_name$[.@s] +" ?"; if ( select ( "Yes", "No" ) == 2 ) close; close2; monster "this", -1,-1, "--ja--", .mob_id[.@s], 1, ""; end; OnInit: setarray .mob_id, 1076, 1002, 1015; // configuration here while ( .mob_id[.@i] ) { .mob_name$[.@i] = getmonsterinfo( .mob_id[.@i], 0 ); .@i++; } .menu$ = implode( .mob_name$, ":" ); end; } dunno why but suddenly in the mood to optimized other member's scripts xD Quote Link to comment Share on other sites More sharing options...
Emistry Posted September 14, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Thursday at 04:49 PM Share Posted September 14, 2012 try this prontera,155,181,5 script Sample 757,{ setarray .@MonsterID[0],1002,1002,1002,1002; mes "What you want to summon ?"; for( set .@i,0; .@i < getarraysize( .@MonsterID ); set .@i,.@i + 1; set .@Menu$,.@Menu$ + getmonsterinfo( .@MonsterID[.@i],0 )+":"; set .@i,select( .@Menu$ ) - 1; mes "Summon "+getmonsterinfo( .@MonsterID[.@i],0 )+"?"; if( select("YES:NO") == 1 ){ monster strcharinfo(3),-1,-1,"--ja--",.@MonsterID[.@i],1,""; } close; } Quote Link to comment Share on other sites More sharing options...
Azumoto Posted November 29, 2012 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 24 Reputation: 0 Joined: 04/20/12 Last Seen: October 26, 2015 Author Share Posted November 29, 2012 not loadded, why? Quote Link to comment Share on other sites More sharing options...
GmOcean Posted November 29, 2012 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 666 Reputation: 93 Joined: 04/27/12 Last Seen: August 17, 2015 Share Posted November 29, 2012 You need to input the proper tabs. Quote Link to comment Share on other sites More sharing options...
Azumoto Posted November 29, 2012 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 24 Reputation: 0 Joined: 04/20/12 Last Seen: October 26, 2015 Author Share Posted November 29, 2012 as it should be? Quote Link to comment Share on other sites More sharing options...
xixking Posted January 8, 2013 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 11 Reputation: 0 Joined: 12/29/12 Last Seen: May 6, 2020 Share Posted January 8, 2013 cant you give me tahts script again beacause this scrip not load why???? Quote Link to comment Share on other sites More sharing options...
nanakiwurtz Posted January 9, 2013 Group: Members Topic Count: 81 Topics Per Day: 0.02 Content Count: 1654 Reputation: 583 Joined: 08/09/12 Last Seen: January 14, 2020 Share Posted January 9, 2013 prontera,155,181,5(TAB)script(TAB)Sample(TAB)757,{ Quote Link to comment Share on other sites More sharing options...
jigsgfx Posted January 10, 2013 Group: Members Topic Count: 20 Topics Per Day: 0.00 Content Count: 83 Reputation: 0 Joined: 06/02/12 Last Seen: June 11, 2018 Share Posted January 10, 2013 (edited) prontera,152,182,5 script Sample 757,{ mes "What you want to summon ?"; .@s = select( .menu$ ) -1; mes "Summon "+ .mob_name$[.@s] +" ?"; if ( select ( "Yes", "No" ) == 2 ) close; close2; monster "this", -1,-1, "--ja--", .mob_id[.@s], 1, ""; end; OnInit: setarray .mob_id, 1076, 1002, 1015; // configuration here while ( .mob_id[.@i] ) { .mob_name$[.@i] = getmonsterinfo( .mob_id[.@i], 0 ); .@i++; } .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 Edited January 10, 2013 by jigsgfx Quote Link to comment Share on other sites More sharing options...
AnnieRuru Posted January 10, 2013 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted January 10, 2013 lol, reminds me of my private mvp room script guild_vs2,50,50,5 script asdasdasdasd 100,{ mes "What you want to summon ?"; .@s = select( .menu$ ) -1; mes "input amount to summon"; if ( input( .@amount, 1, .max_summon ) ) { mes "invalid amount"; close; } mes "Summon "+ .@amount +"x "+ .mob_name$[.@s] +" ?"; if ( select ( "Yes", "No" ) == 2 ) close; close2; monster "this", 0,0, "--ja--", .mob_id[.@s], .@amount; end; OnInit: setarray .mob_id, 1076, 1002, 1015; // configuration here .max_summon = 2000; while ( .mob_id[.@i] ) { .mob_name$[.@i] = getmonsterinfo( .mob_id[.@i], 0 ); .@i++; } .menu$ = implode( .mob_name$, ":" ); end; } the script works fine in latest rathena 1 Quote Link to comment Share on other sites More sharing options...
jigsgfx Posted January 10, 2013 Group: Members Topic Count: 20 Topics Per Day: 0.00 Content Count: 83 Reputation: 0 Joined: 06/02/12 Last Seen: June 11, 2018 Share Posted January 10, 2013 (edited) great thanks it works like a charm.. Edited January 10, 2013 by jigsgfx Quote Link to comment Share on other sites More sharing options...
Question
Azumoto
hello I would like a npc that spawns either skeleton, poring, and zombies. But I can choose them!
Link to comment
Share on other sites
10 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.