Jump to content
  • 0
itsmeyoe

Stats Seller 10 stats = 3m 1 stats = 300k

Question

4 answers to this question

Recommended Posts

or you can try this?

mes "How many Status Point you want to purchase ?";
mes "1 Point = 300,000 Zeny.";
mes "You have "+Zeny+" Zeny , can purchase "+( Zeny / 300000 )+" Points.";
input [email protected],0,( Zeny / 300000 );
mes "You purchased "[email protected]+" Points.";
set StatusPoint,StatusPoint + 1;
set Zeny,Zeny - ( 300000 * [email protected] );
close;

  • Upvote 1
Link to comment
Share on other sites

This should work. But I haven't tested it:

//===== rAthena Script =======================================
//= Stat Point Seller
//===== By: ==================================================
//= Bahmut
//===== Current Version: =====================================
//= 1.0
//===== Description: =========================================
//= Sells Stat Points to Players
//=  - 1 Stat Point for 300.000 zeny
//=  - 10 Stat Points for 3.000.000 zeny
//============================================================

prontera,146,174,4<tab>script<tab>Stat Point Seller<tab>727,{
mes "[stat Point Seller]";
mes "How many Stat Points do you want to buy?";
switch(select("1 Stat Point for 300.000 zeny","10 Stat Points for 3.000.000 zeny")) {
	case 1:
		mes "[stat Point Seller]";
		mes "This will cost you 300.000 zeny. Is this ok?";
		next;
		if (select("Yes:No") == 2) close;
		mes "[stat Point Seller]";
		if (Zeny < 300000) {
			mes "You do not have enough zeny!";
               close;
		}
		set StatusPoint,StatusPoint + 1;
		set Zeny,Zeny - 300000;
		mes "Thank you for your purchase.";
		close;

	case 2:
		mes "[stat Point Seller]";
		mes "This will cost you 3.000.000 zeny. Is this ok?";
		next;
		if (select("Yes:No") == 2) close;
		mes "[stat Point Seller]";
		if (Zeny < 3000000) {
			mes "You do not have enough zeny!";
               close;			}
		set StatusPoint,StatusPoint + 10;
		set Zeny,Zeny - 3000000;
		mes "Thank you for your purchase.";
		close;
}
}

Link to comment
Share on other sites

It Don't Work For Me what am i doing wrong i put it in npc custorm then i wont to the scripts custom to add on server but not showing up

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.