gonryun,154,111,5 script Convert NPC 108,{
mes "I can exchange your Emblem Of the Sun God to Cash Points.";
next;
mes "How many would you like to exchange?";
menu "50 ESG",gold_50,"100 ESG",gold_100,"500 ESG",gold_500,"1000 ESG",gold_1k,"5000 ESG",gold_5k,"None",end1;
end1:
next;
mes "See you again.";
close;
gold_50:
if (countitem(19600) < 50) goto end2;
next;
mes "Here you go.";
set #CASHPOINTS,#CASHPOINTS+50;
delitem 19600,50;
mes "Thank you. Come again.";
close;
gold_100:
if (countitem(19600) < 100) goto end2;
next;
mes "Here you go.";
set #CASHPOINTS,#CASHPOINTS+100;
delitem 19600,100;
mes "Thank you. Come again.";
close;
gold_500:
if (countitem(19600) < 500) goto end2;
next;
mes "Here you go.";
set #CASHPOINTS,#CASHPOINTS+500;
delitem 19600,500;
mes "Thank you. Come again.";
close;
gold_1k:
if (countitem(19600) < 1000) goto end2;
next;
mes "Here you go.";
set #CASHPOINTS,#CASHPOINTS+1000;
delitem 19600,1000;
mes "Thank you. Come again.";
close;
gold_5k:
if (countitem(19600) < 5000) goto end2;
next;
mes "Here you go.";
set #CASHPOINTS,#CASHPOINTS+5000;
delitem 19600,5000;
dispbottom "You currently have "+ #CASHPOINTS +" Points."; <<<PUT IT HERE
mes "Thank you. Come again.";
close;
end2:
next;
mes "Sorry, you don't have enough Emblems for this transaction.";
close;
}