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

Solved Console errors when reloading actions.

Exoltes

Novia OTserv Developer
Joined
Jul 2, 2009
Messages
563
Reaction score
47
Location
Belgium
I'm working on a 8.54 Open Tibia Server using The Forgotten Server - Version 0.2.7 (Mystic Spirit).

When I reload my actions I sometimes get errors.

Ex:
Code:
[14/07/2015 23:09:55] Lua Script Error: [Npc interface] 
[14/07/2015 23:09:55] data/npc/scripts/Back to City.lua:onThink

[14/07/2015 23:09:55] luaSetConditionParam(). This function can only be used while loading the script.
[14/07/2015 23:09:55] Reloaded actions.

Code:
[14/07/2015 13:15:10] Lua Script Error: [Npc interface] 
[14/07/2015 13:15:10] data/npc/scripts/default.lua:onThink

[14/07/2015 13:15:10] luaSetCombatParam(). This function can only be used while loading the script.

[14/07/2015 13:15:10] Lua Script Error: [Npc interface] 
[14/07/2015 13:15:10] data/npc/scripts/default.lua:onThink

[14/07/2015 13:15:10] luaSetCombatParam(). This function can only be used while loading the script.

[14/07/2015 13:15:10] Lua Script Error: [Npc interface] 
[14/07/2015 13:15:10] data/npc/scripts/default.lua:onThink

[14/07/2015 13:15:10] luaSetCombatParam(). This function can only be used while loading the script.

[14/07/2015 13:15:10] Lua Script Error: [Npc interface] 
[14/07/2015 13:15:10] data/npc/scripts/default.lua:onThink

[14/07/2015 13:15:10] luaSetCombatParam(). This function can only be used while loading the script.

[14/07/2015 13:15:10] Lua Script Error: [Npc interface] 
[14/07/2015 13:15:10] data/npc/scripts/default.lua:onThink

[14/07/2015 13:15:10] luaSetCombatParam(). This function can only be used while loading the script.

[14/07/2015 13:15:10] Lua Script Error: [Npc interface] 
[14/07/2015 13:15:10] data/npc/scripts/default.lua:onThink

[14/07/2015 13:15:10] luaCreateConditionObject(). This function can only be used while loading the script.

[14/07/2015 13:15:10] Lua Script Error: [Npc interface] 
[14/07/2015 13:15:10] data/npc/scripts/default.lua:onThink

[14/07/2015 13:15:10] luaSetConditionParam(). This function can only be used while loading the script.
[14/07/2015 13:15:10] Reloaded actions.

Code:
[14/07/2015 17:04:45] Lua Script Error: [Npc interface] 
[14/07/2015 17:04:45] data/npc/scripts/temple.lua:onThink

[14/07/2015 17:04:45] luaCreateConditionObject(). This function can only be used while loading the script.

[14/07/2015 17:04:45] Lua Script Error: [Npc interface] 
[14/07/2015 17:04:45] data/npc/scripts/temple.lua:onThink

[14/07/2015 17:04:45] luaSetConditionParam(). This function can only be used while loading the script.

Maybe anyone knows what exactly is causing this or how to fix it?

Thanks in advance.
 
Dude, that means that you sould put the "local" above the "function" lets see..... onThink.... Combat... All that comes before the function itself. Look at the spells scripts and other NPCs scripts for example, that will help you write.
 
Back
Top