Follow along with the video below to see how to install our site as a web app on your home screen.
Notka: This feature may not be available in some browsers.
--Nonix
function onUse(cid, item, fromPosition, itemEx, toPosition)
local ID = IdDrabinki
if item.itemid == ID then
doTeleportThing(cid, {x=000,y=000,z=0})
end
Return TRUE
end

W map edytorze stawiasz teleport, bierzesz prawy przycisk, proportions (czy jako? tak) i tak wpisujesz pozycje. Koniec!
local upFloorIds = {1386, 3678, 5543, 8599}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if isInArray(upFloorIds, item.itemid) then
if item.actionid == 100 then
fromPosition.y = fromPosition.y - 1
fromPosition.z = fromPosition.z - 1
else
fromPosition.y = fromPosition.y + 1
fromPosition.z = fromPosition.z - 1
end
else
fromPosition.z = fromPosition.z + 1
end
doTeleportThing(cid, fromPosition, FALSE)
return TRUE
end
| Notka moderatorska: |
| +1 OT Expert |
Znajd? data/actions/scripts/tools/teleport.lua i wklej to:
Nadaj drabince aid 100 i ju?.PHP:local upFloorIds = {1386, 3678, 5543, 8599} function onUse(cid, item, fromPosition, itemEx, toPosition) if isInArray(upFloorIds, item.itemid) then if item.actionid == 100 then fromPosition.y = fromPosition.y - 1 fromPosition.z = fromPosition.z - 1 else fromPosition.y = fromPosition.y + 1 fromPosition.z = fromPosition.z - 1 end else fromPosition.z = fromPosition.z + 1 end doTeleportThing(cid, fromPosition, FALSE) return TRUE end