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

Solved Lava Wall

Apoccalypse

New Member
Joined
Apr 15, 2017
Messages
114
Solutions
2
Reaction score
4
Lava wall is a kind of wall through which a player can go on the other of its side.
Is it possible to use a file item.xml and make that wall impossible to get through?
If yes, then how?
If no , is it another way to make that wall impossible to get through?

Thanks for help :)
 
I know it would work but there is a thing that I want to make that wall to disapear when anyone will switch a switch.
Here is a script:
function onUse(cid, item, frompos, item2, topos)
gatepos1 = {x=488, y=1287, z=11, stackpos=1}
gatepos2 = {x=490, y=1287, z=11, stackpos=1}
gatepos3 = {x=492, y=1287, z=11, stackpos=1}
gatepos4 = {x=494, y=1287, z=11, stackpos=1}
getgate1 = getThingfromPos(gatepos1)
getgate2 = getThingfromPos(gatepos2)
getgate3 = getThingfromPos(gatepos3)
getgate4 = getThingfromPos(gatepos4)
if item.uid == 12306 and item.itemid == 1945 and getgate1.itemid == 5062 then
doRemoveItem(getgate1.uid,1)
doTransformItem(item.uid,item.itemid+1)
elseif item.uid == 12306 and item.itemid == 1946
and getgate.itemid == 0 then
doCreateItem(5062,1,gatepos1)
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end
if item.uid == 12307 and item.itemid == 1945 and getgate2.itemid == 5062 then
doRemoveItem(getgate2.uid,1)
doTransformItem(item.uid,item.itemid+1)
elseif item.uid == 12307 and item.itemid == 1946
and getgate.itemid == 0 then
doCreateItem(5062,1,gatepos2)
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end
if item.uid == 12308 and item.itemid == 1945 and getgate3.itemid == 5062 then
doRemoveItem(getgate3.uid,1)
doTransformItem(item.uid,item.itemid+1)
elseif item.uid == 12308 and item.itemid == 1946
and getgate.itemid == 0 then
doCreateItem(5062,1,gatepos3)
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end
if item.uid == 12309 and item.itemid == 1945 and getgate4.itemid == 5062 then
doRemoveItem(getgate4.uid,1)
doTransformItem(item.uid,item.itemid+1)
elseif item.uid == 12309 and item.itemid == 1946
and getgate.itemid == 0 then
doCreateItem(5062,1,gatepos4)
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end
return 1
end

Everything works just great but my problem is that that wall is posiible to get through so there is no sense to remove it from your way.
When I put item 1548 on it I would need a script which remove two obstacles from a one position.
So I need either the script which will make me that possible or just make that wall impossible to get through.
 
Back
Top