on *:TEXT:!decgoal*:#: { if ($nick !isreg $chan) { if ($2 isnum 1-5) { while ($readini(goals.ini, goals, $nick [ $+ [ $2 ] ] $calc($readini(goals.ini,goals,$nick $+ $2 ) - $3 ) ) > 0) { //writeini goals.ini goals $nick $+ $2 $calc(($readini(goals.ini,goals, $nick $+ $2 )) - $3) .notice $nick New Total: $readini(goals.ini,goals, $nick $+ $2 ) out of %goal [ $+ [ $nick ] $+ [ $2 ] ] %goalitem [ $+ [ $2 ] ] $+ 's } else { .notice $nick Congratulations on completing your goal of %goal [ $+ [ $nick ] $+ [ $2 ] ] %goalitem [ $+ [ $2 ] ] $+ 's //unset %goal $+ $nick $+ $2 //unset %goalitem $+ $2 //remini goals.ini goals $nick $+ $2 } } else { .notice $nick You either have not set a number $2 goal, or you did not follow format. !decgoal (goalnumber 1-5) (number to decrease) } } else { .notice $nick You must be voiced to use this command. Sorry. } }