local firstItems =
{
2526 (or any itemID you wish), -- Right Hand Slot
itemID, -- Left Hand Slot
itemID, -- Legs Slot
itemID, -- Helmet Slot
itemID, -- Boots Slot
itemID, -- AOL
itemID, -- Arrow Slot
}
function onLogin(cid)
if getPlayerStorageValue(cid, 30001) == -1 then
for i = 1, table.maxn(firstItems) do
doPlayerAddItem(cid, firstItems[i], 1)
end
if getPlayerSex(cid) == 0 then
doPlayerAddItem(cid, 9808, 1) -- Armor if Woman
else
doPlayerAddItem(cid, 2650, 1) -- Armor if Man
end
if getPlayerVocation(cid) == 1 then -- sorc
local bag = doPlayerAddItem(cid, 1988, 1)
doAddContainerItem(bag, 2690, 50) -- 50 rolls
doAddContainerItem(bag, 2160, 5) -- 5 crystals
doAddContainerItem(bag, 10011, 1) -- newbie wand
setPlayerStorageValue(cid, 30001, 1)
elseif getPlayerVocation(cid) == 2 then -- druid
local bag = doPlayerAddItem(cid, 1988, 1)
doAddContainerItem(bag, 2690, 50) -- 50 rolls
doAddContainerItem(bag, 2160, 5) -- 5 crystals
doAddContainerItem(bag, 10012, 1) -- newbie rod
setPlayerStorageValue(cid, 30001, 1)
elseif getPlayerVocation(cid) == 3 then -- paladin
local bag = doPlayerAddItem(cid, 1988, 1)
doAddContainerItem(bag, 2690, 50) -- 50 rolls
doAddContainerItem(bag, 2160, 5) -- 5 crystals
doAddContainerItem(bag, 2389, 1) -- newbie spear
setPlayerStorageValue(cid, 30001, 1)
elseif getPlayerVocation(cid) == 4 then -- knight
local bag = doPlayerAddItem(cid, 1988, 1)
doAddContainerItem(bag, 2690, 50) -- 50 rolls
doAddContainerItem(bag, 2160, 5) -- 5 crystals
doAddContainerItem(bag, 2416, 1) -- newbie club
doAddContainerItem(bag, 2403, 1) -- newbie sword
doAddContainerItem(bag, 2405, 1) -- newbie axe
setPlayerStorageValue(cid, 30001, 1)
elseif getPlayerVocation(cid) == 0 then -- none
local bag = doPlayerAddItem(cid, 1988, 1)
doAddContainerItem(bag, 2690, 50) -- 50 rolls
setPlayerStorageValue(cid, 30001, 1)
end
end
return TRUE
end