Koci1994
Banned User
- Joined
- Dec 27, 2008
- Messages
- 807
- Reaction score
- 1
Udało mi sie juz niezły kawałek tego skryptu skleić :
JESZCZE NIE MOGE ZROBIC ZEBY TA FUNKJA NA CZERWNO TWORZYLA SWITCH 1945 O UNIQUE 7041. Plx help
Code:
function onUse(cid, item, frompos, item2, topos)
gatepos = {x=1657, y=410, z=15, stackpos=1}
switchpos = {x=1672, y=409, z=15, stackpos=1}
getgate = getThingfromPos(gatepos)
getswitchpos = getThingfromPos(switchpos)
local getitem = getThingfromPos(gatepos,getswitchpos)
local switchUniqueID = 7041
local nowa = 7042
local blok = 7043
local switchID = 1945
local switch2ID = 1946
if item.uid == 7041 and item.itemid == 1945 and getgate.itemid == 1355 then
doRemoveItem(getgate.uid,1)
doTransformItem(item.uid,item.itemid+1)
addEvent(onTimer6, 6*1000)
elseif item.uid == switchUniqueID and item.itemid == switch2ID then
doTransformItem(item.uid,item.itemid-1)
elseif item.uid == 7041 and item.itemid == 1946 and getgate.itemid == 0 then
doCreateItem(1355,1,gatepos)
doTransformItem(item.uid,item.itemid+1)
else
end
return 1
end
function onTimer6()
wallnewpos = {x=1657, y=410, z=15}
switchhpos = {x=1672, y=409, z=15}
doCreateItem(1355,1,wallnewpos)
doRemoveItem(getswitchpos.uid,1)
[COLOR="Red"][B] doCreateItem(1945,1,switchhpos)[/B][/COLOR]
end
Last edited: