<?xml version="1.0" encoding="UTF-8"?>
<mod name="First Items" version="1.0" author="Xavizo" contact="malvaria.pl" enabled="yes">
<config name="firstitems_config"><![CDATA[
]]></config>
<event type="login" name="FirstItems" event="script"><![CDATA[
domodlib('firstitems_config')
function onLogin(cid)
if getPlayerGroupId(cid) == 1 and getPlayerStorageValue(cid, 50000) == -1 then
if isSorcerer(cid) then
local bag = doPlayerAddItem(cid, 1988, 1)
doAddContainerItem(bag, 2120, 1) -- Rope
doAddContainerItem(bag, 2554, 1) -- shovel
doAddContainerItem(bag, 2152, 100) -- 100 platinum coints
doPlayerAddItem(cid, 2175, 1) -- spellbook
doPlayerAddItem(cid, 2190, 1) -- wand of wortex
doPlayerAddItem(cid, 8819, 1) -- magician's robe
doPlayerAddItem(cid, 8820, 1) -- mage hat
doPlayerAddItem(cid, 2647, 1) -- plate legs
doPlayerAddItem(cid, 2643, 1) -- leather boots
doPlayerAddItem(cid, 2173, 1) -- amulet of loss
setPlayerStorageValue(cid, 50000, 1)
elseif isDruid(cid) then
local bag = doPlayerAddItem(cid, 1988, 1)
doAddContainerItem(bag, 2120, 1) -- rope
doAddContainerItem(bag, 2554, 1) -- shovel
doAddContainerItem(bag, 2152, 100) -- 100 platinum coins
doPlayerAddItem(cid, 2175, 1) -- spellbook
doPlayerAddItem(cid, 2182, 1) -- snakebite rod
doPlayerAddItem(cid, 8819, 1) -- magican's robe
doPlayerAddItem(cid, 8820, 1) -- mage hat
doPlayerAddItem(cid, 2647, 1) -- plate legs
doPlayerAddItem(cid, 2643, 1) -- leather boots
doPlayerAddItem(cid, 2173, 1) -- amulet of loss
setPlayerStorageValue(cid, 50000, 1)
elseif isPaladin(cid) then
local bag = doPlayerAddItem(cid, 1988, 1)
doAddContainerItem(bag, 2120, 1) -- rope
doAddContainerItem(bag, 2554, 1) -- shovel
doAddContainerItem(bag, 2152, 100) -- 100 platinum coins
doPlayerAddItem(cid, 2389, 20) -- spear
doPlayerAddItem(cid, 2456, 1) -- bow
doPlayerAddItem(cid, 2544, 100) -- 100 arrows
doPlayerAddItem(cid, 2660, 1) -- hidden turban
doPlayerAddItem(cid, 2457, 1) -- steel helmet
doPlayerAddItem(cid, 8923, 1) -- ranger legs
doPlayerAddItem(cid, 2643, 1) -- leather boots
doPlayerAddItem(cid, 2173, 1) -- amulet of loss
setPlayerStorageValue(cid, 50000, 1)
elseif isKnight(cid) then
local bag = doPlayerAddItem(cid, 1988, 1)
doAddContainerItem(bag, 2120, 1) -- rope
doAddContainerItem(bag, 2554, 1) -- shovel
doAddContainerItem(bag, 2152, 100) -- 100 platinum coins
doAddContainerItem(bag, 2439, 1) -- daramanian mace
doAddContainerItem(bag, 8601, 1) -- steel axe
doPlayerAddItem(cid, 2525, 1) -- dwarven shield
doPlayerAddItem(cid, 8602, 1) -- jagged sword
doPlayerAddItem(cid, 2463, 1) -- plate armor
doPlayerAddItem(cid, 2481, 1) -- soldier helmet
doPlayerAddItem(cid, 2647, 1) -- plate legs
doPlayerAddItem(cid, 2643, 1) -- leather boots
doPlayerAddItem(cid, 2173, 1) -- amulet of loss
setPlayerStorageValue(cid, 50000, 1)
end
end
return TRUE
end
]]></event>
</mod>