Jump to content
  • 0

[SOLVED] 3rd Job Costume With Payment


GM Winter

Question


  • Group:  Members
  • Topic Count:  176
  • Topics Per Day:  0.15
  • Content Count:  666
  • Reputation:   9
  • Joined:  12/04/20
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  208
  • Reputation:   22
  • Joined:  01/14/13
  • Last Seen:  

You can do also.
 

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

if (.mode == 0) goto normal;
if (Zeny < .@price) 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 -= .@price; changebase 4060; close; end; }
if(class == Job_Assassin) {Zeny -= .@price; changebase 4065; close; end; }
if(class == Job_Crusader) { Zeny -= .@price; changebase 4073; close; end; }
if(class == Job_Blacksmith) { Zeny -= .@price; changebase 4064; close; end; }
if(class == Job_Alchemist) { Zeny -= .@price; changebase 4078; close; end; }
if(class == Job_Rouge) {Zeny -= .@price; changebase 4079; close; end; }
if(class == Job_Sage) { Zeny -= .@price; changebase 4074; close; end; }
if(class == Job_Dancer) { Zeny -= .@price; changebase 4076; close; end; }
if(class == Job_Monk) { Zeny -= .@price; changebase 4077; close; end; }
if(class == Job_Hunter) { Zeny -= .@price; changebase 4062; close; end; }
if(class == Job_Bard) { Zeny -= .@price; changebase 4075; close; end; }
if(class == Job_Wizard) { Zeny -= .@price; changebase 4061; close; end; }

 

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

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.01
  • Content Count:  398
  • Reputation:   246
  • Joined:  07/04/19
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  176
  • Topics Per Day:  0.15
  • Content Count:  666
  • Reputation:   9
  • Joined:  12/04/20
  • Last Seen:  

image.thumb.png.0d26c018fc527cef7c562987a54d3dcd.png

thank you for fast reply i got this error

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  176
  • Topics Per Day:  0.15
  • Content Count:  666
  • Reputation:   9
  • Joined:  12/04/20
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  208
  • Reputation:   22
  • Joined:  01/14/13
  • Last Seen:  

11 minutes ago, chadness said:

image.thumb.png.0d26c018fc527cef7c562987a54d3dcd.png

thank you for fast reply i got this error

 

i already update it check it.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  176
  • Topics Per Day:  0.15
  • Content Count:  666
  • Reputation:   9
  • Joined:  12/04/20
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  176
  • Topics Per Day:  0.15
  • Content Count:  666
  • Reputation:   9
  • Joined:  12/04/20
  • Last Seen:  

12 minutes ago, Cookie-rae said:

i already update it check it.

image.thumb.png.1861b6f5f42c56c813af5982aa6f4d1a.png

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  176
  • Topics Per Day:  0.15
  • Content Count:  666
  • Reputation:   9
  • Joined:  12/04/20
  • Last Seen:  

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