Zaggyzigzig
plx itens menz
Most of the equiptment is droped on the floor when a player has chosen their volcation and is teleported to the temple, It is all on the ground under them
using Avesta
Heres my script!
using Avesta
Heres my script!
Code:
local vocitems = {
[1] = { -- sorcerer
container = {
{id = 2160, count = 1},
{id = 2160, count = 1},
{id = 2160, count = 1}
},
eq = {
{id = 2656, count = 1},
{id = 2647, count = 1},
{id = 2160, count = 1},
{id = 2160, count = 1},
{id = 2647, count = 1},
{id = 2643, count = 1}
}
},
[2] = { -- druid
container = {
{id = 2120, count = 1},
{id = 2554, count = 1},
{id = 2674, count = 1}
},
eq = {
{id = 2525, count = 1},
{id = 2182, count = 1},
{id = 2457, count = 1},
{id = 2463, count = 1},
{id = 2647, count = 1},
{id = 2643, count = 1}
}
},
[3] = { -- paladin
container = {
{id = 2120, count = 1},
{id = 2554, count = 1},
{id = 2674, count = 1}
},
eq = {
{id = 2525, count = 1},
{id = 2389, count = 5},
{id = 2457, count = 1},
{id = 2463, count = 1},
{id = 2647, count = 1},
{id = 2643, count = 1}
}
},
[0] = { -- no vocation
container = {
{id = 2162, count = 1},
{id = 2389, count = 5},
{id = 3976, count = 20},
{id = 2580, count = 1}
},
eq = {
{id = 2402, count = 1},
{id = 2050, count = 1},
{id = 2467, count = 1},
{id = 2512, count = 1}
}
},
[4] = { -- knight
container = {
{id = 2120, count = 1},
{id = 2554, count = 1},
{id = 2674, count = 1}
},
eq = {
{id = 2525, count = 1},
{id = 2409, count = 1},
{id = 2457, count = 1},
{id = 2463, count = 1},
{id = 2647, count = 1},
{id = 2643, count = 1}
}
}
}
function onLogin(cid)
if getPlayerStorageValue(cid, 20933) == -1 then
setPlayerStorageValue(cid, 20933, 1)
local x = vocitems[getPlayerVocation(cid)]
if x then
for e = 1, #x.eq do
doPlayerAddItem(cid, x.eq[e].id, x.eq[e].count)
end
local bag = doPlayerAddItem(cid, 2000, 1)
for c = 1, #x.container do
doAddContainerItem(bag, x.container[c].id, x.container[c].count)
end
end
end
return TRUE
end
Last edited by a moderator: