• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

[Actions] Switch and items on correct places (like desert q).

DVEagle

New Member
Joined
Aug 29, 2009
Messages
95
Reaction score
3
Location
PoLand
Edited 2 simple ver.:

I need to put da 4 items on 4 xyz places and if i use the lever then some floor appears in specifed place ... uhhuh uhhuh

If anyone could write this script,please rep waiting :) ++...
 
Last edited:
Code:
local Items = {
{pos = {x=1030,y=1325,z=13,[COLOR=red]stackpos=2[/COLOR]}, id = 9447},
{pos = {x=1033,y=1323,z=13,[COLOR=red]stackpos=2[/COLOR]}, id = 2557},
{pos = {x=1036,y=1325,z=13,[COLOR=red]stackpos=2[/COLOR]}, id = 6531},
{pos = {x=1033,y=1329,z=13,[COLOR=red]stackpos=2[/COLOR]}, id = 5797}
}
local bridge = {
{pos = {x=1034,y=1263,z=11}}
}
 
function onUse(cid)
local items, item = {};
for _,itemData in pairs(Items) do
item = getTileItemById(itemData.pos, itemData.id);
if(item.uid == 2001)then
table.insert(items, item);
end
item = NULL; -- not sure;
end
 
if #items == #Items then
doCreateItem(1284,bridge)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You need to put item's on correct positions!")
end
 
return true
end
 
Back
Top