Eraser
Hoster
How to change the start equipment of each vocation, if i create a new character?? (without chests).
Need some help
Need some help
function onLogin(cid)
if getPlayerStorageValue(cid, 50001) == -1 then
if getPlayerVocation(cid) == 1 or getPlayerVocation(cid) == 5 then
local bag = doPlayerAddItem(cid, 1988, 1)
doPlayerAddItem(cid, 2509, 1)
doPlayerAddItem(cid, 2190, 1)
doPlayerAddItem(cid, 2468, 1)
doPlayerAddItem(cid, 8819, 1)
doPlayerAddItem(cid, 8820, 1)
doPlayerAddItem(cid, 2643, 1)
doAddContainerItem(bag, 2554, 1)
doAddContainerItem(bag, 2120, 1)
setPlayerStorageValue(cid, 50001, 1)
elseif getPlayerVocation(cid) == 2 or getPlayerVocation(cid) == 6 then
local bag = doPlayerAddItem(cid, 1988, 1)
doPlayerAddItem(cid, 2509, 1)
doPlayerAddItem(cid, 2182, 1)
doPlayerAddItem(cid, 2468, 1)
doPlayerAddItem(cid, 8819, 1)
doPlayerAddItem(cid, 8820, 1)
doPlayerAddItem(cid, 2643, 1)
doAddContainerItem(bag, 2554, 1)
doAddContainerItem(bag, 2120, 1)
setPlayerStorageValue(cid, 50001, 1)
elseif getPlayerVocation(cid) == 3 or getPlayerVocation(cid) == 7 then
local bag = doPlayerAddItem(cid, 1988, 1)
doPlayerAddItem(cid, 2456, 1)
doPlayerAddItem(cid, 2660, 1)
doPlayerAddItem(cid, 8923, 1)
doPlayerAddItem(cid, 2480, 1)
doPlayerAddItem(cid, 2643, 1)
doPlayerAddItem(cid, 2544, 100)
doAddContainerItem(bag, 2554, 1)
doAddContainerItem(bag, 2120, 1)
doPlayerAddItem(cid, 2389, 5)
setPlayerStorageValue(cid, 50001, 1)
end
end
return TRUE
end