local vocation_specific_items = {
[1] = {item_list = { -- sorcerer
[1] = {item_id = 8820, count = 1}, -- helmet
[2] = {item_id = 8819, count = 1}, -- armor
[3] = {item_id = 2190, count = 1}, -- wand of vortex
[4] = {item_id = 2525, count = 1}, -- shield
[5] = {item_id = 2478, count = 1}, -- brass legs
[6] = {item_id = 2643, count = 1}, -- leather boots
[7] = {item_id = 2050, count = 1} -- torch
}
},
[2] = {item_list = { -- druid
[1] = {item_id = 8820, count = 1}, -- helmet
[2] = {item_id = 8819, count = 1}, -- armor
[3] = {item_id = 2525, count = 1}, -- shield
[4] = {item_id = 2182, count = 1}, -- snakebite rod
[5] = {item_id = 2478, count = 1}, -- brass legs
[6] = {item_id = 2643, count = 1}, -- leather boots
[7] = {item_id = 2050, count = 1} -- torch
}
},
[3] = {item_list = { -- paladin
[1] = {item_id = 2460, count = 1}, -- brass helmet
[2] = {item_id = 2660, count = 1}, -- range cloak
[3] = {item_id = 2456, count = 1}, -- bow
[4] = {item_id = 2478, count = 1}, -- brass legs
[5] = {item_id = 2643, count = 1}, -- leather boots
[6] = {item_id = 2455, count = 100}, -- ????
[7] = {item_id = 2525, count = 1} -- ????
}
},
[4] = {item_list = { -- knight
[1] = {item_id = 2460, count = 1}, -- brass helmet
[2] = {item_id = 2465, count = 1}, -- brass armor
[3] = {item_id = 2525, count = 1}, -- shield
[4] = {item_id = 8602, count = 1}, -- jagged sword
[5] = {item_id = 2478, count = 1}, -- brass legs
[6] = {item_id = 2643, count = 1}, -- leather boots
[7] = {item_id = 2050, count = 1}, -- torch
[8] = {item_id = 2439, count = 1}, -- ????
[9] = {item_id = 2428, count = 1} -- ????
}
}
}
local give_to_all_items = {
[1] = {item_id = 2789, count = 25}, -- 25 mushrooms
[2] = {item_id = 2120, count = 1}, -- rope
[3] = {item_id = 2554, count = 1}, -- shovel
[4] = {item_id = 2160, count = 1}, -- crystal coin
[5] = {item_id = 7620, count = 10}, -- 10 mana potion
[6] = {item_id = 7618, count = 10} -- 10 health potion
}
local experience_to_give = 4200 -- level 8 (0 = disable)
local storage = 45001 -- any free storage
function onLogin(cid)
if getPlayerStorageValue(cid, storage) == 1 then
return true
end
if experience_to_give > 0 then
doPlayerAddExperience(cid, experience_to_give)
end
local backpack = doPlayerAddItem(cid, 1988, 1, true)
for i = 1, #give_to_all_items do
doAddContainerItem(backpack, give_to_all_items[i].item_id, give_to_all_items[i].count)
end
local v = getPlayerVocation(cid)
local voc_table_list = vocation_specific_items[v].item_list
for i = 1, #voc_table_list do
doPlayerAddItem(cid, voc_table_list[i].item_id, voc_table_list[i].count, true)
end
setPlayerStorageValue(cid, storage, 1)
return true
end