[Encerrado] Erro No Script Newtype

lukeghost
em Tópicos Sem Resposta

lukeghost

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 29/06/07Posts: 12

gente se puder me ajudar agradeço meu newtype ta dando o seguinte erro

 

[Error - LuaScriptInterface::loadFile] data/talkactions/scripts/newtype.lua:1: unexpected symbol near 'ï'

[Warning - Event::loadScript] Cannot load script (data/talkactions/scripts/newtype.lua)

data/talkactions/scripts/newtype.lua:1: unexpected symbol near 'ï'

 

aki esta o script

 

 

 

function onSay(cid, words, param)

if(param == "") then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires param.")

return TRUE

end

 

local t = string.explode(param, ",")

t[1] = tonumber(t[1])

if(not t[1]) then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires numeric param.")

return TRUE

end

 

if(t[2]) then

cid = getPlayerByNameWildcard(t[2])

if(cid == 0 or (isPlayerGhost(pid) == TRUE and getPlayerAccess(pid) > getPlayerAccess(cid))) then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. t[2] .. " not found.")

return TRUE

end

end

 

if(t[1] < 0 or t[1] == 1 or t[1] == 135 or (t[1] > 160 and t[1] < 192) or t[1] > 351) then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Such outfit does not exist.")

return TRUE

end

 

local tmp = getCreatureOutfit(cid)

tmp.lookType = t[1]

doCreatureChangeOutfit(cid, tmp)

return TRUE

end

 

 

Stigal

don't ever stop...
avatar
Herói
Herói

INFOS

Grupo: HeróiRegistrado: 28/11/10Posts: 3402Gênero: Masculino
A questão neste tópico de suporte foi encerrada por falta de respostas. Este tópico está fechado e foi movido para Suporte - Tópicos Sem Resposta.

+ Caso a dúvida não tenha sido resolvida você poderá criar outro tópico solicitando ajuda.
* Lembre-se que é permitido dar UP no tópico a cada 24 horas para assim o destacar e manter movimentado.

VI6MDIG.png

 

"O fracasso é a oportunidade de se começar de novo inteligentemente"

Minhas Redes Sociais: Youtube | Página & Grupo | Steam  | Discord Xtibia | Skype: @mrooger

 

OTpanel