• 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!

Problem with start OTS linux

Pawelwroclaw

New Member
Joined
Aug 22, 2014
Messages
34
Reaction score
0
Hi Guys,
i have problem with start server ots,

[Warning - ConjureSpell::loadFunction] Function "conjureFood" does not exist.
[Error - LuaInterface::loadFile] data/creaturescripts/scripts/save.lua:5: ')' expected near 's'
[Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/save.lua)
data/creaturescripts/scripts/save.lua:5: ')' expected near 's'
[Error - LuaInterface::loadFile] data/creaturescripts/scripts/save.lua:5: ')' expected near 's'
[Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/save.lua)
data/creaturescripts/scripts/save.lua:5: ')' expected near 's'

and my script

function saveRepeat(cid)
if not isPlayer(cid) then return true end
doPlayerSave(cid)
doPlayerSendTextMessage(cid,19, 'Your character's achievements were saved.')
doSendMagicEffect(getThingPos(cid), 14)
save = addEvent(saveRepeat, math.random(30,40) *60*1000, cid)
end

function onLogin(cid)
save = addEvent(saveRepeat, math.random(30,40)*60*1000, cid)
return true
end

function onLogout(cid)
stopEvent(save)
return true
end

plx help and thank :)
 
Code:
function saveRepeat(cid)
   if not isPlayer(cid) then return true end
   
   doPlayerSave(cid)
   doPlayerSendTextMessage(cid,19, 'Your character\'s achievements were saved.')
   doSendMagicEffect(getThingPos(cid), 14)
   save = addEvent(saveRepeat, math.random(30,40) *60*1000, cid)
end

function onLogin(cid)
   save = addEvent(saveRepeat, math.random(30,40)*60*1000, cid)
   return true
end

function onLogout(cid)
   stopEvent(save)
   return true
end

'Your character's achievements were saved.' < This sentence is wrong because you use another ' so just add a slash \ infront of the ' in the message.
 
i have question, how delete npc ?

[Error - LuaInterface::loadFile] cannot open data/npc/lib/npcsystem/main.lua: No such file or directory
I/O warning : failed to load external entity "data/npc/eremo.xml"
[Warning - Npc::loadFromXml] Cannot load npc file (data/npc/eremo.xml).
Info: failed to load external entity "data/npc/eremo.xml"
 
Back
Top