my script is not putting items in the correct slot, legs are going in the shield slot, and the shield is going in the arrow slot
, can someone help me resolve this? this is my script:
Code:
local firstItems = {}
firstItems[0] =
{
2173,
6096,
7424,
6095,
5918,
5462,
2127,
6391
}
firstItems[1] =
{
2173,
2643,
2647,
7429,
2463,
2457,
2525
}
firstItems[2] =
{
2173,
2643,
2647,
7429,
2463,
2457,
2525
}
firstItems[3] =
{
8857,
7850,
2173,
2643,
2647,
2463,
2457,
2525
}
firstItems[4] =
{
2173,
2643,
2647,
7420,
2463,
2457,
2525
}
function onLogin(cid)
if not firstItems[getPlayerVocation(cid)] then
return true
end
if getPlayerStorageValue(cid, 30001) == -1 then
for i = 1, table.maxn(firstItems[getPlayerVocation(cid)]) do
doPlayerAddItem(cid, firstItems[getPlayerVocation(cid)][i], 1)
end
local bag = doPlayerAddItem(cid, 1988, 1)
doAddContainerItem(bag, 2160, 100)
doAddContainerItem(bag, 2554, 1)
doAddContainerItem(bag, 2120, 1)
doAddContainerItem(bag, 6512, 1)
setPlayerStorageValue(cid, 30001, 1)
end
return TRUE
end