prontera,158,190,4 script + / - Skillpoint 904,{
mes "[ ^ff0000Buy / Deduct Skillpoints^000000 ]";
mes "Hello! I can sell you skill points";
mes "And take away your extra skill points aswell";
next;
mes "[ ^ff0000Buy / Deduct Skillpoints^000000 ]";
mes "What do you want to do now?";
next;
set .buy,100000;
set .sell,50000;
switch(select("Buy Skillpoints!:Deduct Skill Points")){
case 1:
mes "[ ^ff0000Buy / Deduct Skillpoints^000000 ]";
mes "How many skill points you want to buy?";
input @amt,0,Zeny/.buy;
if( @amt == 0 ) close;
next;
mes "[ ^ff0000Buy / Deduct Skillpoints^000000 ]";
mes "There you go!";
set SkillPoint,SkillPoint + @amt;
set Zeny, Zeny - ( @amt * .buy );
close;
case 2:
mes "[ ^ff0000Buy / Deduct Skillpoints^000000 ]";
mes "How many skill points you want to deduct?";
input @amt,0,SkillPoint;
if( @amt == 0 ) close;
next;
mes "[ ^ff0000Buy / Deduct Skillpoints^000000 ]";
mes "There you go!";
set SkillPoint,SkillPoint - @amt;
set Zeny, Zeny + ( @amt * .sell );
close;
}
}
Question
Help-Help
the deduct part pls can you make it like this
Link to comment
Share on other sites
7 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.