Hello, i need a script thats gonna remove 4 magic walls and the lever after pulling it.
Heres my actually script thats removing the magic walls, but i dont know how to add it so it removes the lever xd
Heres my actually script thats removing the magic walls, but i dont know how to add it so it removes the lever xd
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
removals = {
{ item = 1498, pos = { x = 32915 , y = 32076 , z = 6 } },
{ item = 1498, pos = { x = 32915 , y = 32081 , z = 6 } }
{ item = 1498, pos = { x = 32915 , y = 32083 , z = 6 } }
{ item = 1498, pos = { x = 32915 , y = 32084 , z = 6 } }
}
if item.itemid == 1945 then
for i = 1, #removals do
removals[i].pos.stackpos = 1
doRemoveItem(getThingfromPos(removals[i].pos).uid, 1)
end
return TRUE
end