Skript OTOSAT Skripti Faction sunucular için

PowerArticle

Yönetici
Katılım
11 Ocak 2021
Mesajlar
63
Tepkime puanı
23
Puanları
6
Konum
Adana
Faction sunucular için ayarlanmış olan otosat skripti.​
Kod:
options:
    Prefix: &6&lOTOSAT ➵
    
    lapisfiyat: 10240
    lapisadet: 640
    
# Elmas

    elmasadet: 640
    elmasfiyat: 384000
    elmasblockfiyat: 3456000
    
    vipelmasfiyat: 403200
    vipelmasblockfiyat: 3628800
    
# Zümrüt
    
    zumrutadet: 640
    zumrutfiyat: 320000
    zumrutblockfiyat: 2880000
    
    vipzumrutfiyat: 339200
    vipzumrutblockfiyat: 3052800
    
# Altın
    
    altinadet: 640
    altinfiyat: 320000
    altinblockfiyat: 2880000
    
    vipaltinfiyat: 339200
    vipaltinblockfiyat: 3052800
    
# Demir
    
    demiradet: 640
    demirfiyat: 256000
    demirblockfiyat: 2304000
    
    vipdemirfiyat: 275200
    vipdemirblockfiyat: 2476800

on first login:
    set {lapis.%player%} to false
    set {elmas.%player%} to false
    set {demir.%player%} to false
    set {altin.%player%} to false
    set {zumrut.%player%} to false
    
# OtoSat Hepsini Satış   
command /otosat:
    trigger:
        execute player command "otolapis"
        execute player command "otodemir"
        execute player command "otoaltin"
        execute player command "otoelmas"
        execute player command "otozumrut"                   
    
# Normal OtoLapis vs. Satış   
command /otolapis:
    trigger:
        if {lapis.%player%} is false:
            send "{@Prefix} &7Otomatik lapis satma &aaçıldı" to player
            set {lapis.%player%} to true
        else:
            send "{@Prefix} &7Otomatik lapis satma &ckapatıldı" to player
            set {lapis.%player%} to false
            
on break lapis ore:
    if {lapis.%player%} is true:
        if player has {@lapisadet} lapis lazuli:
            remove {@lapisadet} lapis lazuli from player
            send "{@Prefix} &7Envanterinden &a{@lapisfiyat} &7fıyatına lapis sattın&c!" to player
            execute console command "/eco give %player% {@lapisfiyat}"
            stop

command /otoelmas:
    trigger:
        if {elmas.%player%} is false:
            send "{@Prefix} &7Otomatik elmas satma &aaçıldı" to player
            set {elmas.%player%} to true
        else:
            send "{@Prefix} &7Otomatik elmas satma &ckapatıldı" to player
            set {elmas.%player%} to false

on break lapis ore or diamond block or emerald block or gold block or iron block:
    if {elmas.%player%} is true:
        if player has {@elmasadet} diamond block:
            if player has permission "vip.otosat":
                remove {@elmasadet} diamond block from player
                send " {@Prefix} &7Envanterinden &a{@vipelmasblockfiyat} &7fıyatına elmas blok sattın&c&c!" to player
                execute console command "/eco give %player% {@vipelmasblockfiyat}"
                stop
            else:
                remove {@elmasadet} diamond block from player
                send " {@Prefix} &7Envanterinden &a{@elmasblockfiyat} &7fıyatına elmas blok sattın&c&c!" to player
                execute console command "/eco give %player% {@elmasblockfiyat}"
                stop
            
on break lapis ore or diamond ore or emerald ore or gold ore or iron ore:
    if {elmas.%player%} is true:
        if player has {@elmasadet} diamond:
            if player has permission "vip.otosat":
                remove {@elmasadet} diamond from player
                send " {@Prefix} &7Envanterinden &a{@vipelmasfiyat} fıyatına elmas sattın&c&c!" to player
                execute console command "/eco give %player% {@vipelmasfiyat}"
                stop
            else:
                remove {@elmasadet} diamond from player
                send " {@Prefix} &7Envanterinden &a{@elmasfiyat} fıyatına elmas sattın&c&c!" to player
                execute console command "/eco give %player% {@elmasfiyat}"
                stop

command /otodemir:
    trigger:
        if {demir.%player%} is false:
            send "{@Prefix} &7Otomatik demir satma &aaçıldı" to player
            set {demir.%player%} to true
        else:
            send "{@Prefix} &7Otomatik demir satma &ckapatıldı" to player
            set {demir.%player%} to false

on break lapis ore or diamond block or emerald block or gold block or iron block:
    if {demir.%player%} is true:
        if player has {@demiradet} iron block:
            if player has permission "vip.otosat":
                remove {@demiradet} iron block from player
                send " {@Prefix} &7Envanterinden &a{@vipdemirblockfiyat} &7fıyatına demir blok sattın&c&c!" to player
                execute console command "/eco give %player% {@vipdemirblockfiyat}"
                stop
            else:
                remove {@demiradet} iron block from player
                send " {@Prefix} &7Envanterinden &a{@demirblockfiyat} &7fıyatına demir blok sattın&c&c!" to player
                execute console command "/eco give %player% {@demirblockfiyat}"
                stop
                
on break lapis ore or diamond ore or emerald ore or gold ore or iron ore:
    if {demir.%player%} is true:
        if player has {@demiradet} iron ingot:
            if player has permission "vip.otosat":
                remove {@demiradet} iron ingot from player
                send " {@Prefix} &7Envanterinden &a{@vipdemirfiyat} &7fıyatına demir sattın&c&c!" to player
                execute console command "/eco give %player% {@vipdemirfiyat}"
                stop
            else:
                remove {@demiradet} iron ingot from player
                send " {@Prefix} &7Envanterinden &a{@demirfiyat} &7fıyatına demir sattın&c&c!" to player
                execute console command "/eco give %player% {@demirfiyat}"
                stop
            
command /otoaltin:
    trigger:
        if {altin.%player%} is false:
            send "{@Prefix} &7Otomatik altın satma &aaçıldı" to player
            set {altin.%player%} to true
        else:
            send "{@Prefix} &7Otomatik altın satma &ckapatıldı" to player
            set {altin.%player%} to false

on break lapis ore or diamond block or emerald block or gold block or iron block:
    if {altin.%player%} is true:
        if player has {@altinadet} gold block:
            if player has permission "vip.otosat":
                remove {@altinadet} gold block from player
                send " {@Prefix} &7Envanterinden &a{@vipaltinblockfiyat} &7fiyatına altın blok sattın&c!" to player
                execute console command "/eco give %player% {@vipaltinblockfiyat}"
                stop
            else:
                remove {@altinadet} gold block from player
                send " {@Prefix} &7Envanterinden &a{@altinblockfiyat} &7fiyatına altın blok sattın&c!" to player
                execute console command "/eco give %player% {@altinblockfiyat}"
                stop
            
on break lapis ore or diamond ore or emerald ore or gold ore or iron ore:
    if {altin.%player%} is true:
        if player has {@altinadet} gold ingot:
            if player has permission "vip.otosat":
                remove {@altinadet} gold ingot from player
                send " {@Prefix} &7Envanterinden &a{@vipaltinfiyat} &7fıyatına altın sattın&c!" to player
                execute console command "/eco give %player% {@vipaltinfiyat}"
                stop
            else:
                remove {@altinadet} gold ingot from player
                send " {@Prefix} &7Envanterinden &a{@altinfiyat} &7fıyatına altın sattın&c!" to player
                execute console command "/eco give %player% {@altinfiyat}"
                stop

command /otozumrut:
    trigger:
        if {zumrut.%player%} is false:
            send "{@Prefix} &7Otomatik zümrüt satma &aaçıldı" to player
            set {zumrut.%player%} to true
        else:
            send "{@Prefix} &7Otomatik zümrüt satma &ckapatıldı" to player
            set {zumrut.%player%} to false
            
on break lapis ore or diamond ore or emerald ore or gold ore or iron ore:
    if {zumrut.%player%} is true:
        if player has {@zumrutadet} emerald:
            if player has permission "vip.otosat":
                remove {@zumrutadet} emerald from player
                send " {@Prefix} &7Envanterinden &a{@vipzumrutfiyat} &7fıyatına zümrüt sattın&c!" to player
                execute console command "/eco give %player% {@vipzumrutfiyat}"
                stop
            else:
                remove {@zumrutadet} emerald from player
                send " {@Prefix} &7Envanterinden &a{@zumrutfiyat} &7fıyatına zümrüt sattın&c!" to player
                execute console command "/eco give %player% {@zumrutfiyat}"
                stop
            
on break lapis ore or diamond block or emerald block or gold block or iron block:
    if {zumrut.%player%} is true:
        if player has {@zumrutadet} emerald block:
            if player has permission "vip.otosat":
                remove {@zumrutadet} emerald block from player
                send " {@Prefix} &7Envanterinden &a{@vipzumrutblockfiyat} &7fiyatına zümrüt blok sattın&c!" to player
                execute console command "/eco give %player% {@vipzumrutblockfiyat}"
                stop
            else:
                remove {@zumrutadet} emerald block from player
                send " {@Prefix} &7Envanterinden &a{@zumrutblockfiyat} &7fiyatına zümrüt blok sattın&c!" to player
                execute console command "/eco give %player% {@zumrutblockfiyat}"
                stop
 
  • Etiketler
    otosat otosat sk otosat skripti otosatscript