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

Walk On Lava

Ataro

Member
Joined
Oct 28, 2010
Messages
689
Reaction score
20
Location
Netherlands
I want that if you are wearing boots (Example Fire Walkers) You can walk on some lava parts (i just give them another id)
Could someone help me make it?

Greetings,
 
Last edited:
LUA:
local t = {
	slot = CONST_SLOT_FEET,
	id = 9932
}

function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
	if fromPosition.x == 0 then
		if not isPlayer(cid) then
			doRemoveCreature(cid)
		else
			fromPosition = getTownTemplePosition(getPlayerTown(cid))
			doSendMagicEffect(fromPosition, CONST_ME_TELEPORT)
		end
	elseif not isPlayer(cid) or getPlayerSlotItem(cid, t.slot).itemid ~= t.id then
		doTeleportThing(cid, fromPosition, false)
	end

end
 
Back
Top