Jump to content
  • 0

[SKILL POINTS] seller only.


Question

Posted

Hello rAthena community I've been searching in the forum about SKILL seller NPC but all i can find is/are STATS and SKILL NPC which i dont want, because i only want SKILL seller.

I want to edit existing script but i dont know how to and I am afraid to made a mess on my server.

can anyone help me?

What i want is an NPC that sells SKILL POINTS for 1 ITEM

for Example

1TCG = 1 skill Points.



I hope u can help me guys.


Thank you.

3 answers to this question

Recommended Posts

Posted

Try this one : 

prontera,150,150,0    script    Sample    -1,{
    mes "Input the points you want to purchase";
    next;
    input .@amount;
    if ( !.@amount || countitem(7227) < .@amount ) {
        mes "You don't have enough TCG to purchase skills";
        close;
    }
    delitem 7227, .@amount;
    SkillPoint += .@amount;
    close;
}
Posted
prontera,150,180,4	script	SkillPoint Seller	123,{
	mes "^0000FF[SkillPoint Seller]^000000";
	mes "Hello, I can sell you skill points.";
	mes "It will cost you 1TCG per 1 Skill Point.";
	mes "Do you want to trade?";
	if( select("Yes!:No.") == 2 ){close;}
	next;
	mes "^0000FF[SkillPoint Seller]^000000";
	mes "How many would you like to trade?";
	if( select("I'll decide:As many as possible.") == 2)
		{if(countitem(7227){ set SkillPoint, SkillPoint + countitem(7227); delitem(7227,countitem(7227)); mes "All done."; close;} else {mes "You don't have any TCGs."; close;}}
	input .@a;
	if( .@a <= 0 ){mes "Invalid amount."; close;}
	if( !countitem(7227) ){mes "You don't have any TCGs."; close;}
	if( .@a > countitem(7227) ){set SkillPoint, SkillPoint + countitem(7227); delitem(7227,countitem(7227)); mes "All done."; close;}
	set SkillPoint, SkillPoint + .@a;
	delitem(7227,countitem(7227));
	mes "All done.";
	close;
}

Meh, It could be refined.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...