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

Tile Quest Help onStepIn, onStepOut etc

Joined
Dec 31, 2007
Messages
176
Reaction score
2
Location
Vivalla
How Would i make a wall that is getting removed
when someone steps on a tile, then gets reset when player steps of?
its going to be like a 2-man quest with 2 tiles on each side of
the wall to remove, first our friend steps on tile while you pass
the wall, then you step on the other tile that makes the wall
be removed again when your friend needs to pass through...
 
you mean something of this right?

Lua:
function onStepIn(cid, item, frompos, item2, topos) 
	wall1 = {x=461, y=1374, z=10, stackpos=1}
	getwall1 = getThingfromPos(wall1)

	if item.uid == 64119 then
		doTransformItem(item.uid, item.itemid - 1)
		doCreateItem(383,1,wall1)
end
end

function onStepOut(cid, item, frompos, item2, topos)
	wall1 = {x=461, y=1374, z=10, stackpos=1}
	getwall1 = getThingfromPos(wall1)

	if item.uid == 64119 then
		doTransformItem(item.uid, item.itemid + 1)
		doRemoveItem(getwall1.uid,1)

	end

	return true
end
 
you mean something of this right?

Lua:
function onStepIn(cid, item, frompos, item2, topos) 
	wall1 = {x=461, y=1374, z=10, stackpos=1}
	getwall1 = getThingfromPos(wall1)

	if item.uid == 64119 then
		doTransformItem(item.uid, item.itemid - 1)
		doCreateItem(383,1,wall1)
end
end

function onStepOut(cid, item, frompos, item2, topos)
	wall1 = {x=461, y=1374, z=10, stackpos=1}
	getwall1 = getThingfromPos(wall1)

	if item.uid == 64119 then
		doTransformItem(item.uid, item.itemid + 1)
		doRemoveItem(getwall1.uid,1)

	end

	return true
end

Perfect (Y) THX for the quick answer
 
Back
Top