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

Lua leaver removes wall script

TKO

Syphero Owner!
Joined
Mar 10, 2008
Messages
2,252
Reaction score
27
Location
Sweden
hey is there any script that removes a wall with a leaver? i cant find any when i searched:S
 
Lua:
  -- Scripted By Apsivaflines


function onUse(cid, item, frompos, item2, topos)
 
        local switchUniqueID = 12613  -- uniqueID of switch
        local switchID = 1945
        local switch2ID = 1946
        local itemID = 5527
        local itempos = {x=1097, y=1216, z=12, stackpos=1}
        local wallpos = {x=1097, y=1213, z=12, stackpos=1}
 
        local playername = getPlayerName(cid)
        local getitem = getThingfromPos(itempos)
        local wallchk = getThingfromPos(wallpos)
 
        if item.uid == switchUniqueID and item.itemid == switchID and getitem.itemid == itemID and wallchk.itemid == 1026 then
                        doSendMagicEffect(itempos,10)
                        doSendMagicEffect(wallchk,10)
                        doRemoveItem(getitem.uid,1)
                        doRemoveItem(wallchk.uid,1)
                        doTransformItem(item.uid,item.itemid+1)
                        addEvent(onTimer5, 2*60*1000)
        elseif item.uid == switchUniqueID and item.itemid == switch2ID then
                        doTransformItem(item.uid,item.itemid-1)
        else
                        doPlayerSendCancel(cid,"You need to place the corpse of the slain demon lord.")
end
        return 1
end


function onTimer5()

wallnewpos = {x=1097, y=1213, z=12}
                doCreateItem(1026,1,wallnewpos)
end

just edit this script, not made by me.
credits go to Apsivaflines.

Original Thread:
http://otland.net/f81/fully-working-inquisition-quest-0-2-5-a-56982/

Tested on TFS 0.3.6pl1.
 
Back
Top Bottom