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

Newbie Scripting

Gangsta-jr

You are an elite knight
Senator
Joined
Jan 13, 2008
Messages
1,547
Reaction score
3
Location
Bottrop, Germany
Code:
local UIDS = {5254,5255,5256,5257}
local FIRE_POSITIONS = {
{x = X, y = Y, z = Z, stackpos = 255},
{x = X, y = Y, z = Z, stackpos = 255},
{x = X, y = Y, z = Z, stackpos = 255},
{x = X, y = Y, z = Z, stackpos = 255}
}
local FIRE_ID = 5062
local THING, INFO, POS
local TIME = 5

function onUse(cid, item, frompos, item2, topos)
	if item.itemid == 1945 then
		local LEVER_POS = getThingPos(item.uid)
		doTransformItem(item.uid, 1946, 1)
		doRemoveItem(THING,uid, 1)

	elseif item.itemid == 1946 then
		local LEVER_POS = getThingPos(item.uid)
		doTransformItem(item.uid, 1945, 1)
	end	
		return 1
end

Well ive tried some scripting and I want to know if that would work

if you pull a lever a stone disappears (better say a wall)

I mean if you pull the first lever , the first wall disappears and not like if you pull one lever all stones disappear
 
Back
Top