[@MagicAttack] #if CHECKCURRTARGETRACE = 2 #act break #if CHECK [18] 0 #act break #if large <$KFDAYS> 3 #ACT break #if chk_mon_lv999 <$CURRRTARGETNAME> #act RangeHarm <$ATTACKMONSTER_XEX> <$ATTACKMONSTER_YEX> 0 1 9 60 0 2 0 0 [@Attack] #if CHECKCURRTARGETRACE = 2 #act break #if CHECK [18] 0 #act break #if large <$KFDAYS> 3 #ACT break #if chk_mon_lv999 <$CURRRTARGETNAME> #act RangeHarm <$ATTACKMONSTER_XEX> <$ATTACKMONSTER_YEX> 0 1 9 60 0 2 0 0
function chk_mon_lv99(actor, mon_name) local lv = getdbmonfieldvalue(mon_name, "level") or 1 if lv == 666 or lv == 999 then return true else return false end end