Jump to content
  • 0
HyperSonic2097

Cash Points instead Zeny in a npc

Question

Hi, i have a little question...

For example if I want add/remove x Zeny from player in a script, i write something like this


HEALHP:

    if (Zeny < 1) { //<--this
    mes "[Wandering Arch Bishop]";
    mes "Sorry you do not have enough Zeny!";
    mes "Come back when you can affort it.";
    close;
    } else {
    mes "[Wandering Arch Bishop]";
    mes "Here you go, back to full Health!";
    close2;
    Zeny -= 1; //<-- this
    percentheal 100, 0;
    end;
}

Ok, my question is: and if i want to use cash points instead of zeny?? What is the correct syntax in that case?

 

thanks in advance

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

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

×
×
  • Create New...

Important Information

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