Jump to content
  • 0
GM Winter

[SOLVED] 3rd Job Costume With Payment

Question

hello everyone i would like to ask how to put payment "zeny" in this script thanks in advance

 

 

// Settings
set .mode, 1; // Set it as following: 0 - 2nd to 3rd class suits ; 

if (.mode == 0) goto normal;

normal:
mes "[suit Provider]";
mes "So, wanna change your appearance?";
menu "Change to Third class suit",thirdclass,"Reset appearance",reset;

thirdclass:
if(class == Job_Knight) { changebase 4060; close; end; }
if(class == Job_Assassin) { changebase 4065; close; end; }
if(class == Job_Crusader) { changebase 4073; close; end; }
if(class == Job_Blacksmith) { changebase 4064; close; end; }
if(class == Job_Alchemist) { changebase 4078; close; end; }
if(class == Job_Rouge) { changebase 4079; close; end; }
if(class == Job_Sage) { changebase 4074; close; end; }
if(class == Job_Dancer) { changebase 4076; close; end; }
if(class == Job_Monk) { changebase 4077; close; end; }
if(class == Job_Hunter) { changebase 4062; close; end; }
if(class == Job_Bard) { changebase 4075; close; end; }
if(class == Job_Wizard) { changebase 4061; close; end; }
if(class == Job_Priest) { changebase 4063; close; end; }
else { next; mes "[suit Provider]"; mes "I'm sorry, but your class is not supported."; close; end; }


reset:
changebase Class;
close;
end;

}

Edited by chadness
Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 0

You can do also.
 

// Settings
set .mode, 1; // Set it as following: 0 - 2nd to 3rd class suits ; 
set [email protected], 1000;	// Zeny required

if (.mode == 0) goto normal;
if (Zeny < [email protected]) goto Nozeny1;

normal:
mes "[suit Provider]";
mes "So, wanna change your appearance?";
menu "Change to Third class suit",thirdclass,"Reset appearance",reset;

Nozeny1:
	mes "[suit Provider]";
	mes "You need zeny to talk to me.";
	close;

thirdclass:
if(class == Job_Knight) { Zeny -= [email protected]; changebase 4060; close; end; }
if(class == Job_Assassin) {Zeny -= [email protected]; changebase 4065; close; end; }
if(class == Job_Crusader) { Zeny -= [email protected]; changebase 4073; close; end; }
if(class == Job_Blacksmith) { Zeny -= [email protected]; changebase 4064; close; end; }
if(class == Job_Alchemist) { Zeny -= [email protected]; changebase 4078; close; end; }
if(class == Job_Rouge) {Zeny -= [email protected]; changebase 4079; close; end; }
if(class == Job_Sage) { Zeny -= [email protected]; changebase 4074; close; end; }
if(class == Job_Dancer) { Zeny -= [email protected]; changebase 4076; close; end; }
if(class == Job_Monk) { Zeny -= [email protected]; changebase 4077; close; end; }
if(class == Job_Hunter) { Zeny -= [email protected]; changebase 4062; close; end; }
if(class == Job_Bard) { Zeny -= [email protected]; changebase 4075; close; end; }
if(class == Job_Wizard) { Zeny -= [email protected]; changebase 4061; close; end; }

 

Edited by Cookie-rae
  • Upvote 1
Link to comment
Share on other sites

  • 0
set .Fee,500000;

if(Zeny < .Fee){ npctalk "message"; end; }
if(class == Job_Knight) { set Zeny, Zeny - .Fee; changebase 4060; close; end; }
if(class == Job_Assassin) { set Zeny, Zeny - .Fee; changebase 4065; close; end; }
if(class == Job_Crusader) { set Zeny, Zeny - .Fee; changebase 4073; close; end; }

 

Edited by BeWan
Link to comment
Share on other sites

  • 0
17 minutes ago, BeWan said:
set .Fee = 500000;

if(Zeny < .Fee){ npctalk "message"; end; }
if(class == Job_Knight) { set Zeny, Zeny - .Fee; changebase 4060; close; end; }
if(class == Job_Assassin) { set Zeny, Zeny - .Fee; changebase 4065; close; end; }
if(class == Job_Crusader) { set Zeny, Zeny - .Fee; changebase 4073; close; end; }

 

thankyou ill try this

Link to comment
Share on other sites

  • 0
40 minutes ago, BeWan said:
set .Fee,500000;

if(Zeny < .Fee){ npctalk "message"; end; }
if(class == Job_Knight) { set Zeny, Zeny - .Fee; changebase 4060; close; end; }
if(class == Job_Assassin) { set Zeny, Zeny - .Fee; changebase 4065; close; end; }
if(class == Job_Crusader) { set Zeny, Zeny - .Fee; changebase 4073; close; end; }

 

got error in the line

set .Fee,500000;
Link to comment
Share on other sites

  • 0
14 minutes ago, Cookie-rae said:

i already update it check it.

thanks man already see the error and fix it thanks for the script just theres no problem in your script the error is i didnt put the ending haha thanks again ❤️

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.