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

Stone Script ... [Help]

Teddy

SweStream.se
Joined
Oct 2, 2008
Messages
3,797
Reaction score
10
Location
Sweden 172
Hello Otlanders :)
I need help whit a script (Stone Remove Script)
Look ..

62866884.jpg

When you pull the switch the stone will remove :
22190995.jpg

And After like 5 sec the stone will be back ...
Ofc if you help me i give you rep++
 
here you go.

Code:
local stonepos = {x=849, y=605, z=8, stackpos=1} -- pos of stone
local getstone = getThingfromPos(stonepos)
local stone = 1285

function onUse(cid, item, frompos, item2, topos)
		if item.uid == 1000 and item.id == 1945 then
		doRemoveItem(getstone.uid,1)
		doTransformItem(item.uid, 1946)
		addEvent(onTimer5, 2*60*1000)
		else
		doTransformItem(item.uid, 1945)
	end
	return 1
end

function onTimer5()

stonenewpos = {x=849, y=605, z=8} 
		doCreateItem(stone,1,stonepos)
end
 
YOu need to add it by urself omg :p
Right click on the switch and set ur unique id.

edit: i have checked the script and its not working, something is wrong with event timer, cause the server is crrashing while loading script system
 
Last edited:
go to the map editor, on the lever, click on properties and add a UniqueID "xxxx". Go to actions.xml and add this:
Code:
	<action uniqueid="xxxx" script="BLABLA/scriptname.lua"/>
 
Back
Top