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

what's firstItems.lua for?

foxfirediego

New Member
Joined
Jul 25, 2007
Messages
66
Reaction score
0
like the title said, what's firstItems.lua for?

Code:
local getFirstItems =
{
	2050,
	2382
}

function onStepIn(cid, item, pos)
	if isPlayer(cid) == TRUE then
		if getPlayerStorageValue(cid, 30001) == -1 then
			local i = 0
			while i < table.maxn(getFirstItems) do
				i = i + 1
				doPlayerAddItem(cid, getFirstItems[i], 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
	end
 	return TRUE
end
 
Back
Top