Hi i got a server everything is working but not first items shuld it looks like this or did i somthing wrong?
local commonItems = {
-- ITEMS ALL VOCS RECEIVE
{itemid=2120, count=1}, -- rope
{itemid=5710, count=1}, -- shovel
{itemid=2789, count=100}, -- brown mushrooms
}
local firstItems = {
{ -- SORC ITEMS
{itemid=2323, count=1}, -- hat of the mad
{itemid=8871, count=1}, -- focus cape
{itemid=2647, count=1}, -- plate legs
{itemid=2643, count=1}, -- leather boots
{itemid=2525, count=1}, -- dwarven shield
{itemid=2191, count=1}, -- wand of dragonbreath
{itemid=2268, count=1}, -- sd
{itemid=2273, count=1}, -- uh
{itemid=7620, count=1}, -- mp
{itemid=7618, count=1}, -- hp
{itemid=2293, count=1}, -- mw
{itemid=2261, count=1}, -- dr
{itemid=2274, count=1}, -- avalanche rune
{itemid=2305, count=1}, -- firebomb rune
},
{ -- DRUID ITEMS
{itemid=2323, count=1}, -- hat of the mad
{itemid=8871, count=1}, -- focus cape
{itemid=2647, count=1}, -- plate legs
{itemid=2643, count=1}, -- leather boots
{itemid=2525, count=1}, -- dwarven shield
{itemid=2186, count=1}, -- moonlight rod
{itemid=2268, count=1}, -- sd
{itemid=2273, count=1}, -- uh
{itemid=7620, count=1}, -- mp
{itemid=7618, count=1}, -- hp
{itemid=2293, count=1}, -- mw
{itemid=2261, count=1}, -- dr
{itemid=2269, count=1}, -- wg
{itemid=2274, count=1}, -- avalanche rune
{itemid=2305, count=1}, -- firebomb rune
},
{ -- PALADIN ITEMS
{itemid=2457, count=1}, -- steel helemet
{itemid=8891, count=1}, -- belted cape
{itemid=2647, count=1}, -- plate legs
{itemid=2643, count=1}, -- leather boots
{itemid=2525, count=1}, -- dwarven shield
{itemid=7368, count=1}, -- assassin stars
{itemid=2268, count=1}, -- sd
{itemid=2273, count=1}, -- uh
{itemid=7620, count=1}, -- mp
{itemid=7618, count=1}, -- hp
{itemid=2293, count=1}, -- mw
{itemid=2261, count=1}, -- dr
{itemid=2305, count=1}, -- firebomb rune
{itemid=2274, count=1}, -- avalanche rune
},
{ -- KNIGHT ITEMS
{itemid=2457, count=1}, -- steel helemet
{itemid=2463, count=1}, -- plate armor
{itemid=2647, count=1}, -- plate legs
{itemid=2643, count=1}, -- leather boots
{itemid=2525, count=1}, -- dwarven shield
{itemid=10313, count=1}, -- Incredible Mumpiz Slayer
{itemid=2273, count=1}, -- uh
{itemid=7620, count=1}, -- mp
{itemid=7618, count=1}, -- hp
{itemid=2293, count=1}, -- mw
{itemid=2261, count=1}, -- dr
{itemid=2305, count=1}, -- firebomb rune
{itemid=2274, count=1}, -- avalanche rune
}
}
for _, items in ipairs(firstItems) do
for _, item in ipairs(commonItems) do
table.insert(items, item)
end
end
function onLogin(cid)
if getPlayerGroupId(cid) < 2 then
local hasReceivedFirstItems = getPlayerStorageValue(cid, 67708)
if hasReceivedFirstItems ~= 1 then
--[[local backpack = ]]doPlayerAddItem(cid, 1988, 1)
local giveItems = firstItems[getPlayerVocation(cid)]
if giveItems ~= nil then
for _, v in ipairs(giveItems) do
--doAddContainerItem(backpack, v.itemid, v.count or 1)
doPlayerAddItem(cid, v.itemid, v.count or 1)
end
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You have recieved your first items!")
end
setPlayerStorageValue(cid, 67708, 1)
end
end
return TRUE
end