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

8.22 Working [8.31 not working]

Zonet

Web Developer
Joined
Sep 1, 2008
Messages
4,393
Reaction score
52
Location
Tibia VS RL-life, guess whos back?
Hello everyone!

I just want to say a problem which i'm in and i hope that
otland members HELP me.


For the first i opened my server with a engine version 8.22[TFS]
and tested my NPC they worked with the npc channel and the trade system... but i changed my Engine to a TFS 8.31..
NPC worked with the Channel
but when i asked them for trade my server crashes..

If anyone of otland members know what this is for problem so tell me Please...

I think the problem is in the data/npc/lib...

Thanks,
Zonet
 
yoo must change yoor start npc to new functions, replace you start npc with

Code:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

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
-- OTServ event handling functions end

function creatureSayCallback(cid, type, msg) 
    if(not npcHandler:isFocused(cid)) then
        return false
    end
 
@Rizz
Also download the engine/distro 0.3a3pl1? and i can found the lib in
npc/lib right ? i'm using that lib but can't ask them for trade...

and look here `? everytime i say buy look what's happend.

and i've tried to copy the npc's from 0.3a3pl1 same shit :( can't ask them for trade.



I get this problem everytime i say bye to my npc's



[26/10/2008 13:25:37] data/npc/lib/npcsystem/npchandler.lua:309: in function 'unGreet'
[26/10/2008 13:25:37] data/npc/lib/npcsystem/npchandler.lua:516: in function 'onFarewell'
[26/10/2008 13:25:37] data/npc/lib/npcsystem/modules.lua:215: in function 'callback'
[26/10/2008 13:25:38] data/npc/lib/npcsystem/keywordhandler.lua:40: in function 'processMessage'
[26/10/2008 13:25:38] data/npc/lib/npcsystem/keywordhandler.lua:168: in function 'processNodeMessage'
[26/10/2008 13:25:38] data/npc/lib/npcsystem/keywordhandler.lua:128: in function 'processMessage'
[26/10/2008 13:25:38] data/npc/lib/npcsystem/npchandler.lua:371: in function 'onCreatureSay'
[26/10/2008 13:25:38] data/npc/scripts/runes.lua:8: in function <data/npc/scripts/runes.lua:8>

And they open a help channel when i say hi to them in default channel.... but cant ask npc's for trade.

after i go from the place or after 5 seconds i get this

[26/10/2008 13:32:50] data/npc/lib/npcsystem/npchandler.lua:309: attempt to call global 'getPlayerName' (a nil value)
[26/10/2008 13:32:50] stack traceback:
[26/10/2008 13:32:50] data/npc/lib/npcsystem/npchandler.lua:309: in function 'unGreet'
[26/10/2008 13:32:50] data/npc/lib/npcsystem/npchandler.lua:466: in function 'onThink'
[26/10/2008 13:32:50] data/npc/scripts/runes.lua:9: in function <data/npc/scripts/runes.lua:9>

i get this which makes lagg for my computer this dont say 1 time it repeats everytime same shit until i remove the npc.
Hope anyone could help me with that.
 
Last edited:
Back
Top