Jump to content
  • 0
Sign in to follow this  
Boneash

hi sir im new here can you guys help me with my custom script?

Question

can you help me with my custom script? its working a bit then i add next line

its not showing up anymore. can you help me what missing in line? thanks!

here my sample test custom scripts

//Test Alex HAT MAKER
// Scripted by Alex
//
// Test Tutorial by Alex
// ==============================================
prontera,140,209,3	script	Hat Maker#h1-1::Hat Maker	930,{
    npctalk "Hello "+strcharinfo(0)+"my name CrazyMan";
    next;
    mes"The purpose of this NPC is to";
    mes"provide you the quest of the latest";
    mes"headgears here in TESTRO!";
    mes"Would you  like to brows on the new headgears?
    goto H_top;  

 H_top:
 menu "0-2",H_01,"Cancel",H_cancel;

//__________Hat List__________//

 H_01:
 menu

 "Alice Doll",I_alice,
 "Hockey Mask",I_hockey,
 "Return to Menu",H_top;

//_____________Item requirements_______________//


//________model___________//
//I_:
//      next;
//      mes "";
//      menu "Make",M_,"Return to Menu",H_top;

 I_alice:
     next;
     mes "5x Marionett Dolls";
     mes "100x Alice's Apron";
     mes "5x Soft Apron";
     menu "Make",M_alice,"Return to Menu",H_top;

 I_hockey:
     next;
     mes "200x Suspicious Hat";
     mes "2x Blank Eyes";
     mes "10x Gold";
     mes "10x TCG Card";
     menu "Make",M_hockey,"Return to Menu",H_top;


//____________model______________//
//M_:
//      if(countitem()< || countitem()< || Zeny < )
//      goto M_insufficient;
//      delitem ,;
//      delitem ,;
//      set zeny,zeny-;
//      getitem ,;
//      close;

 M_alice:
     if(countitem(5141)<5 || countitem(7047)<100 || countitem(661)<5)
     goto M_insufficient;
     delitem 5141,5;
     delitem 7047,100;
     delitem 661,5;
     getitem 5137,1;
     close;

 M_hockey:
     if(countitem(7567)<200 || countitem(5102)<2 || countitem(969)<10 || countitem(7227)<10)
     goto M_insufficient;
     delitem 7567,200;
     delitem 5102,2;
     delitem 969,10;
     delitem 7227,10;
     getitem 5314,1;
     close;

//________not enough or not the correct items________

 M_insufficient:
     next;
     mes "CrazyMan I am sorry";
     mes "You don't have the required materials.";
     mes "Please come back when you do...";
     close;

 H_cancel:

 close;

 OnInit:

 waitingroom "Limited QUEST EVENT",0;

 end;
}

 

 

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0
2 hours ago, Boneash said:

can you help me with my custom script? its working a bit then i add next line

its not showing up anymore. can you help me what missing in line? thanks!

here my sample test custom scripts

//Test Alex HAT MAKER
// Scripted by Alex
//
// Test Tutorial by Alex
// ==============================================
prontera,140,209,3	script	Hat Maker#h1-1::Hat Maker	930,{
    npctalk "Hello "+strcharinfo(0)+"my name CrazyMan";
    next;
    mes"The purpose of this NPC is to";
    mes"provide you the quest of the latest";
    mes"headgears here in TESTRO!";
    mes"Would you  like to brows on the new headgears?
    goto H_top;  

 H_top:
 menu "0-2",H_01,"Cancel",H_cancel;

//__________Hat List__________//

 H_01:
 menu

 "Alice Doll",I_alice,
 "Hockey Mask",I_hockey,
 "Return to Menu",H_top;

//_____________Item requirements_______________//


//________model___________//
//I_:
//      next;
//      mes "";
//      menu "Make",M_,"Return to Menu",H_top;

 I_alice:
     next;
     mes "5x Marionett Dolls";
     mes "100x Alice's Apron";
     mes "5x Soft Apron";
     menu "Make",M_alice,"Return to Menu",H_top;

 I_hockey:
     next;
     mes "200x Suspicious Hat";
     mes "2x Blank Eyes";
     mes "10x Gold";
     mes "10x TCG Card";
     menu "Make",M_hockey,"Return to Menu",H_top;


//____________model______________//
//M_:
//      if(countitem()< || countitem()< || Zeny < )
//      goto M_insufficient;
//      delitem ,;
//      delitem ,;
//      set zeny,zeny-;
//      getitem ,;
//      close;

 M_alice:
     if(countitem(5141)<5 || countitem(7047)<100 || countitem(661)<5)
     goto M_insufficient;
     delitem 5141,5;
     delitem 7047,100;
     delitem 661,5;
     getitem 5137,1;
     close;

 M_hockey:
     if(countitem(7567)<200 || countitem(5102)<2 || countitem(969)<10 || countitem(7227)<10)
     goto M_insufficient;
     delitem 7567,200;
     delitem 5102,2;
     delitem 969,10;
     delitem 7227,10;
     getitem 5314,1;
     close;

//________not enough or not the correct items________

 M_insufficient:
     next;
     mes "CrazyMan I am sorry";
     mes "You don't have the required materials.";
     mes "Please come back when you do...";
     close;

 H_cancel:

 close;

 OnInit:

 waitingroom "Limited QUEST EVENT",0;

 end;
}

 

 

 

//Test Alex HAT MAKER
// Scripted by Alex
//
// Test Tutorial by Alex
//
// Adjusted by Katazui.com
// ==============================================
prontera,140,209,3	script	Hat Maker#h1-1::Hat Maker	930,{
    npctalk "Hello "+strcharinfo(0)+"my name CrazyMan";
    next;
    mes"The purpose of this NPC is to";
    mes"provide you the quest of the latest";
    mes"headgears here in TESTRO!";
    mes"Would you  like to brows on the new headgears?
	H_top:
	menu "0-2",H_01,"Cancel",H_cancel;
	end;

//__________Hat List__________//

 H_01:
 menu "Alice Doll",I_alice,"Hockey Mask",I_hockey,"Return to Menu",H_top;

//_____________Item requirements_______________//


//________model___________//
//I_:
//      next;
//      mes "";
//      menu "Make",M_,"Return to Menu",H_top;

 I_alice:
     next;
     mes "5x Marionett Dolls";
     mes "100x Alice's Apron";
     mes "5x Soft Apron";
     menu "Make",M_alice,"Return to Menu",H_top;

 I_hockey:
     next;
     mes "200x Suspicious Hat";
     mes "2x Blank Eyes";
     mes "10x Gold";
     mes "10x TCG Card";
     menu "Make",M_hockey,"Return to Menu",H_top;


//____________model______________//
//M_:
//      if(countitem()< || countitem()< || Zeny < ){ goto M_insufficient; }
//      delitem ,;
//      delitem ,;
//      set zeny,zeny-;
//      getitem ,;
//      close;

 M_alice:
     if(countitem(5141)<5 || countitem(7047)<100 || countitem(661)<5) { goto M_insufficient; }
     delitem 5141,5;
     delitem 7047,100;
     delitem 661,5;
     getitem 5137,1;
     close;

 M_hockey:
     if(countitem(7567)<200 || countitem(5102)<2 || countitem(969)<10 || countitem(7227)<10) { goto M_insufficient; }
     delitem 7567,200;
     delitem 5102,2;
     delitem 969,10;
     delitem 7227,10;
     getitem 5314,1;
     close;

//________not enough or not the correct items________

 M_insufficient:
     next;
     mes "CrazyMan I am sorry";
     mes "You don't have the required materials.";
     mes "Please come back when you do...";
     close;

 H_cancel:
	close;

 OnInit:
	waitingroom "Limited QUEST EVENT",0;
	end;
}

 

 

Share this post


Link to post
Share on other sites
  • 0

its not working sir. 

Share this post


Link to post
Share on other sites
  • 0

script error in file

Share this post


Link to post
Share on other sites
  • 0

1. Error syntax on line 6
2. Missing double quotes on line 12
3. Missing some `next` command

Try this script below

//Test Alex HAT MAKER
// Scripted by Alex
//
// Test Tutorial by Alex
// ==============================================
prontera,140,209,3	script	Hat Maker#h1-1::Hat Maker	930,{
	npctalk "Hello "+strcharinfo(0)+"my name CrazyMan";
	next;
	mes "The purpose of this NPC is to";
	mes "provide you the quest of the latest";
	mes "headgears here in TESTRO!";
	mes "Would you like to brows on the new headgears?";
	goto H_top;

H_top:
	menu "0-2",H_01,"Cancel",H_cancel;

//__________Hat List__________//

H_01:
	menu
	"Alice Doll",I_alice,
	"Hockey Mask",I_hockey,
	"Return to Menu",H_top;

//_____________Item requirements_______________//


//________model___________//
//I_:
//      next;
//      mes "";
//      menu "Make",M_,"Return to Menu",H_top;

I_alice:
	next;
	mes "5x Marionett Dolls";
	mes "100x Alice's Apron";
	mes "5x Soft Apron";
	menu "Make",M_alice,"Return to Menu",H_top;

I_hockey:
  	next;
	mes "200x Suspicious Hat";
	mes "2x Blank Eyes";
	mes "10x Gold";
	mes "10x TCG Card";
	menu "Make",M_hockey,"Return to Menu",H_top;


//____________model______________//
//M_:
//      if(countitem()< || countitem()< || Zeny < )
//      goto M_insufficient;
//      delitem ,;
//      delitem ,;
//      set zeny,zeny-;
//      getitem ,;
//      close;

M_alice:
	if(countitem(5141)<5 || countitem(7047)<100 || countitem(661)<5)
		goto M_insufficient;

	delitem 5141,5;
	delitem 7047,100;
	delitem 661,5;
	getitem 5137,1;
  close;

M_hockey:
	if(countitem(7567)<200 || countitem(5102)<2 || countitem(969)<10 || countitem(7227)<10)
    	goto M_insufficient;

	delitem 7567,200;
	delitem 5102,2;
	delitem 969,10;
	delitem 7227,10;
	getitem 5314,1;
  	close;

//________not enough or not the correct items________

M_insufficient:
	next;
	mes "CrazyMan I am sorry";
	mes "You don't have the required materials.";
	mes "Please come back when you do...";
	close;

H_cancel:
  	close;

OnInit:
	waitingroom "Limited QUEST EVENT",0;
	end;
}

Share this post


Link to post
Share on other sites
  • 0

hello sir can you add this?

can you arrange this to me sir?

 

// Test NPC by Alex
// Scripted by myself
//
// Learning scripting by myself
// ==============================================
prontera,139,211,5	script	Hat Maker#h1-1::Hat Maker	930,{
npctalk "Hello"+strcharinfo(0)+"my name CrazyMan";
next;
mes "The purpose of this NPC is to";
mes "provide you the quest of the latest";
mes "headgears here in TESTRO!";
mes "Would you like to brows on the new headgear?";
H_top:
menu "0-2",H_01,"Cancel",H_cancel;
end;

//__________Hat List__________//

H_01:
menu

"Alice Doll",I_alice,
"Hockey Mask",I_hockey,
"Return to Menu",H_top;

//____________Item requirements____________//


//__________Model___________//
//I_;
//        next;
//        mes "";
// menu "Make",M_,"Return To Menu",H_top;

I_alice:
next;
mes "5x Marionett Dolls";
mes "100x Alice's Apron";
mes "5x Soft Apron";
menu "Make",M_alice,"Return to Menu",H_top;

I_hockey:
next;
mes "200x Suspicious Hat";
mes "2x Blank Eyes";
mes "10x Gold";
mes "10x TCG Card";
menu "Make",M_hockey,"Return to Menu",H_top;


//____________model______________//
//M_:
//      if(countitem()< || countitem()< || Zeny < )
//      goto M_insufficient;
//      delitem ,;
//      delitem ,;
//      set zeny,zeny-;
//      getitem ,;
//      close;

M_alice:
if(countitem(5141)<5 || countitem(7047)<100 || countitem(661)<5)
goto M_insufficient;
delitem 5141,5;
delitem 7047,100;
delitem 661,5;
getitem 5137,1;
close;

M_hockey:
if(countitem(7567)<200 || countitem(5102)<2 || countitem(969)<10 || countitem(7227)<10)
goto M_insufficient;
delitem 7567,200;
delitem 5102,2;
delitem 969,10;
delitem 7227,10;
getitem 5314,1;
close;

//________not enough or not the correct items________

M_insufficient:
next;
mes "CrazyMan I am sorry";
mes "You don't have the required materials.";
mes "Please come back when you do...";
close;

OnEnable:
waitingroom "Expires: "+getAutoNPCActiveExpiration(strnpcinfo(3)),0;
end;
OnDisable:
delwaitingroom;
end;
OnInit:
//start on june 1 and finish on june 30
registerAutoNPC "6","1","30",strnpcinfo(3),"Soul Quest Special Event limited quest (prontera 143,211)";
end;
}

 

Share this post


Link to post
Share on other sites
  • 0
8 hours ago, Boneash said:

hello sir can you add this?

can you arrange this to me sir?

 

// Test NPC by Alex
// Scripted by myself
//
// Learning scripting by myself
// ==============================================
prontera,139,211,5	script	Hat Maker#h1-1::Hat Maker	930,{
npctalk "Hello"+strcharinfo(0)+"my name CrazyMan";
next;
mes "The purpose of this NPC is to";
mes "provide you the quest of the latest";
mes "headgears here in TESTRO!";
mes "Would you like to brows on the new headgear?";
H_top:
menu "0-2",H_01,"Cancel",H_cancel;
end;

//__________Hat List__________//

H_01:
menu

"Alice Doll",I_alice,
"Hockey Mask",I_hockey,
"Return to Menu",H_top;

//____________Item requirements____________//


//__________Model___________//
//I_;
//        next;
//        mes "";
// menu "Make",M_,"Return To Menu",H_top;

I_alice:
next;
mes "5x Marionett Dolls";
mes "100x Alice's Apron";
mes "5x Soft Apron";
menu "Make",M_alice,"Return to Menu",H_top;

I_hockey:
next;
mes "200x Suspicious Hat";
mes "2x Blank Eyes";
mes "10x Gold";
mes "10x TCG Card";
menu "Make",M_hockey,"Return to Menu",H_top;


//____________model______________//
//M_:
//      if(countitem()< || countitem()< || Zeny < )
//      goto M_insufficient;
//      delitem ,;
//      delitem ,;
//      set zeny,zeny-;
//      getitem ,;
//      close;

M_alice:
if(countitem(5141)<5 || countitem(7047)<100 || countitem(661)<5)
goto M_insufficient;
delitem 5141,5;
delitem 7047,100;
delitem 661,5;
getitem 5137,1;
close;

M_hockey:
if(countitem(7567)<200 || countitem(5102)<2 || countitem(969)<10 || countitem(7227)<10)
goto M_insufficient;
delitem 7567,200;
delitem 5102,2;
delitem 969,10;
delitem 7227,10;
getitem 5314,1;
close;

//________not enough or not the correct items________

M_insufficient:
next;
mes "CrazyMan I am sorry";
mes "You don't have the required materials.";
mes "Please come back when you do...";
close;

OnEnable:
waitingroom "Expires: "+getAutoNPCActiveExpiration(strnpcinfo(3)),0;
end;
OnDisable:
delwaitingroom;
end;
OnInit:
//start on june 1 and finish on june 30
registerAutoNPC "6","1","30",strnpcinfo(3),"Soul Quest Special Event limited quest (prontera 143,211)";
end;
}

 

 

Hey @Boneash. Sorry I gave you a script with errors in them. I did not thoroughly check. However, you can easily debug the errors since most of your errors contain mostly grammatical issues. I added some documents below that could help!

https://raw.githubusercontent.com/rathena/rathena/master/doc/script_commands.txt

https://github.com/rathena/rathena/tree/master/doc/sample

 

Edited by Katazui

Share this post


Link to post
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.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.