-- colandus @ 1337rox0r -- slighty modified by artofwork -- how to think when adding items? Try fill the hands first, then the arrow slot. This because armor etc won't go to hand slot (vocation items will be given before commonitems, as you usually use to have -- the hand/arrow slot items there and not in common items. Take a look at how i did it: Local commonitems = { -- items all voc receive {itemid=2457, count=1}, -- steel helmet {itemid=2463, count=1}, -- plate armor {itemid=2647, count=1}, -- plate legs {itemid=2170, count=5}, -- 5 crystal coins {itemid=2120, count=1}, -- rope {itemid=5710, count=1} -- shovel } local firstitems = { { -- sorc items {itemid=2190, count=1}, -- wand of vortex {itemid=2175, count=1}, -- spell book {itemid=2173, count=1} -- aol {itemid=8900, count=1} -- spellbook of enlightenment {itemid=8870, count=1} -- spirit cloak }, { -- druid items {itemid=2182, count=1}, -- snakebite rod {itemid=2175, count=1}, -- spellbook {itemid=2173, count=1} -- aol {itemid=8900, count=1} -- spellbook of enlightenment {itemid=8870, count=1} -- spirit cloak }, { -- paladin items {itemid=2456, count=1}, -- bow {itemid=2175, count=1}, -- spell book {itemid=2544, count=100}, -- 100 arrows {itemid=2173, count=1} -- aol }, { -- knight items {itemid=2423, count=1}, -- clerical mace {itemid=2383, count=1}, -- spike sword {itemid=2430, count=1}, -- knight axe {itemid=2518, count=1}, -- beholder shield {itemid=2175, count=1}, -- spell book {itemid=2173, count=1} -- aol } } for _, items in ipairs(firstitems) do for _, item in ipairs(commonitems) do table.insert(items, item) end end function onlogin(cid) if getplayergroupid(cid) < 2 then local hasreceivedfirstitems = getplayerstoragevalue(cid, 90808) if hasreceivedfirstitems ~= true then --[[local backpack = ]]doplayeradditem(cid, 1988, true) 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_blue, "welcome to avolutions here is your items!") end setplayerstoragevalue(cid, 90808, true) end end return true end-- colandus @ 1337rox0r -- slighty modified by artofwork -- how to think when adding items? Try fill the hands first, then the arrow slot. This because armor etc won't go to hand slot (vocation items will be given before commonitems, as you usually use to have -- the hand/arrow slot items there and not in common items. Take a look at how i did it: Local commonitems = { -- items all voc receive {itemid=2457, count=1}, -- steel helmet {itemid=2463, count=1}, -- plate armor {itemid=2647, count=1}, -- plate legs {itemid=2170, count=5}, -- 5 crystal coins {itemid=2120, count=1}, -- rope {itemid=5710, count=1} -- shovel } local firstitems = { { -- sorc items {itemid=2190, count=1}, -- wand of vortex {itemid=2175, count=1}, -- spell book {itemid=2173, count=1} -- aol {itemid=8900, count=1} -- spellbook of enlightenment {itemid=8870, count=1} -- spirit cloak }, { -- druid items {itemid=2182, count=1}, -- snakebite rod {itemid=2175, count=1}, -- spellbook {itemid=2173, count=1} -- aol {itemid=8900, count=1} -- spellbook of enlightenment {itemid=8870, count=1} -- spirit cloak }, { -- paladin items {itemid=2456, count=1}, -- bow {itemid=2175, count=1}, -- spell book {itemid=2544, count=100}, -- 100 arrows {itemid=2173, count=1} -- aol }, { -- knight items {itemid=2423, count=1}, -- clerical mace {itemid=2383, count=1}, -- spike sword {itemid=2430, count=1}, -- knight axe {itemid=2518, count=1}, -- beholder shield {itemid=2175, count=1}, -- spell book {itemid=2173, count=1} -- aol } } for _, items in ipairs(firstitems) do for _, item in ipairs(commonitems) do table.insert(items, item) end end function onlogin(cid) if getplayergroupid(cid) < 2 then local hasreceivedfirstitems = getplayerstoragevalue(cid, 90808) if hasreceivedfirstitems ~= true then --[[local backpack = ]]doplayeradditem(cid, 1988, true) 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_blue, "welcome to avolutions here is your items!") end setplayerstoragevalue(cid, 90808, true) end end return true end