• 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 need some help [outfit fixed storage]

Discovery

Developing myself
Joined
Apr 16, 2010
Messages
562
Solutions
11
Reaction score
261
Location
Neverland
LUA:
function onStepIn(cid, item, pos, fromPos)
	if isPlayer(cid) then
		local n, t = 0, getPlayersOnline()
		for i = 1, #t do
			if getPlayerAccess(t[i]) == 0 then
				n = n + 1
			end
		end
		local cur, outfit, position = getCreatureOutfit(cid)
		if n % 2 == 0 then -- even
			outfit = {lookType=cur.lookType, lookHead=0, lookBody=0, lookLegs=0, lookFeet=0, lookAddons=3}
			position = {x=1090, y=1097, z=7}
		else -- odd
			outfit = {lookType=cur.lookType, lookHead=0, lookBody=0, lookLegs=0, lookFeet=0, lookAddons=3}
			position = {x=1188, y=1074, z=7}
		end
		doCreatureChangeOutfit(cid, outfit)
		doTeleportThing(cid, position)
	end
end



I need outfit fixed player pass to teleport (not position).
thanks for reading
 
Last edited by a moderator:
Back
Top