Fala Galera blz? Eu estou Criando um servidor, e sou novato. Quanto eu tendo criar o npc com o comando /n da o segunte erro.
[Error - TalkAtcion Interface]
data/talkactions/scripts/creature.lua:onSay
Description:
<LuaInterface::luaDoCreateNpc> Npc with nome " " not found.
Segue Abaixo meu createure.lua
function onSay(cid, words, param, channel)
local func = doCreateMonster
if(words:sub(2, 2) == "n") then
func = doCreateNpc
end
local pid = cid
local t = string.explode(param, ",")
if(t[2]) then
pid = getPlayerByNameWildcard(t[2])
if(not pid) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. t[2] .. " not found.")
return true
end
end
local position = getCreaturePosition(pid)
local effect = CONST_ME_MAGIC_RED
local ret = func(t[1], position, false, true)
if(tonumber(ret) == nil) then
effect = CONST_ME_POFF
doPlayerSendDefaultCancel(cid, (ret == false and RETURNVALUE_NOTPOSSIBLE or RETURNVALUE_NOTENOUGHROOM))
end
doSendMagicEffect(position, effect)
return true
end
Muitor Obrigado.
Se caso necessitem de alguma coisa a mais me avisa que eu posto.