having problems with this script -
begin RAK_ilmm_patrol_leadershort doonceshort stateshort localtimerfloat nowhourif ( RAK_IL_patrol == 0 ) disable returnelseif ( RAK_IL_patrol == 1 ) enable returnelseif ( RAK_IL_patrol == 3 ) if ( state == 0 ) if ( doonce == 0 ) aiescort, "player", "Moonmoth Legion Fort", 0, -6807, -18369, 973, 0 set state to 1 set doonce to 1 return endif elseif ( state == 1 ) if ( doonce == 0 ) aiescort, "player", "West Gash Region", 0, -10655, -18806, 610, 0 set doonce to 1 return endif elseif ( state == 2 ) if ( doonce == 0 ) aiescort, "player", "West Gash Region", 0, -6627, -10950, 396, 0 set doonce to 1 return endif elseif ( state == 3 ) if ( doonce == 0 ) aiescort, "player", "West Gash Region", 0, -9503, -2689, 823, 0 set doonce to 1 return endif elseif ( state == 4 ) if ( doonce == 0 ) aiescort, "player", "West Gash Region", 0, -10358, -678, 688, 0 set doonce to 1 return endif elseif ( state == 5 ) if ( doonce == 0 ) aiescort, "player", "West Gash Region", 0, -10351, 6007, 1381, 0 set doonce to 1 return endif elseif ( state == 6 ) if ( doonce == 0 ) aiescort, "player", "West Gash Region", 0, -9266, 7513, 1237, 0 set doonce to 1 return endif elseif ( state == 7 ) if ( doonce == 0 ) aiescort, "player", "West Gash Region", 0, -9833, 14364, 1229, 0 set doonce to 1 return endif elseif ( state == 8 ) if ( doonce == 0 ) aiescort, "player", "Caldera" 0, -10356, 17672, 1252, 0 set doonce to 1 return endif endif if ( ( ondeath ) == 1 ) set RAK_il_patleddead to 1 endif set localtimer to ( localtimer + 1 ) if ( localtimer > 4 ) if ( ( getaipackagedone ) == 1 ) set state to ( state + 1 ) set doonce to 0 endif set timer to 0 endif returnelseif ( RAK_IL_patrol == 4 ) if ( doonce <= 2 ) aiwander, 0, 0, 0 set doonce to 3 endif set nowhour to gamehour if ( gamehour >= ( nowhour + 1 ) ) disable sethealth -500 endifendifend
i'm getting a left eval error when RAK_IL_patrol == 3, and i cant figure out why.