Skrypt Na Dzwignie z Czasem

Status
Zamknięty.

imdrox

Senior User
Zarejestrowany
Dołączył
Maj 5, 2008
Posty
518
Liczba reakcji
24
Poszukuje Skryptu na dzwignie kora by uswala sciane mam taki:
PHP:
function onUse(cid, item, frompos, item2, topos)
gatepos = {x=243, y=172, z=8, stackpos=1}
getgate = getThingfromPos(gatepos)
if item.uid == 7066 and item.itemid == 1945 and getgate.itemid == 1026 then
doRemoveItem(getgate.uid,1)
doTransformItem(item.uid,item.itemid+1)
elseif item.uid == 7066 and item.itemid == 1946
and getgate.itemid == 0 then
doCreateItem(1026,1,gatepos)
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end
return 1
end
Lecz Chcialbym Aby ktos dodal do tego skryptu aby TA DZWIGNIA PO 30 SEKUNDACH POWROCILA DO SWOJEGO PIERWOTNEGO STANU A SCIANA TAK SAMO.
 
Odp: Skrypt Na Dzwignie z Czasem

Prosze:
local gatepos = {x=1170, y=981, z=11, stackpos=1}

function onUse(cid, item, frompos, item2, topos)
local getgate = getThingfromPos(gatepos)

if item.itemid == 1945 and getgate.itemid == 9470 then
doRemoveItem(getgate.uid, 1)
doTransformItem(item.uid, item.itemid+1)
elseif item.itemid == 1946 and getgate.itemid == 0 then
doCreateItem(9470, 1, gatepos)
doTransformItem(item.uid, item.itemid-1)
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end
return 1
end

local gatepos = {x=1170, y=981, z=11, stackpos=1}
- Tu wpisujesz wsp??rz?dne ?ciany.

9470 - To jest id ?ciany
1945 - To jest id d?wigni
 
Status
Zamknięty.
Back
Do góry