What's new

Skrypt na pojawianie si? ?ciany

Status
Not open for further replies.

Rock

Advanced User
Joined
Apr 12, 2009
Messages
241
Reaction score
33
Age
30
Witam!
Zanlaz?em ju? setki skrypt?w na znikanie ?ciany, a mi potrzebny jest na pojawianie si? ich.
Prosz? o pomoc.
Pozdrawiam,
Rock
P.S. Mo?e byc te? na inne wersj? 8.1+, byle by dzia?a? na 8.60
#edit
Ju? znalaz?em, ale wyskakuje b??d z unexpected symbol near "="
function onUse(cid, item, frompos, item2, topos)
gatepos1 = {x=1012, y=979, z=6, stackpos=2}
gatepos2 = {x=1015, y=981, z=6, stackpos=2}
getgate = getThingfromPos(gatepos1),
getgate = getThingfromPos(gatepos2)
if item.uid = 8800 and item.itemid = 1945 and getgate.itemid = 0 then
doCreateItem(1546,1,gatepos1)
doCreateItem(1547,1,gatepos2)
doTransformItem(item.uid,item.itemid+1)
elseif item.uid = 8800 and item.itemid = 1946 then
doRemoveItem(getgate.uid,1)
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end
return 1
end
Co jest ?le?
 

Tron

Active User
Joined
Sep 6, 2010
Messages
122
Reaction score
23
Odp: Skrypt na pojawianie si? ?ciany

Tu mam na pojawianie sie schodow na feru tower
function onUse(cid, item, frompos, item2, topos)
gatepos = {x=643, y=542, z=8, stackpos=1}
getgate = getThingfromPos(gatepos)

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

Po przerobieniu na Twoja wersje
function onUse(cid, item, frompos, item2, topos)
gatepos = {x=1012, y=979, z=6, stackpos=1}
gatepos2 = {x=1015, y=981, z=6, stackpos=1}
getgate = getThingfromPos(gatepos)
getgate2 = getThingfromPos(gatepos2)

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

Napisz czy dzia?a, bo sprawdza?em tylko czy nie ma b??d?w w konsoli
 
Status
Not open for further replies.
Top