Cash Points instead Zeny in a npc

HyperSonic2097

New member
Messages
50
Points
0
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

 
use the variables #CASHPOINTS or #KAFRAPOINTS instead of Zeny

 
Back
Top