i got script for door:
But when i go into door i am in wall near the door
i try to change that:
to that:
but now i can go with that door only with one side
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if (item.actionid == 5788 and getPlayerStorageValue(cid,63111) >= 1) then
doTeleportThing(cid, {x=toPosition.x-1,y=toPosition.y,z=toPosition.z}, TRUE)
doCreatureSay(cid, "You can Pass Survival Door.", TALKTYPE_ORANGE_1)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You cannot pass this Survival Door.")
end
return true
end
But when i go into door i am in wall near the door
i try to change that:
PHP:
doTeleportThing(cid, {x=toPosition.x-1,y=toPosition.y,z=toPosition.z}, TRUE)
PHP:
doTeleportThing(cid, {x=toPosition.x,y=toPosition.y-1,z=toPosition.z}, TRUE)