Bulundu Xconomy pluginiyle çalışabilen kese script arıyorum.

  • Konuyu Başlatan Konuyu Başlatan User1001
  • Başlangıç tarihi Başlangıç tarihi
  • Görüntüleme 425
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

User1001

Birisi mi Spawnlandı?
Katılım
23 Temmuz 2022
Mesajlar
8
Elmaslar
0
Puan
70
Yaş
27
Konum
A
Xconomy pluginiyle çalışabilen kese script arıyorum Komutları
/kese koy
/kese al
/altın gonder
 
Kod:
#Sadien Kese Sistemi

variables:
    {kese::%player%} = 0

on first join:
    set {kese::%player%} to 0
    stop

command /kese [<text>] [<number>]:
    trigger:
        if arg-1 is set:
            if arg-1 is "koy":
                if arg-2 is set:
                    if player's balance is bigger than or equal to arg-2:
                        if arg-2 is bigger than or equal to 1:
                            execute console command "money take %player% %arg-2%"
                            add arg-2 to {kese::%arg-1%}
                            send "&6Kese &8» &aBaşarıyla Keseye &e%arg-2% &apara konuldu!" to player
                        else:
                            send "&6Kese &8» &cMinimum 1 Lira yatırabilirsin." to player
                    else:
                        send "&6Kese &8» &cYeterli paran bulunmamakta." to player
                else:
                    send "&6Kese &8» &cKeseye ne kadar para koyacağını belirt." to player
            if arg-1 is "al":
                if arg-2 is set:
                    if {kese::%player%} is bigger than or equal to arg-2:
                        if arg-2 is bigger than or equal to 1:
                            execute console command "money give %player% %arg-2%"
                            remove arg-2 from {kese::%player%}
                            send "&6Kese &8» &aBaşarıyla keseden &e%arg-2% &apara aldın!" to player
                        else:
                            send "&6Kese &8» &cMinimum 1 Lira çekebilirsin." to player
                    else:
                        send "&6Kese &8» &cKesede bu kadar para yok." to player
                else:
                    send "&6Kese &8» &cÇekeceğin Miktarı belirt." to player

command /kesegönder [<player>] [<number>]:
    trigger:
        if arg-1 is set:
            if arg-2 is set:
                if {kese::%player%} is bigger than or equal to arg-2:
                    if arg-2 is bigger than or equal to 1:
                        remove arg-2 from {Kese::%player%}
                        add arg-2 to {Kese::%arg-1%}
                        send "&6Kese &8» &a%arg-1% &eadlı oyuncuya başarıyla &c%arg-2% &eAltın gönderildi." to player
                        send "&6Kese &8» &a%player% &eadlı oyuncu sana &c%arg-2% &eAltın gönderdi." to arg-1
                    else:
                        send "&6Kese &8» &cGöndereceğiniz Altın miktarı 1 veya daha yüksek bir sayı olmalı."
                else:
                    send "&6Kese &8» &cMaalesef &e%arg-2% &cAltın bulunmuyor... "
            else:
                send "&6Kese &8» &cBir miktar girmelisiniz."
        else:
            send "&6Kese &8» &cBir oyuncu ismi girmelisiniz."

Kodu şimdi yazdım ve hiç denemedim, gördüğüm bugları fixledim. Deneyip geri dönüş yaparsın
 
Son düzenleme:
Kod:
#Sadien Kese Sistemi

variables:
    {kese::%player%} = 0

on first join:
    set {kese::%player%} to 0
    stop

command /kese [<text>] [<number>]:
    trigger:
        if arg-1 is set:
            if arg-1 is "koy":
                if arg-2 is set:
                    if player's balance is bigger than or equal to arg-2:
                        if arg-2 is bigger than or equal to 1:
                            execute console command "money take %player% %arg-2%"
                            add arg-2 to {kese::%arg-1%}
                            send "&6Kese &8» &aBaşarıyla Keseye &e%arg-2% &apara konuldu!" to player
                        else:
                            send "&6Kese &8» &cMinimum 1 Lira yatırabilirsin." to player
                    else:
                        send "&6Kese &8» &cYeterli paran bulunmamakta." to player
                else:
                    send "&6Kese &8» &cKeseye ne kadar para koyacağını belirt." to player
            if arg-1 is "al":
                if arg-2 is set:
                    if {kese::%player%} is bigger than or equal to arg-2:
                        if arg-2 is bigger than or equal to 1:
                            execute console command "money give %player% %arg-2%"
                            remove arg-2 from {kese::%player%}
                            send "&6Kese &8» &aBaşarıyla keseden &e%arg-2% &apara aldın!" to player
                        else:
                            send "&6Kese &8» &cMinimum 1 Lira çekebilirsin." to player
                    else:
                        send "&6Kese &8» &cKesede bu kadar para yok." to player
                else:
                    send "&6Kese &8» &cÇekeceğin Miktarı belirt." to player

command /kesegönder [<player>] [<number>]:
    trigger:
        if arg-1 is set:
            if arg-2 is set:
                if {kese::%player%} is bigger than or equal to arg-2:
                    if arg-2 is bigger than or equal to 1:
                        remove arg-2 from {Kese::%player%}
                        add arg-2 to {Kese::%arg-1%}
                        send "&6Kese &8» &a%arg-1% &eadlı oyuncuya başarıyla &c%arg-2% &eAltın gönderildi." to player
                        send "&6Kese &8» &a%player% &eadlı oyuncu sana &c%arg-2% &eAltın gönderdi." to arg-1
                    else:
                        send "&6Kese &8» &cGöndereceğiniz Altın miktarı 1 veya daha yüksek bir sayı olmalı."
                else:
                    send "&6Kese &8» &cMaalesef &e%arg-2% &cAltın bulunmuyor... "
            else:
                send "&6Kese &8» &cBir miktar girmelisiniz."
        else:
            send "&6Kese &8» &cBir oyuncu ismi girmelisiniz."

Kodu şimdi yazdım ve hiç denemedim, gördüğüm bugları fixledim. Deneyip geri dönüş yaparsın
Skripti nasıl kullanabilirim yani skript plugini var mı
 
Evet, Skript plugini kurun
 
Malesef invde altın olsun olmasın altın koyuyo ve altında silinmiyo
 
Altın neden envanter de?
 
Birde towny peleriniyle uyumlu herhangibi ekonomi de olabilir xconomy zorunlu deil
 
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
Üst