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
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
Posta seu First Items aí, fica mais fácil para alguém te ajudar.
Man tenta colocar o id 1988(Backpack) no topo da lista de itens de cada classe. No meu ot também dava isso.
[guild]Pedrizito[/guild]
Ou veja se os jogadores começam com capacidade suficiente para todos os itens
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
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...
Atenciosamente, Eskylo
.
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