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; } |