manual mo lng bro mas madali. gamit ka ng notepad++ meron ka pang babagohin sa element_id. malalaman mo din yan may na labas na unknown db kapag i-rrun mo server files mo.
how to modify this to cashpoint to TCG? Thanks
<header>{
set .@i, countitem(7227);
mes "[TCG Exchanger]";
mes "You have ^0055FF"+.@i+" TCG^000000.";
if (!.@i) { mes "Please come back later."; close; }
mes "I can trade ^FF00001 TCG^000000 for ^FF00005 Cash Points^000000.";
next;
if(select(" - Trade: - ^777777Leave^000000")==2) close;
mes "[TCG Exchanger]";
mes "How many would you like to exchange?";
next;
input .@j;
mes "[TCG Exchanger]";
if (.@j < 1 || .@j > countitem(7227)) { mes "That's an invalid amount."; close; }
mes "Are you sure you want to exchange ^0055FF"+.@j+" TCG^000000?";
if(select(" - Yes: - No")==2) close;
mes " ";
delitem 7227, .@j;
set #CASHPOINTS, #CASHPOINTS+(.@j*5);
mes "You now have "+#CASHPOINTS+" Cash Points.";
close;
}