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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

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