viewing paste Unknown #27948 | Athena

Posted on the | Last edited on
1 2 3 4 5 6 7 8 9 10 11 12 13
// 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;
 
 
Viewed 1231 times, submitted by Dastgir.