• 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 sewer grate - switch

justikar

Active Member
Joined
Oct 28, 2013
Messages
149
Reaction score
35
Hi, this is a sewer grate switch for rookgaard, script works fine, but console get erro saying:

luadoremovething<> thing not found
Lua script erro: action interface

Can someone help? i use AVESTA 0.6.3


lever.png



Code:
function onUse(cid, item, frompos, item2, topos)
    tile1 = {x = 32100, y = 32205, z = 8, stackpos = 1}
    tile2 = {x = 32101, y = 32205, z = 8, stackpos = 1}
    local playerTile = {x = 32100, y = 32205, z = 8}
    local playerTile1 = {x = 32101, y = 32205, z = 8}
    gettile1 = getThingfromPos(tile1)
    gettile2 = getThingfromPos(tile2)
    if item.uid == 3009 and item.itemid == 1945 then
        doCreateItem(493,1,tile1)
        doCreateItem(493,1,tile2)
        doCreateItem(4799,1,tile1)
        doCreateItem(4797,1,tile2)
        doRemoveItem(gettile1.uid,1)
        doRemoveItem(gettile2.uid,1)
        if isCreature(getTopCreature(playerTile).uid) then
            doTeleportThing(getTopCreature(playerTile).uid, {x = 32099, y = 32205, z = 8})
        end
        if isCreature(getTopCreature(playerTile1).uid) then
            doTeleportThing(getTopCreature(playerTile1).uid, {x = 32102, y = 32205, z = 8})
        end
        doTransformItem(item.uid,item.itemid+1)
    elseif item.uid == 3009 and item.itemid == 1946 then
        doCreateItem(1284,1,tile1)
        doCreateItem(1284,1,tile2)
        doRemoveItem(gettile1.uid,1)
        doRemoveItem(gettile2.uid,1)

        doTransformItem(item.uid,item.itemid-1)
    else
        doPlayerSendCancel(cid,"Sorry, not possible.")
    end
    return 1
end
 
Last edited:
Could you post a picture of the place to facilitate. And it would be interesting to have a reference that TFS version you use . Att
 
Back
Top