// Coin to Points                 if(countitem(.coinname) < 1) { message strcharinfo(0),"You don't have enough coins!"; end; }                 mes .npcname$;                 mes "How many coins you want to trade?";                 input .@amount;                 if(!.@amount) { message strcharinfo(0),"Invalid amount!"; close; }                 if(countitem(.coinname) < .@amount) close;                 delitem .coinname, .@amount;               message strcharinfo(0), "You gained "+ (.@amount * 10) +" points!";                 #Mission_Points += .@amount*10;         close;