Jump to content
  • 0

Stat seller script request || Item Required to buy Stat points


AinsLord

Question


  • Group:  Members
  • Topic Count:  261
  • Topics Per Day:  0.08
  • Content Count:  758
  • Reputation:   20
  • Joined:  11/21/15
  • Last Seen:  

anyone have stat seller script NPC but instead of Zeny used to buy

it will ask some items to have like 10 stat points

thnx for the help

EDIT:

BASIC STAT ADD LIKE STR / AGI / ETC

Edited by whodhell
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  1138
  • Reputation:   290
  • Joined:  04/29/13
  • Last Seen:  

prontera,150,150,5	script	Stat Dealer	99,{

set .@item,7720; // Adjust the item id here
set .@name$,"[Stat Dealer]"; //Name of NPC in Dialogue can be changed here

mes .@name$;
mes "Good-day, I'm here to sell you Stat Points, each 10 Stat Points will cost you 1 "+getitemname(.@item)+" (id: "+.@item+")";
if(countitem(.@item) < 1) goto L_NoPay;
next;
mes .@name$;
mes "How many "+getitemname(.@item)+" would you like to use?";
mes "You have ^00FF00"+countitem(.@item)+"^000000 "+getitemname(.@item)+"";
mes "Use '0' to cancel transaction.";
input .@input;
if(.@input == 0) close;
if(.@input > countitem(.@item)) goto L_NoPay;
next;
mes .@name$;
mes "You would like to purchase "+.@input*10+" Status Points with "+.@input+" "+getitemname(.@item)+"";
switch(select("Yes:No")){
case 1:
		mes .@name$;
		mes "Transaction is completed, just the last few steps..";
	next;
		mes .@name$;
		mes "Transaction is completed, just the last few steps..";
		mes "..";
	next;
		mes .@name$;
		mes "Transaction is completed, just the last few steps..";
		mes "..";
		mes "...";
	next;
		mes .@name$;
		mes "Transaction is completed, just the last few steps..";
		mes "..";
		mes "...";
		mes "....";
	next;
	delitem .@item,.@input;
	set StatusPoint, StatusPoint + (.@input*10);
		mes .@name$;
		mes "Transaction is completed, just the last few steps..";
		mes "..";
		mes "...";
		mes "....";
		mes "Transaction has been completed.";
		mes "Have a nice day.";
	close;
case 2:
		mes .@name$;
		mes "Have a nice day.";
	close;
}


L_NoPay:
mes "I'm sorry but you don't have the required payment to proceed";
close;

}

 

  • Upvote 2
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  261
  • Topics Per Day:  0.08
  • Content Count:  758
  • Reputation:   20
  • Joined:  11/21/15
  • Last Seen:  

thnk u very much ill try this

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