function onLogin(cid)
if getPlayerGroupId(cid) == 1 and getPlayerStorageValue(cid, 50002) == -1 then
if isSorcerer(cid) then
local bag = doPlayerAddItem(cid, 1988, 1)
doAddContainerItem(bag, 2120, 1) -- Rope
doAddContainerItem(bag, 2554, 1) -- shovel
doAddContainerItem(bag, 2160, 25) -- 15 crystal coins
doPlayerAddItem(cid, 8922, 1) -- wand of voodoo
doPlayerAddItem(cid, 2175, 1) -- spellbook
doPlayerAddItem(cid, 2190, 1) -- wand of wortex
doPlayerAddItem(cid, 2463, 1) -- p armor
doPlayerAddItem(cid, 2490, 1) -- dark helmet
doPlayerAddItem(cid, 2647, 1) -- p legs
doPlayerAddItem(cid, 2195, 1) -- boots of haste
doPlayerAddItem(cid, 2173, 1) -- amulet of loss
doPlayerAddItem(cid, 2273, 1) -- UH
doPlayerAddItem(cid, 2270, 1) -- Manarune
setPlayerStorageValue(cid, 50002, 1)
elseif isDruid(cid) then
local bag = doPlayerAddItem(cid, 1988, 1)
doAddContainerItem(bag, 2120, 1) -- rope
doAddContainerItem(bag, 2554, 1) -- shovel
doAddContainerItem(bag, 2160, 25) -- 15 crystal coins
doPlayerAddItem(cid, 8910, 1) -- underworld rod
doPlayerAddItem(cid, 2175, 1) -- spellbook
doPlayerAddItem(cid, 2182, 1) -- snakebite rod
doPlayerAddItem(cid, 2463, 1) -- p armor
doPlayerAddItem(cid, 2490, 1) -- dark helmet
doPlayerAddItem(cid, 2647, 1) -- p legs
doPlayerAddItem(cid, 2195, 1) -- boots of haste
doPlayerAddItem(cid, 2173, 1) -- amulet of loss
doPlayerAddItem(cid, 2273, 1) -- UH
doPlayerAddItem(cid, 2270, 1) -- Manarune
setPlayerStorageValue(cid, 50002, 1)
elseif isPaladin(cid) then
local bag = doPlayerAddItem(cid, 1988, 1)
doAddContainerItem(bag, 2120, 1) -- rope
doAddContainerItem(bag, 2554, 1) -- shovel
doAddContainerItem(bag, 2160, 25) -- 15 crystal coins
doPlayerAddItem(cid, 2389, 1) -- spear
doPlayerAddItem(cid, 2456, 1) -- bow
doPlayerAddItem(cid, 2544, 100) -- 100 arrows
doPlayerAddItem(cid, 2463, 1) -- p armor
doPlayerAddItem(cid, 2490, 1) -- dark helmet
doPlayerAddItem(cid, 2647, 1) -- p legs
doPlayerAddItem(cid, 2195, 1) -- boots of haste
doPlayerAddItem(cid, 2173, 1) -- amulet of loss
doPlayerAddItem(cid, 2273, 1) -- UH
doPlayerAddItem(cid, 2270, 1) -- Manarune
setPlayerStorageValue(cid, 50002, 1)
elseif isKnight(cid) then
local bag = doPlayerAddItem(cid, 1988, 1)
doAddContainerItem(bag, 2120, 1) -- rope
doAddContainerItem(bag, 2554, 1) -- shovel
doAddContainerItem(bag, 2160, 25) -- 15 crystal coins
doAddContainerItem(bag, 2439, 1) -- daramanian mace
doAddContainerItem(bag, 8601, 1) -- steel axe
doPlayerAddItem(cid, 2509, 1) -- steel shield
doPlayerAddItem(cid, 8602, 1) -- jagged sword
doPlayerAddItem(cid, 2463, 1) -- p armor
doPlayerAddItem(cid, 2490, 1) -- dark helmet
doPlayerAddItem(cid, 2647, 1) -- p legs
doPlayerAddItem(cid, 2195, 1) -- boots of haste
doPlayerAddItem(cid, 2173, 1) -- amulet of loss
doPlayerAddItem(cid, 2273, 1) -- UH
doPlayerAddItem(cid, 2270, 1) -- Manarune
setPlayerStorageValue(cid, 50002, 1)
end
end
return TRUE
end