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
NPC COBRA.LUA
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())