Jump to content

Question

Posted (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 by Emistry
Please use CODEBOX.

15 answers to this question

Recommended Posts

  • 0
Posted
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.

  • 0
Posted
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

  • 0
Posted (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 by Fii
  • 0
Posted
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

  • Upvote 1
  • 0
Posted

@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;
}

 

  • 0
Posted
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....

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