• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Help Lever please

Viidu

New Member
Joined
Feb 3, 2011
Messages
2
Reaction score
0
guys, I need a script that when the player press the lever to create a bridge and after 1 minute short that bridge
 
It would help if you explained more... How long and how big bridge?, what sort of id on the bridge tiles?, So after one minute the bridge will get removed? if so it would get very advanced, it will for me anyway since it need to have countdown and alot of other like lib scripts i think xD
 
So, I would like to leverage "9828" create a bridge "446", and after 1 minute the bridge disappears.

I have this script aki, but he is doing the opposite, if he is removing a wall and after a while the back wall alone:

function onUse(cid, item, fromPosition, itemEx, toPosition)
pedra_pos = {x=99, y=97, z=9, stackpos=1}
pedra = getThingfromPos(pedra_pos)

if item.itemid == 9825 and pedra.itemid == 1025 then
doSendMagicEffect(pedra_pos, 9)
doRemoveItem(pedra.uid, 1)
doTransformItem(item.uid, 9826)
addEvent(createPedra, 1 * 60 * 1000)
doCreatureSay(cid, "Você tem 1 minuto para achar a saida !", TALKTYPE_ORANGE_1)
end
if item.itemid == 9826 then
doTransformItem(item.uid, 9825)
else
doPlayerSendCancel(cid,"Desculpe, isso não é possivel.")
end
return TRUE
end

function createPedra()
doCreateItem(1025, pedra_pos)
doSendMagicEffect(pedra_pos, 3)
end

please, someone who understands the script can edit it to do the opposite?
 
unless you're using 0.4, you can't create ground on a position that doesn't have a tile already.
 
Back
Top