Jump to content
  • 0

Scripting- How to get custom points system?


vip53041

Question


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  52
  • Reputation:   0
  • Joined:  04/27/13
  • Last Seen:  

Hello rAthena Scripting dev,

 

 

i would like to have if possible, customize points system. I can call it Legacy Points.

 

 

the NPC Shop using LP "Legacy Points".

 

so who have Legacy points can purchase from this shop?

 

 

 

where to modifiy on rAthena server?

 

 

 

Thanks in advance.

Edited by vip53041
Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1125
  • Reputation:   236
  • Joined:  07/30/12
  • Last Seen:  

set legacypoints,legacypoints+1;

 

Sample Shop:

mes "Do you want to get this item?";
menu "Yes",-,"No",Lno;
next;
if(legacypoints < 30) goto Lnenough;
mes "Sure then!";
set legacypoints,legacypoints-30;
getitem 512,1;
close;
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...