deathpercent = xx
deathpercent = 10
local firstItems =
{
2050,
2382
}
function onLogin(cid)
if getPlayerStorageValue(cid, 30001) == -1 then
local bag = doPlayerAddItem(cid, 1987, 1)
doAddContainerItem(bag, 2674, 1)
setPlayerStorageValue(cid, 30001, 1)
for i = 1, table.maxn(firstItems) do
doPlayerAddItem(cid, firstItems[i], 1)
end
if getPlayerSex(cid) == 0 then
doPlayerAddItem(cid, 2651, 1)
else
doPlayerAddItem(cid, 2650, 1)
end
end
return TRUE
end
local firstItems =
{
2050,
2382
}
function onLogin(cid)
local bag = doPlayerAddItem(cid, 1987, 1)
doAddContainerItem(bag, 2674, 1)
for i = 1, table.maxn(firstItems) do
doPlayerAddItem(cid, firstItems[i], 1)
end
if getPlayerSex(cid) == 0 then
doPlayerAddItem(cid, 2651, 1)
else
doPlayerAddItem(cid, 2650, 1)
end
return TRUE
end
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)
doAddContainerItem(bag, 2554, 1)
doAddContainerItem(bag, 2268, 5)
doAddContainerItem(bag, 2273, 5)
doAddContainerItem(bag, 2293, 3)
doAddContainerItem(bag, 2313, 5)
doAddContainerItem(bag, 7590, 1)
doPlayerAddItem(cid, 2175, 1)
doPlayerAddItem(cid, 2187, 1)
doPlayerAddItem(cid, 2656, 1)
doPlayerAddItem(cid, 2662, 1)
doPlayerAddItem(cid, 2488, 1)
doPlayerAddItem(cid, 2195, 1)
setPlayerStorageValue(cid, 1000, 1)
elseif isDruid(cid) then
local bag = doPlayerAddItem(cid, 1988, 1)
doAddContainerItem(bag, 2120, 1)
doAddContainerItem(bag, 2554, 1)
doAddContainerItem(bag, 2268, 5)
doAddContainerItem(bag, 2273, 5)
doAddContainerItem(bag, 2293, 3)
doAddContainerItem(bag, 2313, 5)
doAddContainerItem(bag, 7590, 1)
doPlayerAddItem(cid, 2175, 1)
doPlayerAddItem(cid, 2187, 1)
doPlayerAddItem(cid, 2656, 1)
doPlayerAddItem(cid, 2662, 1)
doPlayerAddItem(cid, 2488, 1)
doPlayerAddItem(cid, 2195, 1)
setPlayerStorageValue(cid, 1000, 1)
elseif isPaladin(cid) then
local bag = doPlayerAddItem(cid, 1988, 1)
doAddContainerItem(bag, 2120, 1)
doAddContainerItem(bag, 2554, 1)
doAddContainerItem(bag, 7591, 1)
doAddContainerItem(bag, 2268, 1)
doAddContainerItem(bag, 2313, 1)
doPlayerAddItem(cid, 2455, 1)
doPlayerAddItem(cid, 2547, 100)
doPlayerAddItem(cid, 2656, 1)
doPlayerAddItem(cid, 2491, 1)
doPlayerAddItem(cid, 2488, 1)
doPlayerAddItem(cid, 2195, 1)
setPlayerStorageValue(cid, 1000, 1)
elseif isKnight(cid) then
local bag = doPlayerAddItem(cid, 1988, 1)
doAddContainerItem(bag, 2120, 1)
doAddContainerItem(bag, 2554, 1)
doAddContainerItem(bag, 2313, 1)
doAddContainerItem(bag, 7591, 1)
doAddContainerItem(bag, 2304, 1)
doPlayerAddItem(cid, 2519, 1)
doPlayerAddItem(cid, 2407, 1)
doPlayerAddItem(cid, 2487, 1)
doPlayerAddItem(cid, 2491, 1)
doPlayerAddItem(cid, 2488, 1)
doPlayerAddItem(cid, 2195, 1)
setPlayerStorageValue(cid, 1000, 1)
end
end
return TRUE
end
in my config.lua..deathpercent
function onLogin(cid)
if getPlayerGroupId(cid) == 1 then
if (isSorcerer(cid) or isDruid(cid)) then
local bag = doPlayerAddItem(cid, 1988, 1)
doAddContainerItem(bag, 2268, 5)
doAddContainerItem(bag, 2273, 5)
doAddContainerItem(bag, 2293, 3)
doAddContainerItem(bag, 2313, 5)
doAddContainerItem(bag, 7590, 1)
doPlayerAddItem(cid, 2175, 1)
doPlayerAddItem(cid, 2187, 1)
doPlayerAddItem(cid, 2656, 1)
doPlayerAddItem(cid, 2662, 1)
elseif (isPaladin(cid) or isKnight(cid)) then
local bag = doPlayerAddItem(cid, 1988, 1)
doAddContainerItem(bag, 7591, 1)
doAddContainerItem(bag, 2313, 1)
doPlayerAddItem(cid, 2491, 1)
if isPaladin(cid) then
doAddContainerItem(bag, 2268, 1)
doPlayerAddItem(cid, 2455, 1)
doPlayerAddItem(cid, 2547, 100)
doPlayerAddItem(cid, 2656, 1)
elseif isKnight(cid) then
doAddContainerItem(bag, 2304, 1)
doPlayerAddItem(cid, 2519, 1)
doPlayerAddItem(cid, 2407, 1)
doPlayerAddItem(cid, 2487, 1)
end
end
doAddContainerItem(bag, 2120, 1)
doAddContainerItem(bag, 2554, 1)
doPlayerAddItem(cid, 2488, 1)
doPlayerAddItem(cid, 2195, 1)
end
return TRUE
end