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

Script

Wipflash

Old School
Joined
Jul 27, 2010
Messages
1,101
Reaction score
87
Location
Sweden
Hello otland users ! I'am requesting a script that when u pull a lever it summon 3 x items (like a small bridge)

here is a exampel script.

Code:
 ---Config
local itemsummon = 1284 -- The item that will appear
local pos = x:1000 y:1000 z:7 -- Position where the item will appear
local itemsummon = 1284 -- The item that will appear
local pos = x:1001 y:1000 z:7 -- Position where the item will appear
local itemsummon = 1284 -- The item that will appear
local pos = x:1002 y:1000 z:7 -- Position where the item will appear
}
--End
function onUse

someting like that. THAT CODE WAS JUST AN EXAMPEL
:P
Hope someone could help :P
 
LUA:
local items = {
{pos = {x = 1000, y = 1000, z = 7}, itemid = 1284},
{pos = {x = 1000, y = 1000, z = 7}, itemid = 1284},
{pos = {x = 1000, y = 1000, z = 7}, itemid = 1284}
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
	for i = 1, #items do	
		doCreateItem(items[i].itemid, 1, items[i].pos)
	end
	return true
end
 
Back
Top