Bulundu Son konum skripti

  • Konuyu Başlatan Konuyu Başlatan thepiscis
  • Başlangıç tarihi Başlangıç tarihi
  • Görüntüleme 686
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Evet skUnity indir plugin
1737142126888.webp

burası var hocam şuanlık başka bir indiricek yer bulamadım ve skUnity plugini yok hocam veya ben körüm :D
 
aynı hatayı verdi hocam
 
Kod:
options:
    dosya: "plugins/Skript/data/lokasyon.yml"

function saveLocation(p: player):
    set {_loc} to location of {_p}
    set {_uuid} to uuid of {_p}

    load yaml "{@dosya}" as "lokasyonlar"

    set skript-yaml value "players.%{_uuid}%.world" from "lokasyonlar" to world of {_loc}
    set skript-yaml value "players.%{_uuid}%.x" from "lokasyonlar" to x-coordinate of {_loc}
    set skript-yaml value "players.%{_uuid}%.y" from "lokasyonlar" to y-coordinate of {_loc}
    set skript-yaml value "players.%{_uuid}%.z" from "lokasyonlar" to z-coordinate of {_loc}
    set skript-yaml value "players.%{_uuid}%.yaw" from "lokasyonlar" to yaw of {_loc}
    set skript-yaml value "players.%{_uuid}%.pitch" from "lokasyonlar" to pitch of {_loc}
    set skript-yaml value "players.%{_uuid}%.last-save" from "lokasyonlar" to now

    save yaml "lokasyonlar"
    unload yaml "lokasyonlar"

function getStoredLocation(p: player) :: location:
    set {_uuid} to uuid of {_p}
    load yaml "{@dosya}" as "lokasyonlar"

    set {_world} to skript-yaml value "players.%{_uuid}%.world" from "lokasyonlar"
    set {_x} to skript-yaml value "players.%{_uuid}%.x" from "lokasyonlar"
    set {_y} to skript-yaml value "players.%{_uuid}%.y" from "lokasyonlar"
    set {_z} to skript-yaml value "players.%{_uuid}%.z" from "lokasyonlar"
    set {_yaw} to skript-yaml value "players.%{_uuid}%.yaw" from "lokasyonlar"
    set {_pitch} to skript-yaml value "players.%{_uuid}%.pitch" from "lokasyonlar"

    unload yaml "lokasyonlar"

    if {_world} is set:
        return location({_x}, {_y}, {_z}, {_world}, {_yaw}, {_pitch})
    return none

on load:
    if file "{@dosya}" doesn't exist:
        load yaml "{@dosya}" as "lokasyonlar"
        set skript-yaml value "info.created" from "lokasyonlar" to now
        save yaml "lokasyonlar"
        unload yaml "lokasyonlar"

on quit:
    saveLocation(player)

on join:
    set {_loc} to getStoredLocation(player)
    if {_loc} is set:
        wait 1 tick
        teleport player to {_loc}
        send "&aSon pozisyonunuza ışınlandınız!" to player

Değerli ziyaretçimiz, içeriği görebilmek için şimdi giriş yapın veya kayıt olun.
 
Kod:
options:
    dosya: "plugins/Skript/data/lokasyon.yml"

function saveLocation(p: player):
    set {_loc} to location of {_p}
    set {_uuid} to uuid of {_p}

    load yaml "{@dosya}" as "lokasyonlar"

    set skript-yaml value "players.%{_uuid}%.world" from "lokasyonlar" to world of {_loc}
    set skript-yaml value "players.%{_uuid}%.x" from "lokasyonlar" to x-coordinate of {_loc}
    set skript-yaml value "players.%{_uuid}%.y" from "lokasyonlar" to y-coordinate of {_loc}
    set skript-yaml value "players.%{_uuid}%.z" from "lokasyonlar" to z-coordinate of {_loc}
    set skript-yaml value "players.%{_uuid}%.yaw" from "lokasyonlar" to yaw of {_loc}
    set skript-yaml value "players.%{_uuid}%.pitch" from "lokasyonlar" to pitch of {_loc}
    set skript-yaml value "players.%{_uuid}%.last-save" from "lokasyonlar" to now

    save yaml "lokasyonlar"
    unload yaml "lokasyonlar"

function getStoredLocation(p: player) :: location:
    set {_uuid} to uuid of {_p}
    load yaml "{@dosya}" as "lokasyonlar"

    set {_world} to skript-yaml value "players.%{_uuid}%.world" from "lokasyonlar"
    set {_x} to skript-yaml value "players.%{_uuid}%.x" from "lokasyonlar"
    set {_y} to skript-yaml value "players.%{_uuid}%.y" from "lokasyonlar"
    set {_z} to skript-yaml value "players.%{_uuid}%.z" from "lokasyonlar"
    set {_yaw} to skript-yaml value "players.%{_uuid}%.yaw" from "lokasyonlar"
    set {_pitch} to skript-yaml value "players.%{_uuid}%.pitch" from "lokasyonlar"

    unload yaml "lokasyonlar"

    if {_world} is set:
        return location({_x}, {_y}, {_z}, {_world}, {_yaw}, {_pitch})
    return none

on load:
    if file "{@dosya}" doesn't exist:
        load yaml "{@dosya}" as "lokasyonlar"
        set skript-yaml value "info.created" from "lokasyonlar" to now
        save yaml "lokasyonlar"
        unload yaml "lokasyonlar"

on quit:
    saveLocation(player)

on join:
    set {_loc} to getStoredLocation(player)
    if {_loc} is set:
        wait 1 tick
        teleport player to {_loc}
        send "&aSon pozisyonunuza ışınlandınız!" to player

Değerli ziyaretçimiz, içeriği görebilmek için şimdi giriş yapın veya kayıt olun.
attığınız plugin ile skripti denedim olmadı
1737242133028.webp
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

Hala Discord sunucumuza katılmadın mı?

Büyük bir topluluğun parçası ol, etkinliklere katıl ve özel hediyeler kazanma şansı yakala!

Şimdi Katıl