Mr Zool
New Member
- Joined
- Jul 5, 2012
- Messages
- 216
- Reaction score
- 2
Can someone edit this script to create 2 gates ?
example :
gatepos = {x=512, y=467, z=7, stackpos=1}, {x=513, y=467, z=7, stackpos=1} ???
just 2 gates next to eachother
I need also script, cant find.
If "demodras" die, On "x,y,z" making id "429" - opened stairs for 60sec.
And there is broadcast "xxx player" killed demodras.
example :
gatepos = {x=512, y=467, z=7, stackpos=1}, {x=513, y=467, z=7, stackpos=1} ???
just 2 gates next to eachother
Code:
function onUse(cid, item, frompos, item2, topos)
gatepos = {x=512, y=467, z=7, stackpos=1}
getgate = getThingfromPos(gatepos)
if item.uid == 1503 and item.itemid == 1945 and getgate.itemid == 3687 then
doRemoveItem(getgate.uid,1)
doTransformItem(item.uid,item.itemid+1)
elseif item.uid == 1503 and item.itemid == 1946
and getgate.itemid == 0 then
doCreateItem(3687,1,gatepos)
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end
return 1
end
I need also script, cant find.
If "demodras" die, On "x,y,z" making id "429" - opened stairs for 60sec.
And there is broadcast "xxx player" killed demodras.