on *:text:!buysong:#kuyaace00: {
if ((%floodbuysong) || ($($+(%,floodbuysong.,$nick),2))) { return }
set -u10 %floodbuysong On
set -u30 %floodbuysong. $+ $nick On
var %topic $+($chan,.,$nick)
var %points $iif($readini(Points.ini,%topic,Points) == $null,0,$v1)
if (%points < 50) {
msg $chan $nick does not have enough points to purchase a song.
return
}
%points = $calc(%points - 50)
msg $chan $nick just purchased a song request, from $chan $+ . Removed 50 coins from $nick (Had $calc(%points + 50) coins and now has %points coins).
writeini -n Points.ini %topic Points %points
return %points
}