TE

[Error - Talkaction Interface]

Por TendoTensei, 24 de jan. de 2012 em Archived

script
4
899
TendoTenseiT
24 de janeiro de 2012 às 12:03

[24/01/2012 11:50:09] [Error - TalkAction Interface]

[24/01/2012 11:50:09] data/talkactions/scripts/creature.lua:onSay

 

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)
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

Editado Janeiro 25 por TendoTensei

notleN
26 de janeiro de 2012 às 11:18

data/talkactions/scripts/creature.lua

troque por esse

 

function onSay(cid, words, param)
local func = doCreateMonster
if(words:sub(2, 2) == "n") then
func = doCreateNpc
end

local position = getCreaturePosition(cid)
local effect = CONST_ME_MAGIC_RED
if(func(param, position) == LUA_ERROR) then
effect = CONST_ME_POFF
doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTENOUGHROOM)
end

doSendMagicEffect(position, effect)
return TRUE
end

Editado Janeiro 26 por otal2012

bepokemonB
27 de janeiro de 2012 às 18:08

[24/01/2012 11:50:09] [Error - TalkAction Interface]

[24/01/2012 11:50:09] data/talkactions/scripts/creature.lua:onSay

 

Este não é o erro completo. Poste o erro todo que aparece.

TendoTenseiT
29 de janeiro de 2012 às 12:17

o erro era so esse sim o amigo ae em cima ja resolveu meu problema

podem fecha o topico