viewing paste Unknown #16275 | Athena

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
// 1 poring coin = 1 vote point
 
prontera,155,181,5  script  Sample#cashitem 757,{
.@item = 7539;
.@rate = 1;
 
.@countitem = countitem( .@item );
mes "Exchange "+.@countitem+" x "+getitemname( .@item )+" to "+( .@countitem * .@rate )+" Point ?";
 
if( .@countitem )
    if( select( "YES","Cancel" ) == 1 ){
        delitem .@item,.@countitem;
        #VOTEPOINTS = #VOTEPOINTS + ( .@countitem * .@rate );
        mes "Done";
    }
close;
}
Viewed 664 times, submitted by Guest.