• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

NPC Error FORGOTTENSERVER-ORTS

arthurluna

Member
Joined
Apr 12, 2008
Messages
178
Reaction score
12
Currently some NPC in data pack-FORGOTTENSERVER ORTS are a problem that can not solve, can someone tell me which means I have to get a solution to remedy the problem?

Error
Code:
[Warning - NpcScript::NpcScript] Can not load script: Jean Pierre.lua
data/npc/scripts/Jean Pierre.lua:1: unexpected symbol near '´'
[Warning - NpcScript::NpcScript] Can not load script: Myra.lua
data/npc/scripts/Myra.lua:1: unexpected symbol near '´'
[Warning - NpcScript::NpcScript] Can not load script: Kjesse.lua
data/npc/scripts/Kjesse.lua:1: unexpected symbol near '´'
[Warning - NpcScript::NpcScript] Can not load script: Duncan.lua
data/npc/scripts/Duncan.lua:1: unexpected symbol near '´'
[Warning - NpcScript::NpcScript] Can not load script: A Majestic Warwolf.lua
data/npc/scripts/A Majestic Warwolf.lua:1: unexpected symbol near '´'
[Warning - NpcScript::NpcScript] Can not load script: Cobra.lua
data/npc/scripts/Cobra.lua:1: unexpected symbol near '´'

NPC COBRA.LUA
Code:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}

function onCreatureAppear(cid)
    npcHandler:onCreatureAppear(cid)           
end
function onCreatureDisappear(cid)
    npcHandler:onCreatureDisappear(cid)           
end
function onCreatureSay(cid, type, msg)
    npcHandler:onCreatureSay(cid, type, msg)       
end
function onThink()
    npcHandler:onThink()                   
end

function greetCallback(cid)
    local player = Player(cid)
    if player:getCondition(CONDITION_POISON) then
        player:sendTextMessage(MESSAGE_STATUS_WARNING, "Venture the path of decay!")
        player:getPosition():sendMagicEffect(CONST_ME_TELEPORT)
        player:teleportTo(Position({x = 33396, y = 32836, z = 14}))
        player:getPosition():sendMagicEffect(CONST_ME_TELEPORT)
        return false
    else
        npcHandler:say("Begone! Hissssss! You bear not the mark of the cobra!", cid)
        return false
    end
    return true
end

npcHandler:setCallback(CALLBACK_GREET, greetCallback)
npcHandler:addModule(FocusModule:new())
 
Create new .lua file for each corrupted file.
Copy the text from the corrupted files into the new .lua file you made.

Those corrupted lua files won't work, you must create new file to get them working. (but you can copy the text from these old files)

I am not sure what part of those files is corrupted then since the text seems just fine.
 
Back
Top