Jump to content
  • 0
Sign in to follow this  
wasaru

Buy skill points npc with limit

Question

can anyone do me a script a buy skill points npc with limit of 10skill points to buy

using this item 20x required

itemid ,30001,"Ubercoins"

 

thank you in advance :D

Edited by wasaru

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0
On 8/14/2018 at 1:32 PM, wasaru said:

can anyone do me a script a buy skill points npc with limit of 10skill points to buy

using this item 20x required

itemid ,30001,"Ubercoins"

 

thank you in advance :D

not test, but try this

prontera,147,162,5     script  Point Merchant  47,{
// ===================== Settings ===========================
set .@skillname$,"^0000FF[ Baldur ]^000000";
set .numitem,30001;
// ================== End of Settings =======================
mes .@skillname$;
mes "Hello ^FF0000["+strcharinfo(0)+"]^000000!";
mes "What do you want to do?";
next;
switch(select("-Buy Skill Point:-Cancel")) {
case 1:
		if (.numitem < 22) {
		mes "You don't have enough "+getitemname(.numitem)+"";
		end;
		}
		
        mes .@skillname$;
        mes "Okay input the Amount";
        mes "of Points you want to buy!";
        next;
        mes .@skillname$;
        mes "1 Point has a cost of 20 pcs "+getitemname(.numitem)+"";
        input .@amount;
        delitem .numitem,.@amount*20;
        set SkillPoint, SkillPoint + .@amount;
        mes "There you are, enjoy your new points!";
        close;
        }
case 2:
        mes .@skillname$;
        mes "Come again...";
        close;
}

 

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.