PA

[Help] First Items Por Vocations

Por paulincarvalhoo22, 26 de jul. de 2010 em Archived

script
3
1.6k
26 de julho de 2010 às 19:23

Ae preciso de um first items pra cada vocação ganhar um item diferente, e no caso se tem como eu adicionar mais 2 vocações no script,

no caso 6 vocações.

 

ajudem ae plix.

VodkartV
26 de julho de 2010 às 20:14

tpw

 

local firstItems = {}
firstItems[0] =
{
2173,
2525,
3965,
2124,
2457,
2647,
2643
}
firstItems[1] =
{
2173,
2525,
2190,
2124,
2457,
2647,
2643
}
firstItems[2] =
{
2173,
2525,
2182,
2124,
2457,
2647,
2643
}
firstItems[3] =
{
2173,
2525,
2399,
2124,
2457,
2647,
2643
}
firstItems[4] =
{
2173,
2525,
2428,
2124,
2457,
2647,
2643
}
firstItems[5] =
{
2173,
2525,
3965,
2124,
2457,
2647,
2643
}
firstItems[6] =
{
2173,
2525,
3965,
2124,
2457,
2647,
2643
}


function onLogin(cid)
if getPlayerStorageValue(cid, 30001) == -1 then
for i = 1, table.maxn(firstItems[getPlayerVocation(cid)]) do
doPlayerAddItem(cid, firstItems[getPlayerVocation(cid)][i], 1)
end
if getPlayerSex(cid) == 0 then
doPlayerAddItem(cid, 2463, 1)
else
doPlayerAddItem(cid, 2463, 1)
end
local bag = doPlayerAddItem(cid, 10521, 1)
doAddContainerItem(bag, 2160, 2)
doAddContainerItem(bag, 2554, 1)
doAddContainerItem(bag, 2120, 1)
doAddContainerItem(bag, 7618, 1)
setPlayerStorageValue(cid, 30001, 1)
end
return TRUE
end

 

 

so editar os itens ali ...

26 de julho de 2010 às 21:10

vlw vo testar