Hi,
I need your help to do double worked switch as in cave in rookgaard under city.
Currently I did for one it's worke and scripts look like this. But how to do this scripts for second switch to follow first one ?
When monster is on the bridge I can't use switch, is any also solution for this ?
I need your help to do double worked switch as in cave in rookgaard under city.
Currently I did for one it's worke and scripts look like this. But how to do this scripts for second switch to follow first one ?
Code:
function onUse(cid, item, frompos, item2, topos)
gatepos1 = {x=32100, y=32205, z=8, stackpos=1}
gatepos2 = {x=32101, y=32205, z=8, stackpos=1}
getgate1 = getThingfromPos(gatepos1)
getgate2 = getThingfromPos(gatepos2)
if item.uid == 9004 and item.itemid == 1945 and getgate1.itemid == 0 and getgate2.itemid ==
0 then
doCreateItem(1284,1,gatepos1)
doCreateItem(1284,1,gatepos2)
doTransformItem(item.uid,item.itemid+1)
elseif item.uid == 9004 and item.itemid == 1946 and getgate1.itemid == 0 and getgate2.itemid
== 0 then
doCreateItem(508,1,gatepos1)
doCreateItem(509,1,gatepos2)
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end
return 1
end
When monster is on the bridge I can't use switch, is any also solution for this ?