louigui0224 Posted January 18, 2017 Posted January 18, 2017 (edited) i need help what seems to be the problem with this script, i cant even click the npc and the chat room doesnt show at all. please need help asap. sec_in01,79,36,4 script Freebies 123,{ mes "[Hello]"; mes "[I can give you a free gift based on your future job.]"; mes "[Please choose the correct item for the future job]"; if(!#Freebie) { mes "Select one:"; next; switch(select("Swordsman:Magician:Archer:Acolyte:Merchant:Thief:Ninja:Linker:Taek")) { case 1: getitem 2328,1; getitem 2404,1: getitem 2503,1; rentitem 29280,604800; rentitem 5394,604800; getitem 1109,1; //Item for Swordsman break; case 2: getitem 2334,1; getitem 2403,1; getitem 2503 ,1; getitem 1601 ,1; rentitem 29280,604800; rentitem 5394,604800; //Item for Magician break; case 3: getitem 2330,1; getitem 2405,1; getitem 2503 ,1; getitem 1701 ,1; rentitem 29280,604800; rentitem 5394,604800; //Item for Archer break; case 4: getitem 2309,1; getitem 2403,1; getitem 2503 ,1; getitem 1601 ,1; rentitem 29280,604800; rentitem 5394,604800; //Item for Acolyte break; case 5: getitem 2309,1; getitem 2405,1; getitem 2503 ,1; getitem 1354 ,1; rentitem 29280,604800; rentitem 5394,604800; //Item for Merchant break; case 6: getitem 2335,1; getitem 2405,1; getitem 2503 ,1; getitem 1221 ,1; rentitem 29280,604800; rentitem 5394,604800; //Item for Thief break; case 7: getitem 2335,1; getitem 2403,1; getitem 2503 ,1; getitem 1221 ,1; rentitem 29280,604800; rentitem 5394,604800; //Item for Ninja break; case 8: getitem 2335,1; getitem 2403,1; getitem 2503 ,1; getitem 1603 ,1; rentitem 29280,604800; rentitem 5394,604800; //Item for Linker break; } set #Freebie, 1; close; } OnInit: waitingroom "Get your freebies here ! ",0; end; } Edited January 18, 2017 by Emistry Please use CODEBOX. Quote
0 Hijirikawa Posted January 25, 2017 Posted January 25, 2017 prontera,164,173,4 script Novice Enchantress 521,{ if(Weight > MaxWeight / 2) end; if( Class != 0){ end; } mes "[ ^FF0000Novice Enchantress^000000 ]"; mes "Welcome to ^FF0000RO NAME HERE^000000"; mes "I am here to assist you."; mes "Choose your class and join the adventure."; next; .@i = select( .Menu$ ) - 1; if( select( "Change to "+jobname( .JobList[.@i] )+"?:Cancel" ) == 1 ){ jobchange .JobList[.@i]; BaseLevel = .BaseLevel; JobLevel = .JobLevel; resetskill; resetstatus; set SkillPoint, 0; set SkillPoint, 118; //How many skill points do you want your players to have mes "[ ^FF0000Novice Enchantress^000000 ]"; mes "Welcome to RO NAME HERE."; close2; if(!#freebies){ switch(Class){ case 4008: //knight getitembound2 1108,2,1,10,0,0,0,0,0,1; //blade getitembound2 1408,2,1,10,0,0,0,0,0,1; //pike break; case 4009: //High Priest getitembound2 1602,2,1,10,0,0,0,0,0,1; //rod break; case 4010: //High Wizard getitembound2 1602,2,1,10,0,0,0,0,0,1; //rod break; case 4011: //Whitesmith getitembound2 1302,2,1,10,0,0,0,0,0,1; //axe break; case 4012: //Sniper getitembound2 1705,2,1,10,0,0,0,0,0,1; //composite bow break; case 4013: //Assassin Cross getitembound2 1208,2,1,10,0,0,0,0,0,1; //main gauche getitembound2 1264,2,1,10,0,0,0,0,0,1; //specialty jur break; case 4015: //Paladin getitembound2 1408,2,1,10,0,0,0,0,0,1; //pike break; case 4016: //Champion getitembound2 1505,2,1,10,0,0,0,0,0,1; //mace break; case 4017: //Professor getitembound2 1602,2,1,10,0,0,0,0,0,1; //rod break; case 4018: //Stalker getitembound2 1108,1,1,10,0,0,0,0,0,1; //blade getitembound2 1208,1,1,10,0,0,0,0,0,1; //main gauche getitembound2 1705,2,1,10,0,0,0,0,0,1; //composite bow break; case 4019: //Creator getitembound2 1302,2,1,10,0,0,0,0,0,1; //axe break; case 4020: //Bard getitembound2 1902,2,1,10,0,0,0,0,0,1; //violin getitembound2 1705,2,1,10,0,0,0,0,0,1; //composite bow break; case 4021: //Gypsy getitembound2 1951,2,1,10,0,0,0,0,0,1; //rope getitembound2 1705,2,1,10,0,0,0,0,0,1; //composite bow break; case 23: //Super Novice getitembound2 1602,2,1,10,0,0,0,0,0,1; //rod getitembound2 1208,2,1,10,0,0,0,0,0,1; //main gauche getitembound2 1108,2,1,10,0,0,0,0,0,1; //blade break; case 24: //Gunslinger getitembound2 13105,2,1,10,0,0,0,0,0,1; //garrison break; case 25: //Ninja getitembound2 1208,2,1,10,0,0,0,0,0,1; //main gauche getitembound2 13302,2,1,10,0,0,0,0,0,1; break; } set #freebies,1; } } end; OnInit: waitingroom "Jobchanger",0; setarray .JobList[0],4008,4009,4010,4011,4012,4013,4015,4016,4017,4018,4019,4020,4021,23,24,25; // class that player can choose from, refer to @jobchange in-game for the numbers .BaseLevel = 99; //max base level of your server .JobLevel = 70; //max job level of your server .@size = getarraysize( .JobList ); for( .@i = 0; .@i < .@size; .@i++ ) .Menu$ = .Menu$ + jobname( .JobList[.@i] )+":"; end; } Study how the script looks like, this one should be really easy to understand. Quote
0 Hijirikawa Posted January 18, 2017 Posted January 18, 2017 If you check your console, pretty sure easy to figure out the issue there. Quote
0 louigui0224 Posted January 18, 2017 Author Posted January 18, 2017 im not understanding you sir, i dont have any idea about the console can u please help me? Quote
0 Valiente Posted January 18, 2017 Posted January 18, 2017 1 hour ago, louigui0224 said: im not understanding you sir, i dont have any idea about the console can u please help me? Console is the black screen thingies that opens when you run the runserver.bat Quote
0 louigui0224 Posted January 18, 2017 Author Posted January 18, 2017 im using the putty on linux and it seems that it's already over lapped so cant scroll up anymore. Quote
0 Fii Posted January 18, 2017 Posted January 18, 2017 (edited) Spoiler prontera,x,y,d <tab> script <tab> ###,{ if(Freebie_quest = 0) { mes "[BLABLABLA]"; mes "BLABLABLA"; getitem BLABLABLA; set Freebie_quest,1; close; if(Freebie_quest = 1) { mes "[BLABLABLA]"; mes "You've received it already, invite your friends."; close; } } There are tons of freebie NPC, you could've just used one up. Anyway, I didn't try what I stated above so give it a try and tell me if it works. Edited January 18, 2017 by Fii Quote
0 BlazingSpear Posted January 18, 2017 Posted January 18, 2017 sec_in01,79,36,4 script Freebies 123,{ mes "[Hello]"; mes "[I can give you a free gift based on your future job.]"; mes "[Please choose the correct item for the future job]"; if(!#Freebie) { mes "Select one:"; next; switch(select("Swordsman:Magician:Archer:Acolyte:Merchant:Thief:Ninja:Linker:Taek")) { case 1: getitem 2328,1; getitem 2404,1: getitem 2503,1; rentitem 29280,604800; rentitem 5394,604800; getitem 1109,1; //Item for Swordsman break; case 2: getitem 2334,1; getitem 2403,1; getitem 2503 ,1; getitem 1601 ,1; rentitem 29280,604800; rentitem 5394,604800; //Item for Magician break; case 3: getitem 2330,1; getitem 2405,1; getitem 2503 ,1; getitem 1701 ,1; rentitem 29280,604800; rentitem 5394,604800; //Item for Archer break; case 4: getitem 2309,1; getitem 2403,1; getitem 2503 ,1; getitem 1601 ,1; rentitem 29280,604800; rentitem 5394,604800; //Item for Acolyte break; case 5: getitem 2309,1; getitem 2405,1; getitem 2503 ,1; getitem 1354 ,1; rentitem 29280,604800; rentitem 5394,604800; //Item for Merchant break; case 6: getitem 2335,1; getitem 2405,1; getitem 2503 ,1; getitem 1221 ,1; rentitem 29280,604800; rentitem 5394,604800; //Item for Thief break; case 7: getitem 2335,1; getitem 2403,1; getitem 2503 ,1; getitem 1221 ,1; rentitem 29280,604800; rentitem 5394,604800; //Item for Ninja break; case 8: getitem 2335,1; getitem 2403,1; getitem 2503 ,1; getitem 1603 ,1; rentitem 29280,604800; rentitem 5394,604800; //Item for Linker break; } set #Freebie, 1; close; } OnInit: waitingroom "Get your freebies here ! ",0; end; } try this script 1 Quote
0 louigui0224 Posted January 19, 2017 Author Posted January 19, 2017 (edited) @BlazingSpear still not working sir... Edited January 19, 2017 by louigui0224 Quote
0 Emistry Posted January 19, 2017 Posted January 19, 2017 getitem 2404,1: change to getitem 2404,1; Quote
0 louigui0224 Posted January 19, 2017 Author Posted January 19, 2017 @Emistry thank you so much emistry, but now i have another question i hope you can still help me... how can i combine this two script's into one npc? new_1-1,59,111,4 script Ridiculous Giver 718,{ if( Class ){ mes "Only Novice can use this..."; }else{ .@i = select( .Menu$ ) - 1; if( select( "Change to "+jobname( .JobList[.@i] )+"?:Cancel" ) == 1 ){ jobchange .JobList[.@i]; BaseLevel = .BaseLevel; JobLevel = .JobLevel; resetskill; resetstatus; SkillPoint = .SkillPoints; mes "DONE"; for( .@i = 0; .@i < .size; .@i++ ) getitem .ItemList[.@i],.Amount[.@i]; warp "sec_in01", 79,33; savepoint "prontera",114,74,1,1; } } close; OnInit: setarray .JobList[0],7,8,9,10,11,12,13,14,15,16,17,18,19,20,24,25,4049,4046; setarray .ItemList[0],14545; setarray .Amount[0],3; .BaseLevel = 70; .JobLevel = 30; .SkillPoints = 87; .@size = getarraysize( .JobList ); .size = getarraysize( .ItemList ); for( .@i = 0; .@i < .@size; .@i++ ) .Menu$ = .Menu$ + jobname( .JobList[.@i] )+":"; waitingroom "Freebies Here!",0; end; } sec_in01,79,36,4 script Freebies 123,{ mes "[Hello]"; mes "[I can give you a free gift based on your future job.]"; mes "[Please choose the correct item for the future job]"; if(!#Freebie) { mes "Select one:"; next; switch(select("Swordsman:Magician:Archer:Acolyte:Merchant:Thief:Ninja:Linker:Taek")) { case 1: getitem 2328,1; getitem 2404,1; getitem 2503,1; rentitem 29280,604800; rentitem 5394,604800; getitem 1109,1; //Item for Swordsman warp "prontera", 114,74; savepoint "prontera",114,74,1,1; break; case 2: getitem 2334,1; getitem 2403,1; getitem 2503,1; getitem 1601,1; rentitem 29280,604800; rentitem 5394,604800; //Item for Magician warp "prontera", 114,74; savepoint "prontera",114,74,1,1; break; case 3: getitem 2330,1; getitem 2405,1; getitem 2503,1; getitem 1701,1; rentitem 29280,604800; rentitem 5394,604800; //Item for Archer warp "prontera", 114,74; savepoint "prontera",114,74,1,1; break; case 4: getitem 2309,1; getitem 2403,1; getitem 2503,1; getitem 1601,1; rentitem 29280,604800; rentitem 5394,604800; //Item for Acolyte warp "prontera", 114,74; savepoint "prontera",114,74,1,1; break; case 5: getitem 2309,1; getitem 2405,1; getitem 2503,1; getitem 1354,1; rentitem 29280,604800; rentitem 5394,604800; //Item for Merchant warp "prontera", 114,74; savepoint "prontera",114,74,1,1; break; case 6: getitem 2335,1; getitem 2405,1; getitem 2503,1; getitem 1221,1; rentitem 29280,604800; rentitem 5394,604800; //Item for Thief warp "prontera", 114,74; savepoint "prontera",114,74,1,1; break; case 7: getitem 2335,1; getitem 2403,1; getitem 2503,1; getitem 1221,1; rentitem 29280,604800; rentitem 5394,604800; //Item for Ninja warp "prontera", 114,74; savepoint "prontera",114,74,1,1; break; case 8: getitem 2335,1; getitem 2403,1; getitem 2503,1; getitem 1603,1; rentitem 29280,604800; rentitem 5394,604800; //Item for Linker warp "prontera", 114,74; savepoint "prontera",114,74,1,1; break; case 9: getitem 2335,1; getitem 2403,1; getitem 2503,1; getitem 1603,1; rentitem 29280,604800; rentitem 5394,604800; //Item for Taek warp "prontera", 114,74; savepoint "prontera",114,74,1,1; break; } set #Freebie, 1; close; } OnInit: waitingroom "Get your freebies here ! ",0; end; } Quote
0 louigui0224 Posted January 19, 2017 Author Posted January 19, 2017 14 hours ago, louigui0224 said: @Emistry thank you so much emistry, but now i have another question i hope you can still help me... how can i combine this two script's into one npc? new_1-1,59,111,4 script Ridiculous Giver 718,{ if( Class ){ mes "Only Novice can use this..."; }else{ .@i = select( .Menu$ ) - 1; if( select( "Change to "+jobname( .JobList[.@i] )+"?:Cancel" ) == 1 ){ jobchange .JobList[.@i]; BaseLevel = .BaseLevel; JobLevel = .JobLevel; resetskill; resetstatus; SkillPoint = .SkillPoints; mes "DONE"; for( .@i = 0; .@i < .size; .@i++ ) getitem .ItemList[.@i],.Amount[.@i]; warp "sec_in01", 79,33; savepoint "prontera",114,74,1,1; } } close; OnInit: setarray .JobList[0],7,8,9,10,11,12,13,14,15,16,17,18,19,20,24,25,4049,4046; setarray .ItemList[0],14545; setarray .Amount[0],3; .BaseLevel = 70; .JobLevel = 30; .SkillPoints = 87; .@size = getarraysize( .JobList ); .size = getarraysize( .ItemList ); for( .@i = 0; .@i < .@size; .@i++ ) .Menu$ = .Menu$ + jobname( .JobList[.@i] )+":"; waitingroom "Freebies Here!",0; end; } sec_in01,79,36,4 script Freebies 123,{ mes "[Hello]"; mes "[I can give you a free gift based on your future job.]"; mes "[Please choose the correct item for the future job]"; if(!#Freebie) { mes "Select one:"; next; switch(select("Swordsman:Magician:Archer:Acolyte:Merchant:Thief:Ninja:Linker:Taek")) { case 1: getitem 2328,1; getitem 2404,1; getitem 2503,1; rentitem 29280,604800; rentitem 5394,604800; getitem 1109,1; //Item for Swordsman warp "prontera", 114,74; savepoint "prontera",114,74,1,1; break; case 2: getitem 2334,1; getitem 2403,1; getitem 2503,1; getitem 1601,1; rentitem 29280,604800; rentitem 5394,604800; //Item for Magician warp "prontera", 114,74; savepoint "prontera",114,74,1,1; break; case 3: getitem 2330,1; getitem 2405,1; getitem 2503,1; getitem 1701,1; rentitem 29280,604800; rentitem 5394,604800; //Item for Archer warp "prontera", 114,74; savepoint "prontera",114,74,1,1; break; case 4: getitem 2309,1; getitem 2403,1; getitem 2503,1; getitem 1601,1; rentitem 29280,604800; rentitem 5394,604800; //Item for Acolyte warp "prontera", 114,74; savepoint "prontera",114,74,1,1; break; case 5: getitem 2309,1; getitem 2405,1; getitem 2503,1; getitem 1354,1; rentitem 29280,604800; rentitem 5394,604800; //Item for Merchant warp "prontera", 114,74; savepoint "prontera",114,74,1,1; break; case 6: getitem 2335,1; getitem 2405,1; getitem 2503,1; getitem 1221,1; rentitem 29280,604800; rentitem 5394,604800; //Item for Thief warp "prontera", 114,74; savepoint "prontera",114,74,1,1; break; case 7: getitem 2335,1; getitem 2403,1; getitem 2503,1; getitem 1221,1; rentitem 29280,604800; rentitem 5394,604800; //Item for Ninja warp "prontera", 114,74; savepoint "prontera",114,74,1,1; break; case 8: getitem 2335,1; getitem 2403,1; getitem 2503,1; getitem 1603,1; rentitem 29280,604800; rentitem 5394,604800; //Item for Linker warp "prontera", 114,74; savepoint "prontera",114,74,1,1; break; case 9: getitem 2335,1; getitem 2403,1; getitem 2503,1; getitem 1603,1; rentitem 29280,604800; rentitem 5394,604800; //Item for Taek warp "prontera", 114,74; savepoint "prontera",114,74,1,1; break; } set #Freebie, 1; close; } OnInit: waitingroom "Get your freebies here ! ",0; end; } @Emistry help me please.... Quote
0 BlazingSpear Posted January 20, 2017 Posted January 20, 2017 (edited) be specific so we can help you want you wanna do with that script?? Edited January 20, 2017 by BlazingSpear Quote
0 louigui0224 Posted January 20, 2017 Author Posted January 20, 2017 i want to combine those two script's in one npc so that they could just talk with one npc instead of two..thanks @Blazingspear Quote
0 louigui0224 Posted January 28, 2017 Author Posted January 28, 2017 Thank you for this. @Hijirikawa how to make it per char instead of per account? Quote
0 Hijirikawa Posted January 28, 2017 Posted January 28, 2017 if(!#freebies) to if(!freebies) and set #freebies,1; to set freebies,1; 1 Quote
Question
louigui0224
i need help what seems to be the problem with this script, i cant even click the npc and the chat room doesnt show at all. please need help asap.
sec_in01,79,36,4 script Freebies 123,{ mes "[Hello]"; mes "[I can give you a free gift based on your future job.]"; mes "[Please choose the correct item for the future job]"; if(!#Freebie) { mes "Select one:"; next; switch(select("Swordsman:Magician:Archer:Acolyte:Merchant:Thief:Ninja:Linker:Taek")) { case 1: getitem 2328,1; getitem 2404,1: getitem 2503,1; rentitem 29280,604800; rentitem 5394,604800; getitem 1109,1; //Item for Swordsman break; case 2: getitem 2334,1; getitem 2403,1; getitem 2503 ,1; getitem 1601 ,1; rentitem 29280,604800; rentitem 5394,604800; //Item for Magician break; case 3: getitem 2330,1; getitem 2405,1; getitem 2503 ,1; getitem 1701 ,1; rentitem 29280,604800; rentitem 5394,604800; //Item for Archer break; case 4: getitem 2309,1; getitem 2403,1; getitem 2503 ,1; getitem 1601 ,1; rentitem 29280,604800; rentitem 5394,604800; //Item for Acolyte break; case 5: getitem 2309,1; getitem 2405,1; getitem 2503 ,1; getitem 1354 ,1; rentitem 29280,604800; rentitem 5394,604800; //Item for Merchant break; case 6: getitem 2335,1; getitem 2405,1; getitem 2503 ,1; getitem 1221 ,1; rentitem 29280,604800; rentitem 5394,604800; //Item for Thief break; case 7: getitem 2335,1; getitem 2403,1; getitem 2503 ,1; getitem 1221 ,1; rentitem 29280,604800; rentitem 5394,604800; //Item for Ninja break; case 8: getitem 2335,1; getitem 2403,1; getitem 2503 ,1; getitem 1603 ,1; rentitem 29280,604800; rentitem 5394,604800; //Item for Linker break; } set #Freebie, 1; close; } OnInit: waitingroom "Get your freebies here ! ",0; end; }
Please use CODEBOX.
15 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.