SK Telefon skripti editleyebilecek biri varmı.

KaLix

Marangoz
En iyi cevaplar
0
Bu telefon skripti çok basit editlenebilir ancak ben pek bilmiyorum. Mesela oyuncuya bitane kitap vericek o kitapa sağ tıkladığında menü açılıcak zaten menüler hazır sadece kitap sağ tıklandığında olucak işlemler. Birde bunun fiyatı 200tl olucak yani Essentialsx parasına göre 200tl ile bu /sa telefon komutu ile alınıcak ve 200tl fiyatı olucak bunları yaparsanız çok teşekkürler. Gerisini ben editleyebilecek düzeydeyim şimdiden teşekkür ederim.

Kod:
on sign change:
    line 1 is "telefon":
        player is op:
            set line 1 to "&6&l&k==========="
            set line 2 to "&cTelefon"
            set line 3 to "&3Sag tik"
            set line 4 to "&6&l&k==========="
on login:
    "%{telefonumaraları::*}%" doesn't contain "%player%":
        add player to {telefonumaraları::*}
on chat:
    {telislem.%player%} is "kaydediyor":
        cancel event
        message contains "-":
            send "&4İşlem iptal edildi!"
            delete {telislem.%player%}
        else:
            execute console command "telefon rehberkdevam %player% %message%"
    {telislem.%player%} is "siliyor":
        cancel event
        message contains "-":
            send "&4İşlem iptal edildi!"
            delete {telislem.%player%}
        else:
            execute console command "telefon rehbersdevam %player% %message%"
    {cağrı.%player%} is set:
        cancel event
        message contains "-":
            send "&4Telefon kapandı!" to {cağrı.%player%} and player
            delete {cağrı.%{cağrı.%player%}%}
            delete {cağrı.%player%}
        else:
            send "&e[TELEFON-%{telno.%player%}%] &c%player% &7> &2%message%" to {cağrı.%player%} and player
on rightclick on a sign:
    line 2 of clicked block is "&cTelefon":
        open chest with 1 rows named "&6Telefon" to player
        wait 1 tick
        {telno.%player%} isn't set:
            format slot 0 of player with paper named "&9Sim Kart" with lore "&7Tıklarsan bir sim kart oluşturursun." to close then run "telefon hesap %player%"
        else:
            format slot 0 of player with paper named "&9Sim Yenile" with lore "&7Tıklarsan telefon numaranı yenilersin.||&7Şu an ki numara: &3%{telno.%player%}%" to close then run "telefon yenile %player%"
            format slot 1 of player with paper named "&9Rehber" with lore "&7Tıklarsan rehberini görürsün." to close then run "rehberbak %player%"
            format slot 2 of player with paper named "&9Rehber Kayit" with lore "&7Tıklarsan rehbere numara kaydedersin." to close then run "telefon rehberkaydet %player%"
            format slot 3 of player with paper named "&9Rehber Sil" with lore "&7Tıklarsan rehberden numara silersin." to close then run "telefon rehbersil %player%"
command /ara <int>:
    trigger:
        {cağrı.%player%} isn't set:
            loop all players:
                arg-1 is {telno.%loop-player%}:
                    {cağrı.%loop-player%} isn't set:
                        set {arayan.%loop-player%} to player
                        open chest with 1 rows named "&bCağrı&8-&b%player%(%{telno.%player%}%)" to loop-player
                        wait 1 tick
                        format slot 0 of loop-player with light green dye named "&a&nAC" with lore "&7Tıklarsan aramayı kabul edersin." to close then run "ac %loop-player%"
                        format slot 8 of loop-player with gray dye named "&c&nKAPAT" with lore "&7Tıklarsan aramayı reddedersin." to close then run "kapa %loop-player%"
                    else:
                        send "&cKişi başka birisiyle görüşüyor."
        else:
            send "&cZaten bir çağrıdasınız."
command /ac <player>:
    executable by: console
    trigger:
        {arayan.%arg-1%} is set:
            set {cağrı.%arg-1%} to {arayan.%arg-1%}
            set {cağrı.%{arayan.%arg-1%}%} to arg-1
            send "&cCağrıya başladınız, kapatmak için chat'a '-' yazın." to {arayan.%arg-1%}
            send "&cCağrıya başladınız, kapatmak için chat'a '-' yazın." to arg-1
command /kapa <player>:
    executable by: console
    trigger:
        {arayan.%arg-1%} is set:
            send "&4Cağrı reddedildi." to {arayan.%arg-1%}
            send "&4Çağrı reddedildi." to arg-1
            delete {arayan.%arg-1%}
command /telefon <text> <player> [<int>] [<text>]:
    executable by: console
    trigger:
        arg 1 is "hesap":
            set {telno.%arg-2%} to a random integer between 1111111 and 9999999
            send "&aSim Kart alındı, numaran: &3%{telno.%arg-2%}%" to arg-2
        arg 1 is "yenile":
            set {telno.%arg-2%} to a random integer between 1111111 and 9999999
            send "&aNumara yenilendi: &3%{telno.%arg-2%}%" to arg-2
        arg 1 is "rehber":
            set {telislem.%arg-2%} to "rehber"
            send "&cRehberine kayıtlı olan oyuncunun gir, iptal etmek için '-' yaz." to arg-2
        arg 1 is "rehberkaydet":
            set {telislem.%arg-2%} to "kaydediyor"
            send "&cKaydetmek istediğin numarayı chat'a yaz, iptal etmek için '-' yaz." to arg-2
        arg 1 is "rehbersil":
            set {telislem.%arg-2%} to "siliyor"
            send "&cSilmek istediğin numarayı chat'a yaz, iptal etmek için '-' yaz." to arg-2
        arg 1 is "rehberkdevam":
            loop {telefonumaraları::*}:
                arg-3 is {telno.%loop-value%}:
                    set {rehber.%arg-2%.%{telno.%loop-value%}%} to "&b%loop-value%&8-&b%{telno.%loop-value%}%"
                    add 1 to {slot.%arg-2%}
                    delete {telislem.%arg-2%}
                    send "&aKaydedildi: &b%loop-value%&8-&b%{telno.%loop-value%}%" to arg-2
        arg 1 is "rehbersdevam":
            loop {telefonumaraları::*}:
                arg-3 is {telno.%loop-value%}:
                    {rehber.%arg-2%.%{telno.%loop-value%}%} is set:
                        send "&cSilindi: %{rehber.%arg-2%.%{telno.%loop-value%}%}%" to arg-2
                        delete {rehber.%arg-2%.%{telno.%loop-value%}%}
                        delete {telislem.%player%}
                    else:
                        loop 1 times:
                            send "&cBu numara rehberine kayıtlı değil." to arg-2
command /rehberbak <player>:
    executable by: console
    trigger:
        delete {telislem.%arg-1%}
        loop {telefonumaraları::*}:
            send "&8&l&m========== &3&oRehber &8&l&m==========" to arg-1
            {rehber.%arg-1%.%{telno.%loop-value%}%} is set:
                send json "%{rehber.%arg-1%.%{telno.%loop-value%}%}%" tooltip "&2&oAramak için tıkla" run "/ara %{telno.%loop-value%}%" to arg-1

+ Güncel
 

LifeMCServer

Nether Yerlisi
En iyi cevaplar
98
Bunu dene:
PHP:
on sign change:
    line 1 is "telefon":
        player is op:
            set line 1 to "&6&l&k==========="
            set line 2 to "&cTelefon"
            set line 3 to "&3Sag tik"
            set line 4 to "&6&l&k==========="
on login:
    "%{telefonumaraları::*}%" doesn't contain "%player%":
        add player to {telefonumaraları::*}
on chat:
    {telislem.%player%} is "kaydediyor":
        cancel event
        message contains "-":
            send "&4İşlem iptal edildi!"
            delete {telislem.%player%}
        else:
            execute console command "telefon rehberkdevam %player% %message%"
    {telislem.%player%} is "siliyor":
        cancel event
        message contains "-":
            send "&4İşlem iptal edildi!"
            delete {telislem.%player%}
        else:
            execute console command "telefon rehbersdevam %player% %message%"
    {cağrı.%player%} is set:
        cancel event
        message contains "-":
            send "&4Telefon kapandı!" to {cağrı.%player%} and player
            delete {cağrı.%{cağrı.%player%}%}
            delete {cağrı.%player%}
        else:
            send "&e[TELEFON-%{telno.%player%}%] &c%player% &7> &2%message%" to {cağrı.%player%} and player
on rightclick on a sign:
    line 2 of clicked block is "&cTelefon":
        open chest with 1 rows named "&6Telefon" to player
        wait 1 tick
        {telno.%player%} isn't set:
            format slot 0 of player with paper named "&9Sim Kart" with lore "&7Tıklarsan bir sim kart oluşturursun." to close then run "telefon hesap %player%"
        else:
            format slot 0 of player with paper named "&9Sim Yenile" with lore "&7Tıklarsan telefon numaranı yenilersin.||&7Şu an ki numara: &3%{telno.%player%}%" to close then run "telefon yenile %player%"
            format slot 1 of player with paper named "&9Rehber" with lore "&7Tıklarsan rehberini görürsün." to close then run "rehberbak %player%"
            format slot 2 of player with paper named "&9Rehber Kayit" with lore "&7Tıklarsan rehbere numara kaydedersin." to close then run "telefon rehberkaydet %player%"
            format slot 3 of player with paper named "&9Rehber Sil" with lore "&7Tıklarsan rehberden numara silersin." to close then run "telefon rehbersil %player%"
command /ara <int>:
    trigger:
        {cağrı.%player%} isn't set:
            loop all players:
                arg-1 is {telno.%loop-player%}:
                    {cağrı.%loop-player%} isn't set:
                        set {arayan.%loop-player%} to player
                        open chest with 1 rows named "&bCağrı&8-&b%player%(%{telno.%player%}%)" to loop-player
                        wait 1 tick
                        format slot 0 of loop-player with light green dye named "&a&nAC" with lore "&7Tıklarsan aramayı kabul edersin." to close then run "ac %loop-player%"
                        format slot 8 of loop-player with gray dye named "&c&nKAPAT" with lore "&7Tıklarsan aramayı reddedersin." to close then run "kapa %loop-player%"
                    else:
                        send "&cKişi başka birisiyle görüşüyor."
        else:
            send "&cZaten bir çağrıdasınız."
command /ac <player>:
    executable by: console
    trigger:
        {arayan.%arg-1%} is set:
            set {cağrı.%arg-1%} to {arayan.%arg-1%}
            set {cağrı.%{arayan.%arg-1%}%} to arg-1
            send "&cCağrıya başladınız, kapatmak için chat'a '-' yazın." to {arayan.%arg-1%}
            send "&cCağrıya başladınız, kapatmak için chat'a '-' yazın." to arg-1
command /kapa <player>:
    executable by: console
    trigger:
        {arayan.%arg-1%} is set:
            send "&4Cağrı reddedildi." to {arayan.%arg-1%}
            send "&4Çağrı reddedildi." to arg-1
            delete {arayan.%arg-1%}
command /telefon <text> <player> [<int>] [<text>]:
    executable by: console
    trigger:
        arg 1 is "hesap":
            set {telno.%arg-2%} to a random integer between 1111111 and 9999999
            send "&aSim Kart alındı, numaran: &3%{telno.%arg-2%}%" to arg-2
        arg 1 is "yenile":
            set {telno.%arg-2%} to a random integer between 1111111 and 9999999
            send "&aNumara yenilendi: &3%{telno.%arg-2%}%" to arg-2
        arg 1 is "rehber":
            set {telislem.%arg-2%} to "rehber"
            send "&cRehberine kayıtlı olan oyuncunun gir, iptal etmek için '-' yaz." to arg-2
        arg 1 is "rehberkaydet":
            set {telislem.%arg-2%} to "kaydediyor"
            send "&cKaydetmek istediğin numarayı chat'a yaz, iptal etmek için '-' yaz." to arg-2
        arg 1 is "rehbersil":
            set {telislem.%arg-2%} to "siliyor"
            send "&cSilmek istediğin numarayı chat'a yaz, iptal etmek için '-' yaz." to arg-2
        arg 1 is "rehberkdevam":
            loop {telefonumaraları::*}:
                arg-3 is {telno.%loop-value%}:
                    set {rehber.%arg-2%.%{telno.%loop-value%}%} to "&b%loop-value%&8-&b%{telno.%loop-value%}%"
                    add 1 to {slot.%arg-2%}
                    delete {telislem.%arg-2%}
                    send "&aKaydedildi: &b%loop-value%&8-&b%{telno.%loop-value%}%" to arg-2
        arg 1 is "rehbersdevam":
            loop {telefonumaraları::*}:
                arg-3 is {telno.%loop-value%}:
                    {rehber.%arg-2%.%{telno.%loop-value%}%} is set:
                        send "&cSilindi: %{rehber.%arg-2%.%{telno.%loop-value%}%}%" to arg-2
                        delete {rehber.%arg-2%.%{telno.%loop-value%}%}
                        delete {telislem.%player%}
                    else:
                        loop 1 times:
                            send "&cBu numara rehberine kayıtlı değil." to arg-2
command /rehberbak <player>:
    executable by: console
    trigger:
        delete {telislem.%arg-1%}
        loop {telefonumaraları::*}:
            send "&8&l&m========== &3&oRehber &8&l&m==========" to arg-1
            {rehber.%arg-1%.%{telno.%loop-value%}%} is set:
                send json "%{rehber.%arg-1%.%{telno.%loop-value%}%}%" tooltip "&2&oAramak için tıkla" run "/ara %{telno.%loop-value%}%" to arg-1
command /sa <text>:
    trigger:
        if arg-1 is "telefon":
            if balance of player is greater than 199:
                remove 200 from balance of player
                give 1 book named "&1Telefon" to player
            else:
                send "&cParan yetersiz!"
on rightclick with book named "&1Telefon":
    open chest with 1 rows named "&6Telefon" to player
    wait 1 tick
    {telno.%player%} isn't set:
        format slot 0 of player with paper named "&9Sim Kart" with lore "&7Tıklarsan bir sim kart oluşturursun." to close then run "telefon hesap %player%"
    else:
        format slot 0 of player with paper named "&9Sim Yenile" with lore "&7Tıklarsan telefon numaranı yenilersin.||&7Şu an ki numara: &3%{telno.%player%}%" to close then run "telefon yenile %player%"
        format slot 1 of player with paper named "&9Rehber" with lore "&7Tıklarsan rehberini görürsün." to close then run "rehberbak %player%"
        format slot 2 of player with paper named "&9Rehber Kayit" with lore "&7Tıklarsan rehbere numara kaydedersin." to close then run "telefon rehberkaydet %player%"
        format slot 3 of player with paper named "&9Rehber Sil" with lore "&7Tıklarsan rehberden numara silersin." to close then run "telefon rehbersil %player%"
 

KaLix

Marangoz
En iyi cevaplar
0
Bunu dene:
PHP:
on sign change:
    line 1 is "telefon":
        player is op:
            set line 1 to "&6&l&k==========="
            set line 2 to "&cTelefon"
            set line 3 to "&3Sag tik"
            set line 4 to "&6&l&k==========="
on login:
    "%{telefonumaraları::*}%" doesn't contain "%player%":
        add player to {telefonumaraları::*}
on chat:
    {telislem.%player%} is "kaydediyor":
        cancel event
        message contains "-":
            send "&4İşlem iptal edildi!"
            delete {telislem.%player%}
        else:
            execute console command "telefon rehberkdevam %player% %message%"
    {telislem.%player%} is "siliyor":
        cancel event
        message contains "-":
            send "&4İşlem iptal edildi!"
            delete {telislem.%player%}
        else:
            execute console command "telefon rehbersdevam %player% %message%"
    {cağrı.%player%} is set:
        cancel event
        message contains "-":
            send "&4Telefon kapandı!" to {cağrı.%player%} and player
            delete {cağrı.%{cağrı.%player%}%}
            delete {cağrı.%player%}
        else:
            send "&e[TELEFON-%{telno.%player%}%] &c%player% &7> &2%message%" to {cağrı.%player%} and player
on rightclick on a sign:
    line 2 of clicked block is "&cTelefon":
        open chest with 1 rows named "&6Telefon" to player
        wait 1 tick
        {telno.%player%} isn't set:
            format slot 0 of player with paper named "&9Sim Kart" with lore "&7Tıklarsan bir sim kart oluşturursun." to close then run "telefon hesap %player%"
        else:
            format slot 0 of player with paper named "&9Sim Yenile" with lore "&7Tıklarsan telefon numaranı yenilersin.||&7Şu an ki numara: &3%{telno.%player%}%" to close then run "telefon yenile %player%"
            format slot 1 of player with paper named "&9Rehber" with lore "&7Tıklarsan rehberini görürsün." to close then run "rehberbak %player%"
            format slot 2 of player with paper named "&9Rehber Kayit" with lore "&7Tıklarsan rehbere numara kaydedersin." to close then run "telefon rehberkaydet %player%"
            format slot 3 of player with paper named "&9Rehber Sil" with lore "&7Tıklarsan rehberden numara silersin." to close then run "telefon rehbersil %player%"
command /ara <int>:
    trigger:
        {cağrı.%player%} isn't set:
            loop all players:
                arg-1 is {telno.%loop-player%}:
                    {cağrı.%loop-player%} isn't set:
                        set {arayan.%loop-player%} to player
                        open chest with 1 rows named "&bCağrı&8-&b%player%(%{telno.%player%}%)" to loop-player
                        wait 1 tick
                        format slot 0 of loop-player with light green dye named "&a&nAC" with lore "&7Tıklarsan aramayı kabul edersin." to close then run "ac %loop-player%"
                        format slot 8 of loop-player with gray dye named "&c&nKAPAT" with lore "&7Tıklarsan aramayı reddedersin." to close then run "kapa %loop-player%"
                    else:
                        send "&cKişi başka birisiyle görüşüyor."
        else:
            send "&cZaten bir çağrıdasınız."
command /ac <player>:
    executable by: console
    trigger:
        {arayan.%arg-1%} is set:
            set {cağrı.%arg-1%} to {arayan.%arg-1%}
            set {cağrı.%{arayan.%arg-1%}%} to arg-1
            send "&cCağrıya başladınız, kapatmak için chat'a '-' yazın." to {arayan.%arg-1%}
            send "&cCağrıya başladınız, kapatmak için chat'a '-' yazın." to arg-1
command /kapa <player>:
    executable by: console
    trigger:
        {arayan.%arg-1%} is set:
            send "&4Cağrı reddedildi." to {arayan.%arg-1%}
            send "&4Çağrı reddedildi." to arg-1
            delete {arayan.%arg-1%}
command /telefon <text> <player> [<int>] [<text>]:
    executable by: console
    trigger:
        arg 1 is "hesap":
            set {telno.%arg-2%} to a random integer between 1111111 and 9999999
            send "&aSim Kart alındı, numaran: &3%{telno.%arg-2%}%" to arg-2
        arg 1 is "yenile":
            set {telno.%arg-2%} to a random integer between 1111111 and 9999999
            send "&aNumara yenilendi: &3%{telno.%arg-2%}%" to arg-2
        arg 1 is "rehber":
            set {telislem.%arg-2%} to "rehber"
            send "&cRehberine kayıtlı olan oyuncunun gir, iptal etmek için '-' yaz." to arg-2
        arg 1 is "rehberkaydet":
            set {telislem.%arg-2%} to "kaydediyor"
            send "&cKaydetmek istediğin numarayı chat'a yaz, iptal etmek için '-' yaz." to arg-2
        arg 1 is "rehbersil":
            set {telislem.%arg-2%} to "siliyor"
            send "&cSilmek istediğin numarayı chat'a yaz, iptal etmek için '-' yaz." to arg-2
        arg 1 is "rehberkdevam":
            loop {telefonumaraları::*}:
                arg-3 is {telno.%loop-value%}:
                    set {rehber.%arg-2%.%{telno.%loop-value%}%} to "&b%loop-value%&8-&b%{telno.%loop-value%}%"
                    add 1 to {slot.%arg-2%}
                    delete {telislem.%arg-2%}
                    send "&aKaydedildi: &b%loop-value%&8-&b%{telno.%loop-value%}%" to arg-2
        arg 1 is "rehbersdevam":
            loop {telefonumaraları::*}:
                arg-3 is {telno.%loop-value%}:
                    {rehber.%arg-2%.%{telno.%loop-value%}%} is set:
                        send "&cSilindi: %{rehber.%arg-2%.%{telno.%loop-value%}%}%" to arg-2
                        delete {rehber.%arg-2%.%{telno.%loop-value%}%}
                        delete {telislem.%player%}
                    else:
                        loop 1 times:
                            send "&cBu numara rehberine kayıtlı değil." to arg-2
command /rehberbak <player>:
    executable by: console
    trigger:
        delete {telislem.%arg-1%}
        loop {telefonumaraları::*}:
            send "&8&l&m========== &3&oRehber &8&l&m==========" to arg-1
            {rehber.%arg-1%.%{telno.%loop-value%}%} is set:
                send json "%{rehber.%arg-1%.%{telno.%loop-value%}%}%" tooltip "&2&oAramak için tıkla" run "/ara %{telno.%loop-value%}%" to arg-1
command /sa <text>:
    trigger:
        if arg-1 is "telefon":
            if balance of player is greater than 199:
                remove 200 from balance of player
                give 1 book named "&1Telefon" to player
            else:
                send "&cParan yetersiz!"
on rightclick with book named "&1Telefon":
    open chest with 1 rows named "&6Telefon" to player
    wait 1 tick
    {telno.%player%} isn't set:
        format slot 0 of player with paper named "&9Sim Kart" with lore "&7Tıklarsan bir sim kart oluşturursun." to close then run "telefon hesap %player%"
    else:
        format slot 0 of player with paper named "&9Sim Yenile" with lore "&7Tıklarsan telefon numaranı yenilersin.||&7Şu an ki numara: &3%{telno.%player%}%" to close then run "telefon yenile %player%"
        format slot 1 of player with paper named "&9Rehber" with lore "&7Tıklarsan rehberini görürsün." to close then run "rehberbak %player%"
        format slot 2 of player with paper named "&9Rehber Kayit" with lore "&7Tıklarsan rehbere numara kaydedersin." to close then run "telefon rehberkaydet %player%"
        format slot 3 of player with paper named "&9Rehber Sil" with lore "&7Tıklarsan rehberden numara silersin." to close then run "telefon rehbersil %player%"

Bu skripti yazınca böyle bir hata veriyor :

 

LifeMCServer

Nether Yerlisi
En iyi cevaplar
98
Bu skripti yazınca böyle bir hata veriyor :


Bunu dene olması lazım:
PHP:
 on sign change:
    line 1 is "telefon":
        player is op:
            set line 1 to "&6&l&k==========="
            set line 2 to "&cTelefon"
            set line 3 to "&3Sag tik"
            set line 4 to "&6&l&k==========="
on login:
    "%{telefonumaraları::*}%" doesn't contain "%player%":
        add player to {telefonumaraları::*}
on chat:
    {telislem.%player%} is "kaydediyor":
        cancel event
        message contains "-":
            send "&4İşlem iptal edildi!"
            delete {telislem.%player%}
        else:
            execute console command "telefon rehberkdevam %player% %message%"
    {telislem.%player%} is "siliyor":
        cancel event
        message contains "-":
            send "&4İşlem iptal edildi!"
            delete {telislem.%player%}
        else:
            execute console command "telefon rehbersdevam %player% %message%"
    {cağrı.%player%} is set:
        cancel event
        message contains "-":
            send "&4Telefon kapandı!" to {cağrı.%player%} and player
            delete {cağrı.%{cağrı.%player%}%}
            delete {cağrı.%player%}
        else:
            send "&e[TELEFON-%{telno.%player%}%] &c%player% &7> &2%message%" to {cağrı.%player%} and player
on rightclick on a sign:
    line 2 of clicked block is "&cTelefon":
        open chest with 1 rows named "&6Telefon" to player
        wait 1 tick
        {telno.%player%} isn't set:
            format slot 0 of player with paper named "&9Sim Kart" with lore "&7Tıklarsan bir sim kart oluşturursun." to close then run "telefon hesap %player%"
        else:
            format slot 0 of player with paper named "&9Sim Yenile" with lore "&7Tıklarsan telefon numaranı yenilersin.||&7Şu an ki numara: &3%{telno.%player%}%" to close then run "telefon yenile %player%"
            format slot 1 of player with paper named "&9Rehber" with lore "&7Tıklarsan rehberini görürsün." to close then run "rehberbak %player%"
            format slot 2 of player with paper named "&9Rehber Kayit" with lore "&7Tıklarsan rehbere numara kaydedersin." to close then run "telefon rehberkaydet %player%"
            format slot 3 of player with paper named "&9Rehber Sil" with lore "&7Tıklarsan rehberden numara silersin." to close then run "telefon rehbersil %player%"
command /ara <int>:
    trigger:
        {cağrı.%player%} isn't set:
            loop all players:
                arg-1 is {telno.%loop-player%}:
                    {cağrı.%loop-player%} isn't set:
                        set {arayan.%loop-player%} to player
                        open chest with 1 rows named "&bCağrı&8-&b%player%(%{telno.%player%}%)" to loop-player
                        wait 1 tick
                        format slot 0 of loop-player with light green dye named "&a&nAC" with lore "&7Tıklarsan aramayı kabul edersin." to close then run "ac %loop-player%"
                        format slot 8 of loop-player with gray dye named "&c&nKAPAT" with lore "&7Tıklarsan aramayı reddedersin." to close then run "kapa %loop-player%"
                    else:
                        send "&cKişi başka birisiyle görüşüyor."
        else:
            send "&cZaten bir çağrıdasınız."
command /ac <player>:
    executable by: console
    trigger:
        {arayan.%arg-1%} is set:
            set {cağrı.%arg-1%} to {arayan.%arg-1%}
            set {cağrı.%{arayan.%arg-1%}%} to arg-1
            send "&cCağrıya başladınız, kapatmak için chat'a '-' yazın." to {arayan.%arg-1%}
            send "&cCağrıya başladınız, kapatmak için chat'a '-' yazın." to arg-1
command /kapa <player>:
    executable by: console
    trigger:
        {arayan.%arg-1%} is set:
            send "&4Cağrı reddedildi." to {arayan.%arg-1%}
            send "&4Çağrı reddedildi." to arg-1
            delete {arayan.%arg-1%}
command /telefon <text> <player> [<int>] [<text>]:
    executable by: console
    trigger:
        arg 1 is "hesap":
            set {telno.%arg-2%} to a random integer between 1111111 and 9999999
            send "&aSim Kart alındı, numaran: &3%{telno.%arg-2%}%" to arg-2
        arg 1 is "yenile":
            set {telno.%arg-2%} to a random integer between 1111111 and 9999999
            send "&aNumara yenilendi: &3%{telno.%arg-2%}%" to arg-2
        arg 1 is "rehber":
            set {telislem.%arg-2%} to "rehber"
            send "&cRehberine kayıtlı olan oyuncunun gir, iptal etmek için '-' yaz." to arg-2
        arg 1 is "rehberkaydet":
            set {telislem.%arg-2%} to "kaydediyor"
            send "&cKaydetmek istediğin numarayı chat'a yaz, iptal etmek için '-' yaz." to arg-2
        arg 1 is "rehbersil":
            set {telislem.%arg-2%} to "siliyor"
            send "&cSilmek istediğin numarayı chat'a yaz, iptal etmek için '-' yaz." to arg-2
        arg 1 is "rehberkdevam":
            loop {telefonumaraları::*}:
                arg-3 is {telno.%loop-value%}:
                    set {rehber.%arg-2%.%{telno.%loop-value%}%} to "&b%loop-value%&8-&b%{telno.%loop-value%}%"
                    add 1 to {slot.%arg-2%}
                    delete {telislem.%arg-2%}
                    send "&aKaydedildi: &b%loop-value%&8-&b%{telno.%loop-value%}%" to arg-2
        arg 1 is "rehbersdevam":
            loop {telefonumaraları::*}:
                arg-3 is {telno.%loop-value%}:
                    {rehber.%arg-2%.%{telno.%loop-value%}%} is set:
                        send "&cSilindi: %{rehber.%arg-2%.%{telno.%loop-value%}%}%" to arg-2
                        delete {rehber.%arg-2%.%{telno.%loop-value%}%}
                        delete {telislem.%player%}
                    else:
                        loop 1 times:
                            send "&cBu numara rehberine kayıtlı değil." to arg-2
command /rehberbak <player>:
    executable by: console
    trigger:
        delete {telislem.%arg-1%}
        loop {telefonumaraları::*}:
            send "&8&l&m========== &3&oRehber &8&l&m==========" to arg-1
            {rehber.%arg-1%.%{telno.%loop-value%}%} is set:
                send json "%{rehber.%arg-1%.%{telno.%loop-value%}%}%" tooltip "&2&oAramak için tıkla" run "/ara %{telno.%loop-value%}%" to arg-1
command /sa <text>:
    trigger:
        if arg-1 is "telefon":
            if balance of player is greater than 199:
                remove 200 from balance of player
                give 1 book named "&1Telefon" to player
            else:
                send "&cParan yetersiz!"
on rightclick with book:
    if name of player's tool is "&1Telefon":
        open chest with 1 rows named "&6Telefon" to player
        wait 1 tick
        {telno.%player%} isn't set:
            format slot 0 of player with paper named "&9Sim Kart" with lore "&7Tıklarsan bir sim kart oluşturursun." to close then run "telefon hesap %player%"
        else:
            format slot 0 of player with paper named "&9Sim Yenile" with lore "&7Tıklarsan telefon numaranı yenilersin.||&7Şu an ki numara: &3%{telno.%player%}%" to close then run "telefon yenile %player%"
            format slot 1 of player with paper named "&9Rehber" with lore "&7Tıklarsan rehberini görürsün." to close then run "rehberbak %player%"
            format slot 2 of player with paper named "&9Rehber Kayit" with lore "&7Tıklarsan rehbere numara kaydedersin." to close then run "telefon rehberkaydet %player%"
            format slot 3 of player with paper named "&9Rehber Sil" with lore "&7Tıklarsan rehberden numara silersin." to close then run "telefon rehbersil %player%"
 

KaLix

Marangoz
En iyi cevaplar
0
Bunu dene olması lazım:
PHP:
 on sign change:
    line 1 is "telefon":
        player is op:
            set line 1 to "&6&l&k==========="
            set line 2 to "&cTelefon"
            set line 3 to "&3Sag tik"
            set line 4 to "&6&l&k==========="
on login:
    "%{telefonumaraları::*}%" doesn't contain "%player%":
        add player to {telefonumaraları::*}
on chat:
    {telislem.%player%} is "kaydediyor":
        cancel event
        message contains "-":
            send "&4İşlem iptal edildi!"
            delete {telislem.%player%}
        else:
            execute console command "telefon rehberkdevam %player% %message%"
    {telislem.%player%} is "siliyor":
        cancel event
        message contains "-":
            send "&4İşlem iptal edildi!"
            delete {telislem.%player%}
        else:
            execute console command "telefon rehbersdevam %player% %message%"
    {cağrı.%player%} is set:
        cancel event
        message contains "-":
            send "&4Telefon kapandı!" to {cağrı.%player%} and player
            delete {cağrı.%{cağrı.%player%}%}
            delete {cağrı.%player%}
        else:
            send "&e[TELEFON-%{telno.%player%}%] &c%player% &7> &2%message%" to {cağrı.%player%} and player
on rightclick on a sign:
    line 2 of clicked block is "&cTelefon":
        open chest with 1 rows named "&6Telefon" to player
        wait 1 tick
        {telno.%player%} isn't set:
            format slot 0 of player with paper named "&9Sim Kart" with lore "&7Tıklarsan bir sim kart oluşturursun." to close then run "telefon hesap %player%"
        else:
            format slot 0 of player with paper named "&9Sim Yenile" with lore "&7Tıklarsan telefon numaranı yenilersin.||&7Şu an ki numara: &3%{telno.%player%}%" to close then run "telefon yenile %player%"
            format slot 1 of player with paper named "&9Rehber" with lore "&7Tıklarsan rehberini görürsün." to close then run "rehberbak %player%"
            format slot 2 of player with paper named "&9Rehber Kayit" with lore "&7Tıklarsan rehbere numara kaydedersin." to close then run "telefon rehberkaydet %player%"
            format slot 3 of player with paper named "&9Rehber Sil" with lore "&7Tıklarsan rehberden numara silersin." to close then run "telefon rehbersil %player%"
command /ara <int>:
    trigger:
        {cağrı.%player%} isn't set:
            loop all players:
                arg-1 is {telno.%loop-player%}:
                    {cağrı.%loop-player%} isn't set:
                        set {arayan.%loop-player%} to player
                        open chest with 1 rows named "&bCağrı&8-&b%player%(%{telno.%player%}%)" to loop-player
                        wait 1 tick
                        format slot 0 of loop-player with light green dye named "&a&nAC" with lore "&7Tıklarsan aramayı kabul edersin." to close then run "ac %loop-player%"
                        format slot 8 of loop-player with gray dye named "&c&nKAPAT" with lore "&7Tıklarsan aramayı reddedersin." to close then run "kapa %loop-player%"
                    else:
                        send "&cKişi başka birisiyle görüşüyor."
        else:
            send "&cZaten bir çağrıdasınız."
command /ac <player>:
    executable by: console
    trigger:
        {arayan.%arg-1%} is set:
            set {cağrı.%arg-1%} to {arayan.%arg-1%}
            set {cağrı.%{arayan.%arg-1%}%} to arg-1
            send "&cCağrıya başladınız, kapatmak için chat'a '-' yazın." to {arayan.%arg-1%}
            send "&cCağrıya başladınız, kapatmak için chat'a '-' yazın." to arg-1
command /kapa <player>:
    executable by: console
    trigger:
        {arayan.%arg-1%} is set:
            send "&4Cağrı reddedildi." to {arayan.%arg-1%}
            send "&4Çağrı reddedildi." to arg-1
            delete {arayan.%arg-1%}
command /telefon <text> <player> [<int>] [<text>]:
    executable by: console
    trigger:
        arg 1 is "hesap":
            set {telno.%arg-2%} to a random integer between 1111111 and 9999999
            send "&aSim Kart alındı, numaran: &3%{telno.%arg-2%}%" to arg-2
        arg 1 is "yenile":
            set {telno.%arg-2%} to a random integer between 1111111 and 9999999
            send "&aNumara yenilendi: &3%{telno.%arg-2%}%" to arg-2
        arg 1 is "rehber":
            set {telislem.%arg-2%} to "rehber"
            send "&cRehberine kayıtlı olan oyuncunun gir, iptal etmek için '-' yaz." to arg-2
        arg 1 is "rehberkaydet":
            set {telislem.%arg-2%} to "kaydediyor"
            send "&cKaydetmek istediğin numarayı chat'a yaz, iptal etmek için '-' yaz." to arg-2
        arg 1 is "rehbersil":
            set {telislem.%arg-2%} to "siliyor"
            send "&cSilmek istediğin numarayı chat'a yaz, iptal etmek için '-' yaz." to arg-2
        arg 1 is "rehberkdevam":
            loop {telefonumaraları::*}:
                arg-3 is {telno.%loop-value%}:
                    set {rehber.%arg-2%.%{telno.%loop-value%}%} to "&b%loop-value%&8-&b%{telno.%loop-value%}%"
                    add 1 to {slot.%arg-2%}
                    delete {telislem.%arg-2%}
                    send "&aKaydedildi: &b%loop-value%&8-&b%{telno.%loop-value%}%" to arg-2
        arg 1 is "rehbersdevam":
            loop {telefonumaraları::*}:
                arg-3 is {telno.%loop-value%}:
                    {rehber.%arg-2%.%{telno.%loop-value%}%} is set:
                        send "&cSilindi: %{rehber.%arg-2%.%{telno.%loop-value%}%}%" to arg-2
                        delete {rehber.%arg-2%.%{telno.%loop-value%}%}
                        delete {telislem.%player%}
                    else:
                        loop 1 times:
                            send "&cBu numara rehberine kayıtlı değil." to arg-2
command /rehberbak <player>:
    executable by: console
    trigger:
        delete {telislem.%arg-1%}
        loop {telefonumaraları::*}:
            send "&8&l&m========== &3&oRehber &8&l&m==========" to arg-1
            {rehber.%arg-1%.%{telno.%loop-value%}%} is set:
                send json "%{rehber.%arg-1%.%{telno.%loop-value%}%}%" tooltip "&2&oAramak için tıkla" run "/ara %{telno.%loop-value%}%" to arg-1
command /sa <text>:
    trigger:
        if arg-1 is "telefon":
            if balance of player is greater than 199:
                remove 200 from balance of player
                give 1 book named "&1Telefon" to player
            else:
                send "&cParan yetersiz!"
on rightclick with book:
    if name of player's tool is "&1Telefon":
        open chest with 1 rows named "&6Telefon" to player
        wait 1 tick
        {telno.%player%} isn't set:
            format slot 0 of player with paper named "&9Sim Kart" with lore "&7Tıklarsan bir sim kart oluşturursun." to close then run "telefon hesap %player%"
        else:
            format slot 0 of player with paper named "&9Sim Yenile" with lore "&7Tıklarsan telefon numaranı yenilersin.||&7Şu an ki numara: &3%{telno.%player%}%" to close then run "telefon yenile %player%"
            format slot 1 of player with paper named "&9Rehber" with lore "&7Tıklarsan rehberini görürsün." to close then run "rehberbak %player%"
            format slot 2 of player with paper named "&9Rehber Kayit" with lore "&7Tıklarsan rehbere numara kaydedersin." to close then run "telefon rehberkaydet %player%"
            format slot 3 of player with paper named "&9Rehber Sil" with lore "&7Tıklarsan rehberden numara silersin." to close then run "telefon rehbersil %player%"

Oldu çok teşekkürler. Konu kilit.
 
Üst