Jump to content
  • 0

[Resolvido] Erro quando o player morre falando com qualquer NPC's.


Nysman

Question

Segue a imagem:

 

1690078404_Erronpc.png.47e1c7ef04d5bb80185e6f9520d2c0c1.png

Problema resolvido! 

Caso alguém tenha o mesmo problema modifiquei o Default.lua ficando assim:

Spoiler

local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function NpcHandler:isInRange(cid)
        local distance = getDistanceTo(cid) or -1
        if(distance == -1) then
            return false
        end

        return (distance <= self.talkRadius)
    end

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

npcHandler:addModule(FocusModule:new())
 

 

 

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...