Jump to content

Skill and Stat Point Merchant


Echo

Recommended Posts


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   2
  • Joined:  04/21/12
  • Last Seen:  

Simply converts zeny to skill or statpoints based on number input by user.

Will check to see if user has enough zeny.

One check I forgot to add is to see if user selling will surpass the zeny limit upon completion of the transaction.

Will add this if there is a desire.

.@zenycost is the variable used to change cost of purchase and the value of sale -> If requested I can modify script to have differing rates. Else follow the format of .@zenycost and replace the desired variables yourself!

 

Script:

http://pastebin.com/v5kz1R4h

pointmerchant.txt

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  1302
  • Reputation:   77
  • Joined:  12/04/12
  • Last Seen:  

hello sir, how do i add an item id instead of zeny ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   2
  • Joined:  04/21/12
  • Last Seen:  

hello sir, how do i add an item id instead of zeny ?

 

replace

set Zeny, Zeny - ( .@amount * .@zenyCost );

with

delitem itemid,itemamount;

and add a check to see if the player has the required item above this line

 

so something like

@numitem, 0, countitem( itemid );
if (@numitem < 1) {
mes "You don't have enough insertitemhere";
end;
}

This may not work as I don't have time to test this out this week but if this has not been addressed by friday I will get you a modified script as soon as I can!

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
Reply to this topic...

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