• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua First items help !

wafuboe

Member
Joined
Dec 24, 2010
Messages
884
Solutions
2
Reaction score
24
this is a script gives the first items on your 1st login it gives the right equipment to all vocations, but...

i want a especific backpack for each vocation example..
paladin: brocade bp with elven arrow,sniper arrow etc.
knight: exploration bp with: orchish axe, mornig star etc.
druid camouflage bp with dfsagfsda
sorceer: purple bp with fdsgds

thanks here is the script

local firstItems = {}
firstItems[0] =
{
2173,
2525,
3965,
2124,
2457,
2647,
2643
}
firstItems[1] =
{
2173,
8901,
2187,
6301,
2323,
7730,
2195
}
firstItems[2] =
{
2173,
8901,
2183,
6301,
2323,
7730,
2195
}
firstItems[3] =
{
2173,
2525,
2399,
2124,
2457,
2647,
2643
}
firstItems[4] =
{
2173,
2525,
2428,
2124,
2457,
2647,
2643
}

function onLogin(cid)
if getPlayerStorageValue(cid, 30001) == -1 then
for i = 1, table.maxn(firstItems[getPlayerVocation(cid)]) do
doPlayerAddItem(cid, firstItems[getPlayerVocation(cid)], 1)
end
local bag = doPlayerAddItem(cid, 10519, 1)
doAddContainerItem(bag, 2160, 1)
doAddContainerItem(bag, 2554, 1)
doAddContainerItem(bag, 2120, 1)
doAddContainerItem(bag, 7618, 10)
doAddContainerItem(bag, 7620, 10)
setPlayerStorageValue(cid, 30001, 1)
end
return TRUE
end
 
Back
Top