Çözüldü Otosat skript lazım (opsky) KİLİT

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

selcukwashere

Yay Yok, İskelet Yok
Katılım
5 Eylül 2019
Mesajlar
280
Elmaslar
200
Puan
6.985
Konum
Türkiye
Onlarca otosat skript denedim hiçbiri olmadı istediğim şu tarz bir skript:

Kırınca değil envanterdeyken satacak yani dk başına satıcak
ama komutlu olucak yani açıp kapayabilicem

bilgisi olan varsa paylaşırsa mutlu olurum
 

Aşağıda verdiğim kodları kendinize göre ayarlayabilirsiniz. Bu arada SkQuery, TuSke ve WildSkript gibi temel eklentileri yüklemeniz gerekiyor.​

Kod:
on join:
    set {otosat.demir::%player%} to "Pasif"
    set {otosat.demirblok::%player%} to "Pasif"
    set {otosat.altın::%player%} to "Pasif"
    set {otosat.altınblok::%player%} to "Pasif"
    set {otosat.zümrüt::%player%} to "Pasif"
    set {otosat.zümrütblok::%player%} to "Pasif"
    set {otosat.elmas::%player%} to "Pasif"
    set {otosat.elmasblok::%player%} to "Pasif"
  
  
  
  
options:

    msg_aktif: &3MC-TR Network &8» &eOtomatik Satış Durumu: &aAktif
    msg_pasif: &3MC-TR Network &8» &eOtomatik Satış Durumu: &cPasif

    demir_fiyat: 333330
    demir_adet: 640
  
    demir_blok_adet: 64
    demir_blok_fiyat: 300000
  
    altın_fiyat: 555550
    altın_adet: 640
  
    altın_blok_adet: 64
    altın_blok_fiyat: 500000
  
    zümrüt_adet: 640
    zümrüt_fiyat: 666660
  
    zümrüt_blok_adet: 64
    zümrüt_blok_fiyat: 600000
  
    elmas_adet: 640
    elmas_fiyat: 777770
  
    elmas_blok_adet: 64
    elmas_blok_fiyat: 700000
on pick up:
    if event-item is iron ingot:
        if {otosat.demir::%player%} is "Aktif":
            if player has {@demir_adet} iron ingot:
                execute console command "eco give %player% {@demir_fiyat}"
                remove {@demir_adet} iron ingot from player's inventory
    if event-item is iron block:
        if {otosat.demirblok::%player%} is "Aktif":
            if player has {@demir_blok_adet} iron block:
                execute console command "eco give %player% {@demir_blok_fiyat}"
                remove {@demir_blok_adet} iron block from player's inventory
    if event-item is gold ingot:
        if {otosat.altın::%player%} is "Aktif":
            if player has {@altın_adet} gold ingot:
                execute console command "eco give %player% {@altın_fiyat}"
                remove {@altın_adet} gold ingot from player's inventory

    if event-item is gold block:
        if {otosat.altınblok::%player%} is "Aktif":
            if player has {@altın_blok_adet} gold block:
                execute console command "eco give %player% {@altın_blok_fiyat}"
                remove {@altın_blok_adet} gold block from player's inventory
              
    if event-item is emerald:
        if {otosat.zümrüt::%player%} is "Aktif":
            if player has {@zümrüt_adet} emerald:
                execute console command "eco give %player% {@zümrüt_fiyat}"
                remove {@zümrüt_adet} emerald from player's inventory
    if event-item is emerald block:
        if {otosat.zümrütblok::%player%} is "Aktif":
            if player has {@zümrüt_blok_adet} emerald block:
                execute console command "eco give %player% {@zümrüt_blok_fiyat}"
                remove {@zümrüt_blok_adet} emerald block from player's inventory
    if event-item is diamond:
        if {otosat.elmas::%player%} is "Aktif":
            if player has {@elmas_adet} diamond:
                execute console command "eco give %player% {@elmas_fiyat}"
                remove {@elmas_adet} diamond from player's inventory
          
    if event-item is diamond block:
        if {otosat.elmasblok::%player%} is "Aktif":
            if player has {@elmas_blok_adet} diamond block:
                execute console command "eco give %player% {@elmas_blok_fiyat}"
                remove {@elmas_blok_adet} diamond block from player's inventory
              
              
              
              
              
command /otosat <text> [<text>]:
    executable by: player
    trigger:
        if arg 1 is "liste" or "list" or "durum":
          
            send "&a============== &E&oOTOSAT &a======================"
            send " "
            if {otosat.demir::%player%} is "Aktif":
                send "✭  &fDemir&8: &a%{otosat.demir::%player%}%"
            else:
                send "✭  &fDemir&8: &c%{otosat.demir::%player%}%"
            send " "
            if {otosat.demirblok::%player%} is "Aktif":
                send "✭  &fDemir Blok&8: &a%{otosat.demirblok::%player%}%"
            else:
                send "✭  &fDemir Blok&8: &c%{otosat.demirblok::%player%}%"
            send " "
            if {otosat.altın:%player%} is "Aktif":
                send "✭  &6Altın&8: &a%{otosat.altın::%player%}%"
            else:
                send "✭  &6Altın&8: &c%{otosat.altın::%player%}%"
            send " "
            if {otosat.altınblok::%player%} is "Aktif":
                send "✭  &6Altın Blok&8: &a%{otosat.altınblok::%player%}%"
            else:
                send "✭  &6Altın Blok&8: &c%{otosat.altınblok::%player%}%"
              
            send " "
            if {otosat.zümrüt::%player%} is "Aktif":
                send "✭  &aZümrüt&8: &a%{otosat.zümrüt::%player%}%"
            else:
                send "✭  &aZümrüt&8: &c%{otosat.zümrüt::%player%}%"
            send " "
            if {otosat.zümrüt::%player%} is "Aktif":
                send "✭  &aZümrüt Blok&8: &a%{otosat.zümrütblok::%player%}%"
            else:
                send "✭  &aZümrüt Blok&8: &c%{otosat.zümrütblok::%player%}%"
            send " "
            if {otosat.elmas::%player%} is "Aktif":
                send "✭  &bElmas&8: &a%{otosat.elmas::%player%}%"
            else:
                send "✭  &bElmas&8: &c%{otosat.elmas::%player%}%"
            send " "
            if {otosat.elmasblok::%player%} is "Aktif":
                send "✭  &bElmas Blok&8: &a%{otosat.elmasblok::%player%}%"
            else:
                send "✭  &bElmas Blok&8: &c%{otosat.elmasblok::%player%}%"
            send " "
            send "&a=========================================="
      
      
      
      
      
      
        if arg 1 is "demir" or "demır" or "iron" or "ıron":
            if arg 2 is "aç" or "aktif" or "ac":
                set {otosat.demir::%player%} to "Aktif"
            if arg 2 is "kapat" or "pasif":
                set {otosat.demir::%player%} to "Pasif"
            else:
                if {otosat.demir::%player%} is "Aktif":
                    send "{@msg_aktif}"
                else:
                    send "{@msg_pasif}"
                  
                  
                  
                  
        if arg 1 is "demirblok" or "demırblok" or "ironblock" or "ıronblock":
            if arg 2 is "aç" or "aktif" or "ac":
                set {otosat.demirblok::%player%} to "Aktif"
            if arg 2 is "kapat" or "pasif":
                set {otosat.demirblok::%player%} to "Pasif"
            else:
                if {otosat.demirblok::%player%} is "Aktif":
                    send "{@msg_aktif}"
                else:
                    send "{@msg_pasif}"
          
        if arg 1 is "altın" or "altin" or "gold":
            if arg 2 is "aç" or "aktif" or "ac":
                set {otosat.altın::%player%} to "Aktif"
            if arg 2 is "kapat" or "pasif":
                set {otosat.altın::%player%} to "Pasif"
            else:
                if {otosat.altın::%player%} is "Aktif":
                    send "{@msg_aktif}"
                else:
                    send "{@msg_pasif}"
                  
        if arg 1 is "altınblok" or "altinblok" or "goldblok" or "goldblock":
            if arg 2 is "aç" or "aktif" or "ac":
                set {otosat.altınblok::%player%} to "Aktif"
            if arg 2 is "kapat" or "pasif":
                set {otosat.altınblok::%player%} to "Pasif"
            else:
                if {otosat.altınblok::%player%} is "Aktif":
                    send "{@msg_aktif}"
                else:
                    send "{@msg_pasif}"
                  
                  
        if arg 1 is "zümrüt" or "zumrut" or "emerald":
            if arg 2 is "aç" or "aktif" or "ac":
                set {otosat.zümrüt::%player%} to "Aktif"
            if arg 2 is "kapat" or "pasif":
                set {otosat.zümrüt::%player%} to "Pasif"
            else:
                if {otosat.zümrüt::%player%} is "Aktif":
                    send "{@msg_aktif}"
                else:
                    send "{@msg_pasif}"
        if arg 1 is "zümrütblok" or "zumrutblok" or "emeraldblock" or "emeraldblok":
            if arg 2 is "aç" or "aktif" or "ac":
                set {otosat.zümrütblok::%player%} to "Aktif"
            if arg 2 is "kapat" or "pasif":
                set {otosat.zümrütblok::%player%} to "Pasif"
            else:
                if {otosat.zümrütblok::%player%} is "Aktif":
                    send "{@msg_aktif}"
                else:
                    send "{@msg_pasif}"
                  
        if arg 1 is "elmas" or "diamond":
            if arg 2 is "aç" or "aktif" or "ac":
                set {otosat.elmas::%player%} to "Aktif"
            if arg 2 is "kapat" or "pasif":
                set {otosat.elmas::%player%} to "Pasif"
            else:
                if {otosat.elmas::%player%} is "Aktif":
                    send "{@msg_aktif}"
                else:
                    send "{@msg_pasif}"
                  
        if arg 1 is "elmasblok" or "elmasblock" or "diamondblok" or "diamondblock":
            if arg 2 is "aç" or "aktif" or "ac":
                set {otosat.elmasblok::%player%} to "Aktif"
            if arg 2 is "kapat" or "pasif":
                set {otosat.elmasblok::%player%} to "Pasif"
            else:
                if {otosat.elmasblok::%player%} is "Aktif":
                    send "{@msg_aktif}"
                else:
                    send "{@msg_pasif}"
 
bütün eklentiler var. error da vermedi. ama yerden alınca satmıyor mesela /otosat aktif elmas yaptım ama yere atıp alınca satmıyor elimde kalıyor
 
aslında şöyle birşey ayarlamıştım

Kod:
every 60 seconds:
                              send " &7&l> &3Envanterinizdeki madenler 60 saniyede bir otomatik olarak satilir!"
                              wait 5 seconds
                              execute player command "/sell diamond"
                              execute player command "/sell diamondblock"
                              execute player command "/sell gold"
                              execute player command "/sell goldblock"
                              execute player command "/sell emerald"
                              execute player command "/sell emeraldblock"
                              execute player command "/sell iron"
                              execute player command "/sell ironblock"
                              send " &7&l> &6Envanterinizdeki madenler satildi! "
                              stop

ama bunu komuda nasıl atayacağımı bilmiyorum yardım ederseniz mutlu olurum.
 

aslında şöyle birşey ayarlamıştım

Kod:
every 60 seconds:
                              send " &7&l> &3Envanterinizdeki madenler 60 saniyede bir otomatik olarak satilir!"
                              wait 5 seconds
                              execute player command "/sell diamond"
                              execute player command "/sell diamondblock"
                              execute player command "/sell gold"
                              execute player command "/sell goldblock"
                              execute player command "/sell emerald"
                              execute player command "/sell emeraldblock"
                              execute player command "/sell iron"
                              execute player command "/sell ironblock"
                              send " &7&l> &6Envanterinizdeki madenler satildi! "
                              stop

ama bunu komuda nasıl atayacağımı bilmiyorum yardım ederseniz mutlu olurum.


Benim attığıma bakarsan ona göre ayarlayabilirsin.
 
otosat için bir plugin yokmu hem sw yi yormaz hemde skriptle uğraşmak zorunda kalmam @YigitReisOffical
 
sk ler nedense çalışmıyor mesela @YigitReisOffical in en başta koyduğu sk nin aslında çalışması lazım ama bir itemi alınca otosatmıyor
 
Merhabalar, Assadaki Kodları Kendinize Göre Ayarlayabilirsiniz. Temel eklentileri indirmeyi unutmayın.​
Kod:
#Avelis-Eklenti-Skript-Web


options:
    p: &3Skyblock &8»
    otodemirfiyat: 1100
    otodemiradet: 64
    otoaltınfiyat: 1200
    otoaltınadet: 64
    otoelmasfiyat: 1500
    otoelmasadet: 64
    otozümrütfiyat: 1700
    otozümrütadet: 64
    ototaşfiyat: 750
    ototaşadet: 64
    otoyosunlutaşfiyat: 700
    otoyosunlutaşadet: 64
on quit:
    set {otosatdemir::%player%} to false
    set {otosataltın::%player%} to false
    set {otosatelmas::%player%} to false
    set {otosatzümrüt::%player%} to false
    set {otosattaş::%player%} to false
    set {otosatyosunlutaş::%player%} to false
on join:
    while player is online:
        wait 1 second
        if {otosatdemir::%player%} is true:
            if player has {@otodemiradet} iron ingot:
                remove {@otodemiradet} iron ingot from player's inventory
                send "{@p} &f{@otodemiradet} &7adet &7demir &f{@otodemirfiyat} TL&7'ye &7satılmıştır." to player
                add {@otodemirfiyat} to player's money
        if {otosataltın::%player%} is true:
            if player has {@otoaltınadet} gold ingot:
                remove {@otoaltınadet} gold ingot from player's inventory
                send "{@p} &f{@otoaltınadet} &7adet &7altın &f{@otoaltınfiyat} TL&7'ye &7satılmıştır." to player
                add {@otoaltınfiyat} to player's money
        if {otosatelmas::%player%} is true:
            if player has {@otoelmasadet} diamond:
                remove {@otoelmasadet} diamond from player's inventory
                send "{@p} &f{@otoelmasadet} &7adet &7elmas &f{@otoelmasfiyat} TL&7'ye &7satılmıştır." to player
                add {@otoelmasfiyat} to player's money
        if {otosatzümrüt::%player%} is true:
            if player has {@otozümrütadet} emerald:
                remove {@otozümrütadet} emerald from player's inventory
                send "{@p} &f{@otozümrütadet} &7adet &7zümrüt &f{@otozümrütfiyat} TL&7'ye &7satılmıştır." to player
                add {@otozümrütfiyat} to player's money
        if {otosattaş::%player%} is true:
            if player has {@ototaşadet} cobblestone:
                remove {@ototaşadet} cobblestone from player's inventory
                send "{@p} &f{@ototaşadet} &7adet &7taş &f{@ototaşfiyat} TL&7'ye &7satılmıştır." to player
                add {@ototaşfiyat} to player's money
        if {otosatyosunlutaş::%player%} is true:
            if player has {@otoyosunlutaşadet} mossy cobblestone:
                remove {@otoyosunlutaşadet} mossy cobblestone from player's inventory
                send "{@p} &f{@otoyosunlutaşadet} &7adet &7yosunlutaş &f{@otoyosunlutaşfiyat} TL&7'ye &7satılmıştır." to player
                add {@otoyosunlutaşfiyat} to player's money
command /otosatayar [<Text>]:
    trigger:
        if arg 1 is set:
            if arg 1 is "demir":
                if {otosatdemir::%player%} is false:
                    send "{@p} &7Oto demir satma &aaktif" to player
                    set {otosatdemir::%player%} to true
                else:
                    send "{@p} &7Oto demir satma &cdevredışı" to player
                    set {otosatdemir::%player%} to false
            if arg 1 is "altın":
                if {otosataltın::%player%} is false:
                    send "{@p} &7Oto altın satma &aaktif" to player
                    set {otosataltın::%player%} to true
                else:
                    send "{@p} &7Oto altın satma &cdevredışı" to player
                    set {otosataltın::%player%} to false
            if arg 1 is "elmas":
                if {otosatelmas::%player%} is false:
                    send "{@p} &7Oto elmas satma &aaktif" to player
                    set {otosatelmas::%player%} to true
                else:
                    send "{@p} &7Oto elmas satma &cdevredışı" to player
                    set {otosatelmas::%player%} to false
            if arg 1 is "zümrüt":
                if {otosatzümrüt::%player%} is false:
                    send "{@p} &7Oto zümrüt satma &aaktif" to player
                    set {otosatzümrüt::%player%} to true
                else:
                    send "{@p} &7Oto zümrüt satma &cdevredışı" to player
                    set {otosatzümrüt::%player%} to false
            if arg 1 is "taş":
                if {otosattaş::%player%} is false:
                    send "{@p} &7Oto taş satma &aaktif" to player
                    set {otosattaş::%player%} to true
                else:
                    send "{@p} &7Oto taş satma &cdevredışı" to player
                    set {otosattaş::%player%} to false
            if arg 1 is "yosunlutaş":
                if {otosatyosunlutaş::%player%} is false:
                    send "{@p} &7Oto yosunlutaş satma &aaktif" to player
                    set {otosatyosunlutaş::%player%} to true
                else:
                    send "{@p} &7Oto yosunlutaş satma &cdevredışı" to player
                    set {otosatyosunlutaş::%player%} to false
command /otosat [<Text>]:
    trigger:
        if arg 1 is not set:
            open virtual chest with size 3 named "&6&lOTOSAT" to player
            wait 1 tick
            make gui slot 0 of player with iron ingot named "&fDemir" with lore "" to nothing
            if {otosatdemir::%player%} is false:
                make gui slot 18 of player with gray dye named "&fDemir" with lore "&7Durum: &cKapalı||&7Açmak için tıklayın." to close then run player command "otosatayar demir"
            else:
                make gui slot 18 of player with light green dye named "&fDemir" with lore "&7Durum: &aAçık||&7Kapatmak için tıklayın." to close then run player command "otosatayar demir"
            make gui slot 1 of player with gold ingot named "&6Altın" with lore "" to nothing
            if {otosataltın::%player%} is false:
                make gui slot 19 of player with gray dye named "&6Altın" with lore "&7Durum: &cKapalı||&7Açmak için tıklayın." to close then run player command "otosatayar altın"
            else:
                make gui slot 19 of player with light green dye named "&6Altın" with lore "&7Durum: &aAçık||&7Kapatmak için tıklayın." to close then run player command "otosatayar altın"
            make gui slot 2 of player with diamond named "&bElmas" with lore "" to nothing
            if {otosatelmas::%player%} is false:
                make gui slot 20 of player with gray dye named "&bElmas" with lore "&7Durum: &cKapalı||&7Açmak için tıklayın." to close then run player command "otosatayar elmas"
            else:
                make gui slot 20 of player with light green dye named "&bElmas" with lore "&7Durum: &aAçık||&7Kapatmak için tıklayın." to close then run player command "otosatayar elmas"
            make gui slot 3 of player with emerald named "&aZümrüt" with lore "" to nothing   
            if {otosatzümrüt::%player%} is false:
                make gui slot 21 of player with gray dye named "&aZümrüt" with lore "&7Durum: &cKapalı||&7Açmak için tıklayın." to close then run player command "otosatayar zümrüt"
            else:
                make gui slot 21 of player with light green dye named "&aZümrüt" with lore "&7Durum: &aAçık||&7Kapatmak için tıklayın." to close then run player command "otosatayar zümrüt"
            make gui slot 4 of player with cobblestone named "&7Taş" with lore "" to nothing
            if {otosattaş::%player%} is false:
                make gui slot 22 of player with gray dye named "&7Taş" with lore "&7Durum: &cKapalı||&7Açmak için tıklayın." to close then run player command "otosatayar taş"
            else:
                make gui slot 22 of player with light green dye named "&7Taş" with lore "&7Durum: &aAçık||&7Kapatmak için tıklayın." to close then run player command "otosatayar taş"
            make gui slot 5 of player with mossy cobblestone named "&8Yosunlu taş" with lore "" to nothing   
            if {otosatyosunlutaş::%player%} is false:
                make gui slot 23 of player with gray dye named "&8Yosunlu taş" with lore "&7Durum: &cKapalı||&7Açmak için tıklayın." to close then run player command "otosatayar yosunlutaş"
            else:
                make gui slot 23 of player with light green dye named "&8Yosunlu taş" with lore "&7Durum: &aAçık||&7Kapatmak için tıklayın." to close then run player command "otosatayar yosunlutaş"
 
Kod:
every 1 minute:
    loop players:
        if {otosat::%loop-player%} is true:
            send " &7&l> &3Envanterinizdeki madenler 60 saniyede bir otomatik olarak satilir!" to loop-player
            wait 5 seconds
            execute loop-player command "/sell diamond"
            execute loop-player command "/sell diamondblock"
            execute loop-player command "/sell gold"
            execute loop-player command "/sell goldblock"
            execute loop-player command "/sell emerald"
            execute loop-player command "/sell emeraldblock"
            execute loop-player command "/sell iron"
            execute loop-player command "/sell ironblock"
            send " &7&l> &6Envanterinizdeki madenler satildi! "  to loop-player

command /otosat [<text>]:
    trigger:
        if arg 1 is "aç" or "ac":
            set {otosat::%player%} to true
            send "&cBilgi! &bOtosat açıldı!"
            stop
        if arg 1 is "kapa" or "kapat":
            set {otosat::%player%} to false
            send "&cBilgi! &bOtosat kapatıldı!"
            stop
        send "&4Hata! &bKullanım -> &a/otosat aç/kapat"

Senin skripttine istediklerini ekledim kullanabilirsin hata verirse at.
 
@Avelis aslında güzel skript ama nedense komutlar çalışmıyor
 
@xBuhariPvP işime yaradı çok saol KONU KİLİTLENEBİLİR
 
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