MA
talkaction

Comando /newid

Por Matematheus, 28 de jul. de 2012 em Actions e Talkactions

8.6
flaash
tibia
script
otserv
3
1.1k
MatematheusM
28 de julho de 2012 às 18:01

Iai XTibianos, todo mundo conhece o /newtype, né..

Então pensei na ideia de /newid que invez de ser transformar em um animal se transforma em um item! Então vamos começar:

Vá em seuot/data/talkactions/scripts copie um arquivo lua e nome-ie de "newid"

Abra a pasta e cole isso dentro:

 

function onSay(cid, words, param, channel)

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, "Comando requer numero.")

return true

end

if(t[1] >= 10544) then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Desculpa este item nao exite!")

return true

end

doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Voce foi transformado em "..getItemNameById(param)..".")

doSendMagicEffect(getCreaturePosition(cid), 14)

doSetItemOutfit(cid, param, -1)

return true

end

 

E depois vá em talkactions.xml e cole isso:

<talkaction log="yes" words="/newid" access="4" event="script" value="newid.lua"/>

 

É isso pessoal, qualquer bug comenta abaixo :D

DarkSidersD
28 de julho de 2012 às 18:38

Eu Ja Vi Esse Comando So Que Invez De Newid Era NewTypeex.

 

sleep.png

MatematheusM
28 de julho de 2012 às 18:51

Eu Ja Vi Esse Comando So Que Invez De Newid Era NewTypeex.

 

sleep.png

Eu fiz de um modo menor... mellow.png

um script pequeno.

Editado Julho 28 por FlaashMan