Jump to content
  • 0

Homunculus Evolver Script Help


Twitch

Question


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  12
  • Reputation:   0
  • Joined:  02/28/14
  • Last Seen:  

How do I add a text on my script? Like I'll put the requirements on text so the players could see what the requirements are and also, I would like to add a gold coin on the script. I don't know where to put the text thingy, is it after the next, or before. I just need a guide. Thank you.

 

Here's the script..

prontera,148,181,7	script	Homunculus Master	750,{
	mes "[Homunculus Master]";
	mes "Hi, I can ^000120evolve your homun^000000.";
	next;
	menu "^000090Evolve Mine Please^000000..",-, "Nevermind",M_DO;

	mes "[Homunculus Master]";
	mes "Are you sure you want to do this?";
	next;
	if(select("Evolve it:Cancel")==2) goto M_END;
	if(countitem(7227) < 100 || countitem(12040) < 15 || countitem(674) < 20 || gethominfo(1) != 6001 || gethominfo(1) != 6002 || gethominfo(1) != 6003 || gethominfo(1) != 6004 || gethominfo(1) != 6005 || gethominfo(1) != 6006 || gethominfo(1) != 6007 || gethominfo(1) != 6008 || gethominfo(1) != 6009 || gethominfo(1) != 6010 || gethominfo(1) != 6011 || gethominfo(1) != 6012 || gethominfo(1) != 6013 || gethominfo(1) != 6014 || gethominfo(1) != 6015 || gethominfo(1) != 6016) {
	mes "[Jan]";
	mes "Not enough items or you dont have a homunculus.";
	close;
	} else {
	mes "[Homunculus Master]";
	mes "Nice";
	mes "You got all what i needed";
	mes "I am going to chant now, please keep quiet";
	next;
	mes "[Homunculus Master]";
	mes "Abra cadabra, poof paph, HsoaS JAiSa hocuS pocuS";
	next;
	mes "[Homunculus Master]";
	mes "ashuhauh, Kuzuri Poof!";
	mes "Turn into an older homunculus";
	delitem 7227,100;
	delitem 12040,15;
	delitem 674,20;
	atcommand "@homfriendly 1000";
	homevolution;
	close;
}


M_DO:
	mes "[Homunculus Master]";
	mes "Okay, comeback when you need my";
	mes "Services(>)>O";
	close;


M_END:
	mes "[Homunculus Master]";
	mes "See you...";
	emotion e_yawn;
	close;
}
Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   174
  • Joined:  06/12/12
  • Last Seen:  

To add text, in your NPC dialog, you should use the 'mes' command. 

 

You could add it below this line

mes "Hi, I can ^000120evolve your homun^000000.";

Based on the item checking via 'countitem', the requirements are 100 TCG, 15 Stone of Sage, and 20 Mithril Coins.

You can add this below the above code to show them the requirement.

mes "100 TCG";
mes "15 Stone of Sage";
mes "20 Mithril Coins";
mes "XX Gold Coins";

For the additional checking of gold coin, add this code in the 'if-else' statement.

 

Find

countitem(7227) < 100

Add before the open parenthesis

countitem(671) < XX ||

Find

atcommand "@homfriendly 1000";

Add above

delitem 671,XX;

 

Don't forget to replace XX variable with the desired amount of Gold Coin you want for the requirement.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  12
  • Reputation:   0
  • Joined:  02/28/14
  • Last Seen:  

Thank you,sir. I'll try editing and will test if what I did is correct and working.


To add text, in your NPC dialog, you should use the 'mes' command. 

 

You could add it below this line

mes "Hi, I can ^000120evolve your homun^000000.";

Based on the item checking via 'countitem', the requirements are 100 TCG, 15 Stone of Sage, and 20 Mithril Coins.

You can add this below the above code to show them the requirement.

mes "100 TCG";
mes "15 Stone of Sage";
mes "20 Mithril Coins";
mes "XX Gold Coins";

For the additional checking of gold coin, add this code in the 'if-else' statement.

 

Find

countitem(7227) < 100

Add before the open parenthesis

countitem(671) < XX ||

Find

atcommand "@homfriendly 1000";

Add above

delitem 671,XX;

Don't forget to replace XX variable with the desired amount of Gold Coin you want for the requirement.

 

 

So I did what you've told me to edit, the npc appeared at prontera, but the problem now, it doesn't count the items even if I have them on my inventory.

It keeps on saying that I don't have enough items.

 

So here's the edited version,

prontera,148,181,7	script	Homunculus Master	750,{
	mes "[Homunculus Master]";
	mes "Hi, I can ^000120evolve your homunculus.^000000";
	next;
	menu "^000090Evolve mine please.^000000..",-, "Nevermind!",M_DO;

	mes "[Homunculus Master]";
	mes "Are you sure you want to do this?";
	mes "But before I evolve your homunculus,";
	mes "You need the following items first:";
	mes "5 Stone of Sage";
	mes "1 P Sage Ring";
	mes "10 Gold Coins";
	next;
	if(select("Evolve it:Cancel")==2) goto M_END;
	if(countitem(29111) < 1 || countitem(12040) < 5 || countitem(671) < 10 || gethominfo(1) != 6001 || gethominfo(1) != 6002 || gethominfo(1) != 6003 || gethominfo(1) != 6004 || gethominfo(1) != 6005 || gethominfo(1) != 6006 || gethominfo(1) != 6007 || gethominfo(1) != 6008 || gethominfo(1) != 6009 || gethominfo(1) != 6010 || gethominfo(1) != 6011 || gethominfo(1) != 6012 || gethominfo(1) != 6013 || gethominfo(1) != 6014 || gethominfo(1) != 6015 || gethominfo(1) != 6016) {
	mes "[Jan]";
	mes "You don't have enough times, please come back soon.";
	close;
	} else {
	mes "[Homunculus Master]";
	mes "Well then,";
	mes "You have all the required items";
	mes "I'm going to evolve your homunculus now. Silence, please.";
	next;
	mes "[Homunculus Master]";
	mes "Abra cadabra, poof paph, HsoaS JAiSa hocuS pocuS";
	next;
	mes "[Homunculus Master]";
	mes "ashuhauh, Kuzuri Poof!";
	mes "Turn into an older homunculus";
	atcommand "@homfriendly 1000"; 
	delitem 29111,1;
	delitem 12040,5;
	delitem 671,10;
	homevolution;
	close;
}


M_DO:
	mes "[Homunculus Master]";
	mes "Comeback when you need my services.";
	close;


M_END:
	mes "[Homunculus Master]";
	mes "See you!";
	emotion e_yawn;
	close;
}

I don't know what's wrong with my edit tho.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   174
  • Joined:  06/12/12
  • Last Seen:  

Well, do you have the required homunculus also? You're missing 1 } curly too at the end 

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