alohadoubt
New member
- Messages
- 16
- Points
- 0
are this commands #CASHPOINTS and #KAFRAPOINTS can be use in NPC script? can someone give me a sample.
let say if the user input -1 or just 0 or letterinput @ticket;
if(countitem(30801)<@ticket) {
cutin "kafra_06.bmp",255;
mes .@adikrepname$;
mes "Insufficient A.D. tickets. Please come back when you have enough tickets.";
close;
}
delitem 30801,@ticket;
set #CASHPOINTS, #CASHPOINTS+(@adtpoints*@ticket);
cutin "kafra_06.bmp",255;
mes .@adikrepname$;
mes "Cash Points Added.";
close;
thanksdo {
input @ticket;
} while (@ticket < 1 || @ticket > 1000);
if(countitem(30801)<@ticket) {
cutin "kafra_06.bmp",255;
mes .@adikrepname$;
mes "Insufficient A.D. tickets. Please come back when you have enough tickets.";
close;
}
delitem 30801,@ticket;
set #CASHPOINTS, #CASHPOINTS+(@adtpoints*@ticket);
cutin "kafra_06.bmp",255;
mes .@adikrepname$;
mes "Cash Points Added.";
close;
We use essential cookies to make this site work, and optional cookies to enhance your experience.