• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Lua Npc error

Lucenzo

The Way You Move :)
Joined
Jan 29, 2011
Messages
363
Reaction score
14
Location
UK
Heya


Small problem, can't figure out whats up.


Code:
'end' expected (to close 'function' at line 18

But line 17-18 is

LUA:
end
end

If someone could explain what does this mean? the <eof> thing...

LUA:
lua:18: '<eof>' expected near 'end'


Thanks in Advance. x x
 
Did that, but...

LUA:
data/npc/scripts/lucius.lua:59: 'end' expected (to close 'function' at line 18) near '<eof>'
[21:32:15.518] [Warning - NpcEvents::NpcEvents] Cannot load script: data/npc/scripts/lucius.lua
[21:32:15.518] data/npc/scripts/lucius.lua:59: 'end' expected (to close 'function' at line 18) near '<eof>'


Could you also explain what <eof> is/means?

Thanks x x
 
"end of function"

Going to post the whole script? They way it's made could cause more problems.

-JDB
 
Last edited:
Back
Top