EX
dúvida

Os First Items Caem No Chao

Por exorcist, 29 de jun. de 2012 em Scripts

7
1.3k
exorcistE
29 de junho de 2012 às 10:07

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

LeoxtibiaL
29 de junho de 2012 às 10:20

Posta seu First Items aí, fica mais fácil para alguém te ajudar.

pedrizito15P
29 de junho de 2012 às 10:25

Man tenta colocar o id 1988(Backpack) no topo da lista de itens de cada classe. No meu ot também dava isso.

OneshotO
29 de junho de 2012 às 12:31

Ou veja se os jogadores começam com capacidade suficiente para todos os itens :)

Editado Junho 29 por Oneshot

exorcistE
30 de junho de 2012 às 11:27

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

EskyloE
30 de junho de 2012 às 17:02

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...

1 mês depois...
gatohotmailG
18 de julho de 2012 às 12:23

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