Sallycantdance Posted January 18, 2021 Group: Members Topic Count: 225 Topics Per Day: 0.14 Content Count: 798 Reputation: 12 Joined: 12/04/20 Last Seen: Monday at 09:00 AM Share Posted January 18, 2021 (edited) 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 January 18, 2021 by chadness Quote Link to comment Share on other sites More sharing options...
0 hikashin-rae Posted January 18, 2021 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 213 Reputation: 24 Joined: 01/14/13 Last Seen: 16 hours ago Share Posted January 18, 2021 (edited) 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 January 18, 2021 by Cookie-rae 1 Quote Link to comment Share on other sites More sharing options...
0 BeWan Posted January 18, 2021 Group: Members Topic Count: 20 Topics Per Day: 0.01 Content Count: 403 Reputation: 249 Joined: 07/04/19 Last Seen: Monday at 05:51 PM Share Posted January 18, 2021 (edited) 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 January 18, 2021 by BeWan Quote Link to comment Share on other sites More sharing options...
0 Sallycantdance Posted January 18, 2021 Group: Members Topic Count: 225 Topics Per Day: 0.14 Content Count: 798 Reputation: 12 Joined: 12/04/20 Last Seen: Monday at 09:00 AM Author Share Posted January 18, 2021 thank you for fast reply i got this error Quote Link to comment Share on other sites More sharing options...
0 Sallycantdance Posted January 18, 2021 Group: Members Topic Count: 225 Topics Per Day: 0.14 Content Count: 798 Reputation: 12 Joined: 12/04/20 Last Seen: Monday at 09:00 AM Author Share Posted January 18, 2021 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 Quote Link to comment Share on other sites More sharing options...
0 hikashin-rae Posted January 18, 2021 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 213 Reputation: 24 Joined: 01/14/13 Last Seen: 16 hours ago Share Posted January 18, 2021 11 minutes ago, chadness said: thank you for fast reply i got this error i already update it check it. Quote Link to comment Share on other sites More sharing options...
0 Sallycantdance Posted January 18, 2021 Group: Members Topic Count: 225 Topics Per Day: 0.14 Content Count: 798 Reputation: 12 Joined: 12/04/20 Last Seen: Monday at 09:00 AM Author Share Posted January 18, 2021 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; Quote Link to comment Share on other sites More sharing options...
0 Sallycantdance Posted January 18, 2021 Group: Members Topic Count: 225 Topics Per Day: 0.14 Content Count: 798 Reputation: 12 Joined: 12/04/20 Last Seen: Monday at 09:00 AM Author Share Posted January 18, 2021 12 minutes ago, Cookie-rae said: i already update it check it. Quote Link to comment Share on other sites More sharing options...
0 Sallycantdance Posted January 18, 2021 Group: Members Topic Count: 225 Topics Per Day: 0.14 Content Count: 798 Reputation: 12 Joined: 12/04/20 Last Seen: Monday at 09:00 AM Author Share Posted January 18, 2021 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 Quote Link to comment Share on other sites More sharing options...
0 hikashin-rae Posted January 18, 2021 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 213 Reputation: 24 Joined: 01/14/13 Last Seen: 16 hours ago Share Posted January 18, 2021 Welcome sir. 1 Quote Link to comment Share on other sites More sharing options...
Question
Sallycantdance
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 chadnessLink to comment
Share on other sites
9 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.