diff --git a/scripts/ai/pirate.lua b/scripts/ai/pirate.lua index f3af2bb..445435b 100644 --- a/scripts/ai/pirate.lua +++ b/scripts/ai/pirate.lua @@ -21,7 +21,7 @@ function control() if ai.parmour() == 100 and enemy ~= 0 then -- Taunts. num = ai.rnd(0,4) - if num == 0 then msg "Prepare to be boarded!" + if num == 0 then msg = "Prepare to be boarded!" elseif num == 1 then msg = "Whoa! Lookie what we found here!" elseif num == 2 then msg = "What's a ship like you doing in a place like this?" end @@ -74,7 +74,7 @@ end -- Run away from the target. function runaway() - target = ai.targerid() + target = ai.targetid() -- Ensure target exists. if not ai.exists(target) then