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

walkback

Mauzim

Member
Joined
Jan 3, 2011
Messages
568
Reaction score
9
PHP:
local SPECIAL_QUESTS = {2001}

function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
	if(not isPlayer(cid) or (isContainer(item.uid) and not isInArray(SPECIAL_QUESTS, item.actionid)
		and item.uid > 65535) or getTileInfo(fromPosition).floorChange[9] or
		getTileInfo(position).creatures <= 1) then
		return true
	end

	if(lastPosition.x == 0) then -- player just logged in
		lastPosition = getTownTemplePosition(getPlayerTown(cid))
		doSendMagicEffect(lastPosition, CONST_ME_TELEPORT)
	end

	doTeleportThing(cid, lastPosition, true)
	return true
end
in rev 4395 it not work how to fix that :S
all players can walk in quest chests
 
Back
Top