I'm trying to run this command

Quote:
on *:TEXT:!!attack:#:{
if (%Attackers. [ $+ [ $nick ] ] != true) {
msg # $nick $+([Lv.,$lookup($nick,level),]) has started attacking %eMonster !
%Attackers. [ $+ [ $nick ] ] = true
%Participation. [ $+ [ $nick ] ] = 1
%Taunt. [ $+ [ $nick ] ] = 1
%SPEED = $calc($lookup($nick,SPD) * 5)
$+(.timerattack.,#,.,$nick) 0 %SPEED damage.mob $nick
;above is broken
}
else {
msg # You are already attacking %eMonster !
}
;higher participation means better exp but others wont get less than base exp
}

Code:
alias -l damage.mob {
  var %MonDMG = $calc($lookup($1,ATK) - %eDEF)
  %eHP = $calc(%eHP - %MonDMG)
  write -c Monsters/Spawned_HP.txt $+(HP: ,%eHP,/,%eMaxHP)
  if (%eHP < 0) {
    %Attackers. [ $+ [ $1 ] ] = false
    $+(.timerattack.,$chan,.,$1) off
  }
}


It keeps showing as the players name Unknown command
ex:
BOB Unknown command

I also tried $damage.mob($nick) which just showed
DAMAGE.MOB(BOB) Unknown command

So I'm a bit stumped again. Here is the documentation I reviewed to try to make this work:
https://en.wikibooks.org/wiki/MIRC_Scripting/BeyondBasics/Timers
http://en.wikichip.org/wiki/Timer#Hardware_timers

From my basic understanding the first script says in order to continue running a function it needs to be $!damage.bob however that made no difference.