From 69b8e2bcd65a2e361a617bf9335d7c336fed287e Mon Sep 17 00:00:00 2001 From: Allanis Date: Sun, 17 Mar 2013 20:28:49 +0000 Subject: [PATCH] [Fix] Typo in lua'z. --- scripts/ai/pirate.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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