local commonItems =
{
2457, -- Steel helmet
2463, -- Plate Armor
2525, -- Dwarf
2647, -- Plate Legs
2643 -- Leather Boots
}
local containerItems =
{
2160, -- Rope
2120, -- Rope
5710 -- Light Shovel
}
function onLogin(cid)
if getPlayerStorageValue(cid, 30001) == -1 then
if isSorcerer(cid) then
-- Wand of Dragonbreath
doPlayerAddItem(cid, 2190, 1)
elseif isDruid(cid) then
-- Moonlight Rod
doPlayerAddItem(cid, 2543, 4)
elseif isPaladin(cid) then
-- Crossbow
doPlayerAddItem(cid, 2455, 4)
elseif isKnight(cid) then
-- Fire Sword
doPlayerAddItem(cid, 2383, 1)
end
for i = 1, table.maxn(commonItems) do
doPlayerAddItem(cid, commonItems, 1)
end
-- Backpack
local bag = doPlayerAddItem(cid, 2001, 1)
for i = 1, table.maxn(containerItems) do
doAddContainerItem(bag, containerItems, 1)
end
setPlayerStorageValue(cid, 30001, 1)
end
return TRUE
end