local commonItems = {
-- ITEMS ALL VOCS RECEIVE [COLOR="Lime"]-- all vocs will recive this items[/COLOR]
{itemid=here the id of item, count=here how much items},
{itemid=here the id of item, count=}here how much items,
{itemid=here the id of item, count=}here how much items,
{itemid=here the id of item, count=}here how much items,
{itemid=here the id of item, count=}here how much items,
{itemid=here the id of item, count=}here how much items,
{itemid=here the id of item, count=}here how much items,
}
local firstItems = {
{ -- SORC ITEMS [COLOR="Blue"]--sorc items[/COLOR]
{itemid=here the id of item, count=here how much items},
{itemid=here the id of item, count=here how much items},
{itemid=here the id of item, count=here how much items},
{itemid=here the id of item, count=here how much items},
{itemid=here the id of item, count=here how much items},
{itemid=here the id of item, count=here how much items},
{itemid=here the id of item, count=here how much items},
{itemid=here the id of item, count=here how much items},
{itemid=here the id of item, count=here how much items},
{itemid=here the id of item, count=here how much items},
},
{ -- DRUID ITEMS [COLOR="Blue"]--druid items[/COLOR]
{itemid=here the id of item, count=here how much items},
{itemid=here the id of item, count=here how much items},
{itemid=here the id of item, count=here how much items},
{itemid=here the id of item, count=here how much items},
{itemid=here the id of item, count=here how much items},
{itemid=here the id of item, count=here how much items},
{itemid=here the id of item, count=here how much items},
{itemid=here the id of item, count=here how much items},
{itemid=here the id of item, count=here how much items},
{itemid=here the id of item, count=here how much items},
{itemid=here the id of item, count=here how much items},
{itemid=here the id of item, count=here how much items},
},
{ -- PALADIN ITEMS [COLOR="Blue"]--pala items[/COLOR]
{itemid=here the id of item, count=here how much items},
{itemid=here the id of item, count=here how much items},
{itemid=here the id of item, count=here how much items},
{itemid=here the id of item, count=here how much items},
{itemid=here the id of item, count=here how much items},
{itemid=here the id of item, count=here how much items},
{itemid=here the id of item, count=here how much items},
{itemid=here the id of item, count=here how much items},
{itemid=here the id of item, count=here how much items},
{itemid=here the id of item, count=here how much items},
{itemid=here the id of item, count=here how much items},
{itemid=here the id of item, count=here how much items},
},
{ -- KNIGHT ITEMS [COLOR="Blue"]--knight items[/COLOR]
{itemid=here the id of item, count=here how much items},
{itemid=here the id of item, count=here how much items},
{itemid=here the id of item, count=here how much items},
{itemid=here the id of item, count=here how much items},
{itemid=here the id of item, count=here how much items},
{itemid=here the id of item, count=here how much items},
{itemid=here the id of item, count=here how much items},
{itemid=here the id of item, count=here how much items},
{itemid=here the id of item, count=here how much items},
{itemid=here the id of item, count=here how much items},
{itemid=here the id of item, count=here how much items},
}
}
for _, items in ipairs(firstItems) do
for _, item in ipairs(commonItems) do
table.insert(items, item)
end
end
function onLogin(cid)
if getPlayerGroupId(cid) < 4 then
local hasReceivedFirstItems = getPlayerStorageValue(cid, 6771408)
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! GoGoGoGoGoGo war!!!!")
end
setPlayerStorageValue(cid, 67708, 1)
end
end
return TRUE
end