Jump to content
  • 0

How to make this one.


CtrlDream

Question


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   0
  • Joined:  12/01/12
  • Last Seen:  

Can anyone make some custom points system. Like THQ points that can buy items, and like refer NPC. Those npc's use custom points then can buy items in npc that requires to have that points. I just want to have something like that, for example, this npc needs this required items (7227), then if the player gives the items, itll give #exclusive points and that points can only use or buy on one npc that only using that points. Sorry for my very bad english. Hard to explain this thing >.<

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  410
  • Reputation:   29
  • Joined:  04/04/12
  • Last Seen:  

Just have the NPC take the item 7227, and in return you

 

set #EPOINTS, #EPOINTS+1;

 

And then when you're going to buy an item, just check the points and subtract them.  Like this.

 

if (#EPOINTS > 49) {
    set #EPOINTS, #EPOINTS-50;
    getitem 509,1;
    close;
    }
else {
    mes "You don't have enough points.";
    close;
}
Edited by michaelsoftman
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   0
  • Joined:  12/01/12
  • Last Seen:  

Uhm sir, woulf you mind if you give me a full script of this npc. I am noob, please bear with me.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  520
  • Reputation:   64
  • Joined:  11/19/11
  • Last Seen:  

Post your Script here so we can edit it for you.

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