Posta seu First Items aí, fica mais fácil para alguém te ajudar.
info
Group: Cavaleiro
Joined: 01/12/10
Posts: 158
Reputation: +4
Tibia Character: Pedro Tacador De Bolt

Man tenta colocar o id 1988(Backpack) no topo da lista de itens de cada classe. No meu ot também dava isso.
Ou veja se os jogadores começam com capacidade suficiente para todos os itens ![]()
Edited Junho 29 by Oneshot
info
Group: Cavaleiro
Joined: 13/06/11
Posts: 172
Reputation: +6

ta aqui o first item
function onLogin(cid)if getPlayerGroupId(cid) == 1 and getPlayerStorageValue(cid, 50000) == -1 then
if isSorcerer(cid) then
local bag = doPlayerAddItem(cid, 9774, 1)
doAddContainerItem(bag, 2120, 1)
doAddContainerItem(bag, 2554, 1)
doAddContainerItem(bag, 2160, 1)
doPlayerAddItem(cid, 2525, 1)
doPlayerAddItem(cid, 2190, 1)
doPlayerAddItem(cid, 2463, 1)
doPlayerAddItem(cid, 2457, 1)
doPlayerAddItem(cid, 2647, 1)
doPlayerAddItem(cid, 2195, 1)
setPlayerStorageValue(cid, 50000, 1)
elseif isDruid(cid) then
local bag = doPlayerAddItem(cid, 9774, 1)
doAddContainerItem(bag, 2120, 1)
doAddContainerItem(bag, 2554, 1)
doAddContainerItem(bag, 2160, 1)
doPlayerAddItem(cid, 2173, 1)
doPlayerAddItem(cid, 2525, 1)
doPlayerAddItem(cid, 2182, 1)
doPlayerAddItem(cid, 2463, 1)
doPlayerAddItem(cid, 2457, 1)
doPlayerAddItem(cid, 2647, 1)
doPlayerAddItem(cid, 2195, 1)
setPlayerStorageValue(cid, 50000, 1)
elseif isPaladin(cid) then
local bag = doPlayerAddItem(cid, 9774, 1)
doAddContainerItem(bag, 2120, 1)
doAddContainerItem(bag, 2554, 1)
doAddContainerItem(bag, 2160, 1)
doPlayerAddItem(cid, 2173, 1)
doPlayerAddItem(cid, 2389, 3)
doPlayerAddItem(cid, 2525, 1)
doPlayerAddItem(cid, 2457, 1)
doPlayerAddItem(cid, 2195, 1)
doPlayerAddItem(cid, 2647, 1)
doPlayerAddItem(cid, 2463, 1)
setPlayerStorageValue(cid, 50000, 1)
elseif isKnight(cid) then
local bag = doPlayerAddItem(cid, 9774, 1)
doAddContainerItem(bag, 2120, 1)
doAddContainerItem(bag, 2554, 1)
doAddContainerItem(bag, 2160, 1)
doAddContainerItem(bag, 8601, 1)
doPlayerAddItem(cid, 2173, 1)
doPlayerAddItem(cid, 2525, 1)
doPlayerAddItem(cid, 2463, 1)
doPlayerAddItem(cid, 2457, 1)
doPlayerAddItem(cid, 2647, 1)
doPlayerAddItem(cid, 2195, 1)
setPlayerStorageValue(cid, 50000, 1)
end
end
return TRUE
end
info
Group: Visconde
Joined: 11/08/10
Posts: 477
Reputation: +175
Gender: Masculino

erro no distro. é por causa do stack do ot, alguns distros 8.6 q vem com stack automatico dos items buga esse lance de itens
esse bug faz com q usando funcoes de add item o item vai pra bp ou pro chao, se n tem bp ela vai pro chao tb
a melhor opçao é pegar outro distro sem esse bug. se vc n qr mudar o distro vc vai ter q fazer os players pegarem a backpack manualmente do chao, ai vc pode add os items na bp...
info
Group: Campones
Joined: 10/06/09
Posts: 16
Reputation: 0

Teria como cria essa função ja com o distro complilado ? ou nao pois varios distro que testei nem um aceito o meu item.otb






info
Group: Cavaleiro
Joined: 13/06/11
Posts: 172
Reputation: +6
no meu ot quando o player cria acc o first item dele fica no chão (O.op como arrumar?
eu ja vi no first.lua e n tem nada de erro