Jump to content
  • 0

[SKILL POINTS] seller only.


karazu

Question


  • Group:  Members
  • Topic Count:  57
  • Topics Per Day:  0.01
  • Content Count:  374
  • Reputation:   5
  • Joined:  03/09/12
  • Last Seen:  

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.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

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;
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  57
  • Topics Per Day:  0.01
  • Content Count:  374
  • Reputation:   5
  • Joined:  03/09/12
  • Last Seen:  

wow, Thank you very much for a fast response, going to test it later.

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