• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Solved Firstitems script not putting items in the correct slot :(

Cris2387

Member
Joined
Dec 30, 2013
Messages
177
Reaction score
9
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
 
Back
Top