So, I have a problem with removing mwalls in banshee quest. I made a Real Banshee Quest but i had a strange problem. I was copied this script from Behemoth Quest and change item id form stone to mwall and there... its doesn't work :| Also i can't create this item(id-1498) by god everywhere. Next stragne thing is - another mwalls, which don't appertain to this scripts aren't showing in game but in map editor - are. What the fuck...
script:
script:
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local gatePosition = {x=32266, y=31860, z=11, stackpos=1}
local getGate = getThingFromPos(gatePosition)
if(item.uid == 5001) then
if(item.itemid == 1945 and getGate.itemid == 1498) then
doRemoveItem(getGate.uid, 1)
doTransformItem(item.uid, item.itemid+1)
elseif(item.itemid == 1946 and getGate.itemid == 0) then
doCreateItem(1498, 1, gatePosition)
doTransformItem(item.uid, item.itemid-1)
else
doPlayerSendCancel(cid, "Sorry not possible.")
end
end
return TRUE
end