Glidarn
Member
I've tried the premium support but with no success so as my last shot here i'm turning to you guys...
AS the title says my npcs does not respond they are just walking around and i'm getting this error in the console Imageshack - npcnewlib.png
I have searched around for like 3 days now checked almost all the threads about this but i've found nothing so... does anyone know what the problem is?
SOLVED, Solution:
(npchandler.lua)
replace:
with:
AS the title says my npcs does not respond they are just walking around and i'm getting this error in the console Imageshack - npcnewlib.png
I have searched around for like 3 days now checked almost all the threads about this but i've found nothing so... does anyone know what the problem is?
SOLVED, Solution:
(npchandler.lua)
replace:
LUA:
function NpcHandler:isInRange(cid)
local distance = getDistanceTo(cid) or -1
if(distance == -1) then
return false
end
return (distance <= self.talkRadius)
end
with:
LUA:
function NpcHandler:isInRange(cid)
local distance = getDistanceBetween(getCreaturePosition(getNpcCid()), getCreaturePosition(cid))
if(distance == -1) then
return false
end
return (distance <= self.talkRadius)
end
Last edited: