Você não tem o script de criar itens, certo? Se for isso, crie um arquivo.lua em data/talkactions/scripts e cole isto dentro:
function onSay(cid, words, param, channel)
if(param == '') then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.")
return true
end
local t = string.explode(param, ",")
local ret = RETURNVALUE_NOERROR
local pos = getCreaturePosition(cid)
local id = tonumber(t[1])
if(not id) then
id = getItemIdByName(t[1], false)
if(not id) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Item wich such name does not exists.")
return true
end
end
local amount = 100
if(t[2]) then
amount = t[2]
end
local item = doCreateItemEx(id, amount)
if(t[3] and getBooleanFromString(t[3])) then
if(t[4] and getBooleanFromString(t[4])) then
pos = getCreatureLookPosition(cid)
end
ret = doTileAddItemEx(pos, item)
else
ret = doPlayerAddItemEx(cid, item, true)
end
if(ret ~= RETURNVALUE_NOERROR) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Couldn't add item: " .. t[1])
return true
end
doDecayItem(item)
if(not isPlayerGhost(cid)) then
doSendMagicEffect(pos, CONST_ME_MAGIC_RED)
end
return true
end
Em talkactions.xml cole a tag:
<talkaction log="yes" words="/i" access="4" event="script" value="NOMEDOSEUARQUIVO.lua"/>








info
Grupo: Conde
Registrado: 30/11/11
Posts: 696
Reputação: +71
Gênero: Masculino
Char no Tibia: treinador de lobo
Oi estou aqui porque estou com um problema no otserver que estou fazendo, eu mudei a versao dele de 9.44 para 9.60, mas meu God nao cria itens, nao consegue fazer os comandos /i /m /t /n etc. Outro problema é que ele nao consegue subir akelas escadas, ele tambem nao consegue descer aqueles bueiros.
ladder : id 1386
sewer grate : id 430
assim está o god no tallkcactions :
<!-- Gods -->
<talkaction log="yes" words="/attr" access="5" event="function" value="thingProporties"/>
<talkaction log="yes" words="/serverdiag" access="5" event="function" value="diagnostics"/>
<talkaction log="yes" words="/closeserver" access="5" event="script" value="closeopen.lua"/>
<talkaction log="yes" words="/openserver" access="5" event="script" value="closeopen.lua"/>
<talkaction log="yes" words="/promote;/demote" access="5" event="script" value="promote.lua"/>
<talkaction log="yes" words="/skill;/addskill" access="5" event="script" value="skill.lua"/>
<talkaction log="yes" words="/shutdown" access="5" event="script" value="shutdown.lua"/>
<talkaction log="yes" words="/mode" access="5" event="script" value="mode.lua"/>
<talkaction log="yes" words="/bless" access="5" event="script" value="blessings.lua"/>
<talkaction log="yes" words="/banish" access="5" event="script" value="banish.lua"/>
Quando tento cria iten aparece isso no executor:
stack traceback:
data/lib/011-starting.lua: in function 'explode'
data/tallkaction/createiten.lua:7: in function <data/tallkaction/scripts/createiten.lua:1>
Quando tento cria monstro:
stack traceback:
data/lib/011-starting.lua: in function 'explode'
data/tallkaction/creature.lua:7: in function <data/tallkaction/scripts/creature.lua:1>
Quando tento usar o comando /t :
stack traceback:
data/lib/011-starting.lua: in function 'explode'
data/tallkaction/teleporttown.lua:15: in function <data/tallkaction/scripts/teleporttown.lua:1>
Editado Julho 27 por JustinnoTibianno