Jump to content
  • 0
Takuyakii

Costume req

Question

Hello, is it possible to edit this costumeitem script? into like this

if i want to convert, requirement need is 1 TCG, 

mes" In order to convert i need tcg x 1.

 

if i choose restore. 

mes "In order to restore i need 1m"

 

// -------------------------------------------------------------------------------
// 	Script Name : Headgear to Costume converter >> Costume to Headgear converter
// -------------------------------------------------------------------------------
// Description :
// - Allows a user to convert the equipped headgear (on Top, Mid or Low) into a
//   costume item. It will remove any card and refine of the Item.
// - Allows a user to restore the equipped costume headgear (on Top, Mid or Low)
//     into its original form. It will not return any card or refine of the item.
// -------------------------------------------------------------------------------
-	script	Costume Clown	-1,{
	mes "[Clown]";
	mes "Here you can convert your headgears into a Costume Headgear or restore to its Original form.";
	switch(select("I want to convert.:I want to restore.:No thanks.")) {
	case 1:

			next;
			mes "Please, select what to convert.";
			mes "Remember, cards and refine will be removed.";
			next;
				setarray [email protected]$[1],"Top","Mid","Low";
				setarray [email protected][1],    4,    5,   6;
				set [email protected]$,"";
			for( set [email protected], 1; [email protected] < 5; set [email protected], [email protected] + 1 )
			{
				if( getequipisequiped([email protected][[email protected]]) )
				set [email protected]$, [email protected]$ + [email protected]$[[email protected]] + "-" + "[" + getequipname([email protected][[email protected]]) + "]";
				set [email protected]$, [email protected]$ + ":";
			}
			set [email protected], [email protected][ select([email protected]$) ];
			if( !getequipisequiped([email protected]) )
			{
				mes "[Clown]";
				mes "Your not wearing anything there...";
				close;
			}
			mes "[Clown]";
			mes "You want to Costume your " + getitemname(getequipid([email protected])) + "?";
			next;
			if( select("Yes, proceed:No, I am sorry.") == 2 )
			{
				mes "[Clown]";
				mes "Need some time to think about it, huh?";
				mes "Alright, I can understand.";
				close;
			}


			costume [email protected]; // Convert the Headgear
			mes "[Clown]";
			mes "Done, enjoy your costume headgear.";
			close;
	case 2:
			next;
			mes "Please, select what to restore.";
			mes "Remember, I will only restore it back without refine and cards.";
			next;
				setarray [email protected]$[1],"Top","Mid","Low";
				setarray [email protected][1],     10,    11,   12;
				set [email protected]$,"";
			for( set [email protected], 1; [email protected] < 5; set [email protected], [email protected] + 1 )
			{
				if( getequipisequiped([email protected][[email protected]]) )
				set [email protected]$, [email protected]$ + [email protected]$[[email protected]] + "-" + "[" + getequipname([email protected][[email protected]]) + "]";
				set [email protected]$, [email protected]$ + ":";
			}
			set [email protected], [email protected][ select([email protected]$) ];
			if( !getequipisequiped([email protected]) )
			{
				mes "[Clown]";
				mes "Your not wearing anything there...";
				close;
			}
			mes "[Clown]";
			mes "You want to restore your " + getitemname(getequipid([email protected])) + "?";
			next;
			if( select("Yes, proceed:No, I am sorry.") == 2 )
			{
				mes "[Clown]";
				mes "Need some time to think about it, huh?";
				mes "Alright, I can understand.";
				close;
			}
			a = getequipid([email protected]);			
			delitem a,1;
			getitem a,1;
			
			mes "[Clown]";
			mes "Done, enjoy your restored headgear.";
			close;
	case 3:
		mes "[Clown]";
		mes "Very well. Return at once if you seek my services.";
		close;
	}
}
// --------------------------------------------------------------------------
// Use duplicates to put your npc on different cities
// --------------------------------------------------------------------------
prontera,155,181,4	duplicate(Costume Clown)	Costume Maker#1	715

 

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0
12 minutes ago, Ryo Osaki said:

Hello, @Takuyakii

Try mine.

PS: Upvote me if it's working to you ❤️ 

Download:

costumeconverter.txt 3.86 kB · 0 downloads

Thanks it works! , but you forgot the REquired zeny for Restoration .

can please help me more ?

Link to comment
Share on other sites

  • 0
On 11/6/2019 at 1:32 AM, Takuyakii said:

Thanks it works! , but you forgot the REquired zeny for Restoration .

can please help me more ?

Just change countitem to zeny.

Just change if(countitem) to if(Zeny < 1000000)

Link to comment
Share on other sites

  • 0
3 minutes ago, Ryo Osaki said:

Just change if(countitem) to if(Zeny < 1000000)

into these?

            if(Zeny < 1000000) {
            set Zeny,Zeny - 1000000;

Edited by Takuyakii
Link to comment
Share on other sites

  • 0
2 minutes ago, Takuyakii said:

into these?

            if(Zeny < 1000000) {
            set Zeny,Zeny - 1000000;

Yes try it. 🙂

If any errors occurs post it here.

Edited by Ryo Osaki
  • Upvote 1
Link to comment
Share on other sites

  • 0
3 minutes ago, Ryo Osaki said:

Yes try it. 🙂

If any errors occurs post it here.

i'm getting [DEBUG] on map. 

 

i put it like these 

 

EDIT: the zeny didn't took

if(Zeny < 1000000) {

				[email protected] = getequipid([email protected]);			
				delitem a,1;
				getitem a,1;
				set Zeny,Zeny - 1000000;
				costume [email protected]; // Convert the Headgear
				mes "[Clown]";
				mes "Done, enjoy your restored headgear.";				
			} else {
				mes "You need ZENY";

 

Edited by Takuyakii
EDIT
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...

Important Information

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