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

Windows Cant see npc in the server.

NothingFree

New Member
Joined
Apr 2, 2011
Messages
9
Reaction score
0
I've downloaded the forgotten server 9.54, I've just looked at it to see how it is.
I cant see any npc in the server, inside the lua scripts folder evryething exist (Nps system, the npcs themselves).
However I don't know how to add them.
---
I have another question about programming the source code of tfs, I'm programming in C#-advanced, C-intermediate and CPP covered the basics although i'm familiar with OOP.
I'm developing game in C# (using XNA of course) and wanted to learn CPP by editing the source of tibia(one of my favorite old games).
Is it possible to change tibia it self? Or just the source of tfs? Adding quests, npcs , creatures are done by scripting LUA\xml or the source it self?
---
Where can I find latest source code of tfs or other servers? (if is there any)
Thank you ^_^
 
What's "Premium board"? What is the latest stable version of tfs? Do you have any suggestions about a good ot server?
As I said I want to make things on my own and I don't really know how the scripting works here.
How is scripting with lua combined with C++?
 
I donwload the forgotten server 9.54 and i had the same error.

You need import the NPC with remere's map editor, if the NPC doesn't be imported remove this in NPC.xml

LUA:
<parameters>
...
Here go the parameters
</parameters>

Try to import the npc again, place it with a spawner monster and save the map, restart the server and see if it works.

If you have some errors on npc.lua put them in another post. To try it well use your npc/script/default.lua

Comment when you try this.
 
Maybe there are some script but for a higgest version of tfs... and if you dont have it can be bugged... If someone help you in this wellcome but if no one have it you need make it for your own.

PD: When you use npc/script/default.lua the npc only say hi and bye if you want some scripts go here: Monsters, NPC & Raids and try some samples.
 
Thank you.. I'l try that forum.
Do you have any tutorials how to create npcs?

Edit: I have a problem now, I get an error :

[30/07/2012 22:34:41] Lua Script Error: [Npc interface]
[30/07/2012 22:34:42] data/npc/scripts/healer.lua:onCreatureMove
[30/07/2012 22:34:42] data/npc/scripts/healer.lua:36: attempt to call global 'getNpcFocus' (a nil value)
[30/07/2012 22:34:42] stack traceback:
[30/07/2012 22:34:42] [C]: in function 'getNpcFocus'
[30/07/2012 22:34:42] data/npc/scripts/healer.lua:36: in function <data/npc/scripts/healer.lua:35>
[30/07/2012 22:34:42] >>
[30/07/2012 22:34:42] Lua Script Error: [Npc interface]
[30/07/2012 22:34:42] data/npc/scripts/healer.lua:onThink
[30/07/2012 22:34:42] data/npc/scripts/healer.lua:180: attempt to call global 'getNpcFocus' (a nil value)
[30/07/2012 22:34:42] stack traceback:
[30/07/2012 22:34:42] [C]: in function 'getNpcFocus'
[30/07/2012 22:34:42] data/npc/scripts/healer.lua:180: in function <data/npc/scripts/healer.lua:179>

This is the problem ^^
How do i solve it?
 
Last edited:
This error says: Error in the line 36 when you use the function getNpcFocus and the other says: error on line 180 when you call the same function.

How to solve it paste your healer.lua here and use [ lua ] and [ /lua ] to see it well on the forum like this:

LUA:
 you need see your code lua of your NPC on a box like this
 
Back
Top