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

how to add monster in this script? with delay to use switch.

tompan

Member
Joined
Dec 13, 2008
Messages
646
Reaction score
24
Location
Sweden
Code:
local e = 0
 
function onUse(cid, item, frompos, item2, topos)
	if item.itemid == 1945 then
		doRemoveItem(getTileItemById({x=747, y=1043, z=7}, 1353).uid)
		e = addEvent(doCreateItem, 60000, 1353, 1, {x=747, y=1043, z=7})
	else
		stopEvent(e)
		e = 0
		doCreateItem(1353, 1, {x=747, y=1043, z=7})
	end
	return 1, doTransformItem(item.uid, item.itemid == 1945 and 1946 or 1945)
end


i want a monster to come infront of the stone that you need to kill fast before the stone gets back. and if you fail and want to drag the switch again you need to wait X seconds.
Possible ?
 
Last edited:
Back
Top