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

Small script needed

helvetti

New Member
Joined
Oct 16, 2008
Messages
115
Reaction score
0
Location
Finland
Ok i need only a little script i think all you pro coders make in 1min
so i need some lever action script
that when you pull the lever at x=x y=x z=x itll move or removes the structure^_^
becouse there are some small lever bugs on rl map im using and im only using that kinda small lever script to fix em nothing big:w00t:
Ty if you can help me :$
i just started to study c++ and i don't want to move on lua yet :$:p
 
Lua:
local itemid = 2160 --itemid to remove from tile
local pos = {x = 1000, y = 1000, z = 7, stackpos = 254} --position to remove
local function onUse()
     local item = getItemFromPos(pos)
     if(item.itemid == itemid) then
          return doRemoveItem(item.uid)
     end
     return false
end

Untested, don't have functions in front of me.
 
Back
Top