To tak mam spore problemy z nowo nabytym silnikiem 8.7 a dokladnie np nie idzie przejsc przez drzwi pisze you can use this obiect nie wiem czemu co prawda przestawilem sie z 8.54 ale zadnych bledow w ots nie ma a scrypty nie dzialaja ;/ nie wiem czemu ;/ wie ktos czemu np nie dziala takie cos
albo taki prosty
nic nie dziala ;/ nie wiem co zrobic ;/
Code:
function onUse(cid, item, frompos, item2, topos)
local yal1 = {x=2090, y=235, z=7, stackpos=1}
local yal2 = {x=2090, y=237, z=7, stackpos=1}
local yal3 = {x=2092, y=235, z=7, stackpos=1}
local yal4 = {x=2092, y=237, z=7, stackpos=1}
local getyal1 = getThingfromPos(yal1)
local getyal2 = getThingfromPos(yal2)
local getyal3 = getThingfromPos(yal3)
local getyal4 = getThingfromPos(yal4)
if(item.uid == 5378 and item.itemid == 9827 and getyal1.itemid == 9778 and getyal2.itemid == 9776 and getyal3.itemid == 9777 and getyal4.itemid == 2542) then
doRemoveItem(getyal1.uid, 1)
doRemoveItem(getyal2.uid, 1)
doRemoveItem(getyal3.uid, 1)
doRemoveItem(getyal4.uid, 1)
doCreateItem(8905,1,{x=2092, y=233, z=7})
doTransformItem(item.uid, item.itemid+1)
elseif(item.uid == 5378 and item.itemid == 9828) then
doTransformItem(item.uid, item.itemid-1)
else
doSendCancel(cid, "Sorry not possible.")
end
return TRUE
end
albo taki prosty
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local gatePosition2 = {x=2091, y=242, z=7, stackpos=1}
local getgate2 = getThingfromPos(gatePosition2)
if(item.uid == 5380 and item.itemid == 9827 and getgate2.itemid == 1429) then
doRemoveItem(getgate2.uid, 1)
doTeleportThing(cid,{x=2096, y=236, z=7})
doTransformItem(item.uid, item.itemid+1)
elseif(item.uid == 5380 and item.itemid == 9828 and getgate2.itemid == 1429) then
doRemoveItem(getgate2.uid, 1)
doTeleportThing(cid,{x=2096, y=236, z=7})
doTransformItem(item.uid, item.itemid-1)
else
doPlayerSendCancel(cid, "Sorry not possible.")
end
return TRUE
end