• 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!

How do I change the equipment people start with?

The Unforgiven

New Member
Joined
Dec 9, 2008
Messages
73
Reaction score
0
Topic. Either that, or how do I make a chest contain a basic set for every person that opens it?
 
Last edited:
C:\[YOUR SERVER]\data\creaturescripts\scripts\firstitem.lua
-.-'

local firstItems =
{
2050,
2382
}

function onLogin(cid)
if getPlayerStorageValue(cid, 30001) == -1 then
for i = 1, table.maxn(firstItems) do
doPlayerAddItem(cid, firstItems, 1)
end
if getPlayerSex(cid) == 0 then
doPlayerAddItem(cid, 2651, 1)
else
doPlayerAddItem(cid, 2650, 1)
end
local bag = doPlayerAddItem(cid, 1987, 1)
doAddContainerItem(bag, 2674, 1)
setPlayerStorageValue(cid, 30001, 1)
end
return TRUE
end
 
Okay, thanks. I tried searching, but I didn't get anything...

And one more thing, where would I change how much mana food restores? Would that be the item file, or vocations?
 
Back
Top