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

Pull lever, remove corpse, and wall.

Slain

TrueHavoc.com
Joined
Nov 27, 2008
Messages
2,242
Reaction score
31
I really need a script that when you pull a lever an item on X coord disappears and so does a wall on X coord. also a time that creates the wall again would be great, thanks.
 
Code:
local function back(params)
	doCreatItem(params.wallid, 1, params.wallpos)
	doTransformItem(params.laver, item.itemid - 1)
end

function onUse(cid, item, fromPosition, itemEx, toPosition)
	local corpsePos = {x=,y=,z=,stackpos=}
	local corpse = getThingFromPos(corpsePos)
	local corpseId = 1234

	local wallPos = {x=,y=,z=,stackpos=}
	local wall = getThingFromPos(wallPos)
	local wallId = 1234

	local time = 10

	if (item.itemid == 1945 and corpse.itemid == corpseId and wall.itemid == wallId) then
		doRemoveItem(corpse.uid, 1)
		doRemoveItem(wall.uid, 1)
		doTransformItem(item.uid, item.itemid + 1)
		addEvent(back, time * 60 * 1000, {wallid = wallId, wallpos = wallPos, laver = item.uid})
	end
	return true
end
 
hey chojrak your script works great but is there a way to make the stackpos like 1 or 2 because a drop of blood on same tile breaks it :/ like it works but if i get blood splash on tile im screwed til it goes away.
 
Back
Top