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

When i talk to any npc it gives me a error

Natroxxxx

New Member
Joined
Jul 18, 2013
Messages
18
Reaction score
1
Give me a hand ASAP
446s9p
http://prntscr.com/446s9p

the error picture is in this site http://prntscr.com/446s9p
 
data/npc/lib/npcsystem/npchandler.lua replace this function
Code:
function NpcHandler:isInRange(cid)
        local distance = getDistanceBetween(getCreaturePosition(getNpcCid()), getCreaturePosition(cid))
        if(distance == -1) then
            return false
        end

        return (distance <= self.talkRadius)
    end
 
data/npc/lib/npcsystem/npchandler.lua replace this function
Code:
function NpcHandler:isInRange(cid)
        local distance = getDistanceBetween(getCreaturePosition(getNpcCid()), getCreaturePosition(cid))
        if(distance == -1) then
            return false
        end

        return (distance <= self.talkRadius)
    end
i see if it works :p
 
Back
Top