In my spare time I wrote this script.
Description script:
Use the switch and it push the wall disappears automatically after 2minutes this wall back.
Script [Remaked by Spoking]:
Check it please and say if it working at TFS 0.3.6!
If there are errors, please correct!
Description script:
Use the switch and it push the wall disappears automatically after 2minutes this wall back.
Script [Remaked by Spoking]:
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
wall_pos = {x=617, y=647, z=12, stackpos=1}
wall = getThingfromPos(wall_pos)
if item.itemid == 1945 then
doSendMagicEffect(wall_pos, 10)
doRemoveItem(wall.uid, 1)
doTransformItem(item.uid, 1946)
addEvent(createWall, 2 * 60 * 1000)
else
doTransformItem(item.uid, 1945)
end
return TRUE
end
function createWall()
doCreateItem(1034, wall_pos)
doSendMagicEffect(wall_pos, 10)
end
Check it please and say if it working at TFS 0.3.6!
If there are errors, please correct!
Last edited: