Uma coisa que deu para perceber: Nem todas as vocations que têm no seu serv estão configuradas no script!
local firstItems = {
[0] = {
2647,
2643
},
[1] ={
2323,
8871,
7730,
2195,
8902,
2187,
2124,
2171,
2268,
2315,
7590,
1988
},
[2] = {
2323,
8871,
7730,
2195,
8902,
2183,
2124,
2171,
2268,
2315,
7590,
1988
},
[3] = {
2496,
8891,
2470,
2195,
2514,
7368,
8853,
2547,
7588,
7589,
8472,
1988
},
[4] = {
2496,
2472,
2470,
2195,
2514,
2400,
2431,
2421,
7620,
7591,
8473,
1988
},
}
function onLogin(cid)
if getPlayerStorageValue(cid, 30001) == -1 then
local tb = firstItems[getPlayerVocation(cid)] or firstItems[0]
for i = 1, table.maxn(tb) do
doPlayerAddItem(cid, tb[i], 1)
end
if getPlayerSex(cid) == 0 then
doPlayerAddItem(cid, 2160, 1)
else
doPlayerAddItem(cid, 2160, 1)
end
local bag = doPlayerAddItem(cid, 1988, 1)
doAddContainerItem(bag, 2273, 1)
doAddContainerItem(bag, 2269, 1)
doAddContainerItem(bag, 2273, 1)
doAddContainerItem(bag, 2261, 1)
doAddContainerItem(bag, 2420, 1)
doAddContainerItem(bag, 2293, 1)
doAddContainerItem(bag, 2789, 100)
setPlayerStorageValue(cid, 30001, 1)
end
return true
end
Ajudei? ReP+






info
Grupo: Cavaleiro
Registrado: 01/12/10
Posts: 158
Reputação: +4
Char no Tibia: Pedro Tacador De Bolt
Galera meu firstitems não ta indo não sei se é porque ta muito grande ou o que (é um server de war por isso está grande)
Da o seguinte erro quando tempo logar
UP