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

Lua Pits of Inferno Error

Powtreeman

Member
Joined
Sep 26, 2011
Messages
400
Reaction score
6
Location
USA
I get this error when I try to use the levers when someone is supposed to stand by the rock. The 15 levers work just great. This one is right after that.
Anyone know what to do?
 
this is the levers script
Code:
local pos = {
   [1] = {x = 32861, y = 32305, z = 11, stackpos = 0},
   [2] = {x = 32860, y = 32313, z = 11},
}

function onUse(cid, item, fromPosition, itemEx, toPosition)
   if(item.itemid == 1945) then
     if(item.uid == 3301) then
       doTransformItem(getThingfromPos(pos[1]).uid, 1284)
       for i = 1, 2 do
         newPos = {x = pos[1].x, y = pos[1].y, z = pos[1].z, stackpos = 1}
         doRemoveItem(getThingfromPos(newPos).uid)
       end
     elseif(item.uid == 3302) then
       doRemoveItem(getTileItemById(pos[2], 387).uid)
     end
     doTransformItem(item.uid, 1946)
   end
   return true
end
 
sigh nvm. fixed...maybe i should spend a little more time figuring it out myself before posing on here for help lol. if anyone else has this problem msg me and ill tell you what i did
 
Back
Top