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

need help with 1 thing in a script.

Elaney

Member
Joined
Jan 1, 2009
Messages
1,561
Reaction score
12
Location
Sweden
well i need help that when 5 ppl have passed a tile something will happend, anyone that can show me the right way?
 
LUA:
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
	
	if isPlayer(cid) then
		if getStorage(item.itemid) == 4 then   -- this is the function that checks if the fifth player have stpped in
			-- do w/e you want
			doSetStorage(item.itemid,-1)  -- reset the players count
		else
			doSetStorage(item.itemid, getStorage(item.itemid) + 1 )
		end
	end
	return true
end
 
Back
Top