Çözüldü Otosat Yardım

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Kod:
options:
    Itemler: 336||405||406||263:1||82||318||264||331||351:12||388||265||289||348||288||399|
    Fiyatlar: 600000||1200000||1800000||2400000||3000000||3600000||4200000||4800000||5400000||6000000||6600000||7200000||7800000||9000000||9600000|
  
on load:
    delete {fl::*}
    delete {il::*}     
    set {_gecicifiyatlar::*} to split "{@Fiyatlar}" at "||"
    set {_geciciisim::*} to split "{@Itemler}" at "||"
    loop {_geciciisim::*}:
        set {fiyatlar::%loop-value%} to {_gecicifiyatlar::%loop-index%} parsed as integer
    send "&eACTIVE SELL | ITEM | PRİCE" to console
    loop {fiyatlar::*}:
        send "&eACTIVE SELL | %loop-index% | %loop-value%" to console
command /otosat [<text>]:
    trigger:
        if arg-1 is "ac":
            execute console command "manuaddp %player% otosat.ac"
            send "&4&lTR&fCraft &8» &7Otomatik Satış Sistemi &aAktif &7Edildi!" to player
        else if arg-1 is "kapat":
            execute console command "manudelp %player% otosat.ac"
            send "&4&lTR&fCraft &8» &7Otomatik Satış Sistemi &cDeaktif &7Edildi!" to player
        else:
            send "&7____________________________________" to player
            send "" to player
            send "&e/otosat ac &8» &7Otomatik Satış Sistemini &aAktif &7Eder!" to player
            send "&e/otosat kapat &8» &7Otomatik Satış Sistemini &aDeaktif &7Eder!" to player
            send "" to player
            send "&7____________________________________" to player
    
On Pick Up:
    set {_item} to event-item
    if player has permission "otosat.ac":
        if {fiyatlar::%id of event-item%} is set:
            set {_adet} to number of event-item in player's inventory
            if {_adet} > 64:
                set {_kalacak} to {_adet} mod 64
                remove all event-item from player's inventory
                give ("%{_kalacak}% %event-item%" parsed as material) to player
                remove {_kalacak} from {_adet}
                if {_adet} is set:
                    if {_adet} is not 0:
                        send "&e&l» &fOtomatik Olarak %{_adet}% Ürün Satıldı." to player
                        send "&e&l» &fSatılan Ürün Kodu: &e%id of event-item%" to player
                        send "&e&l» &fToplam Gelir: &e%(({fiyatlar::%id of event-item%} * {_adet}))%" to player
                        add (({fiyatlar::%id of event-item%} * {_adet})) to balance of player
Denermisin
birazdan deniyeceğim 5dk işim var
 
Kod:
options:
    Itemler: 336||405||406||263:1||82||318||264||331||351:12||388||265||289||348||288||399|
    Fiyatlar: 600000||1200000||1800000||2400000||3000000||3600000||4200000||4800000||5400000||6000000||6600000||7200000||7800000||9000000||9600000|
  
on load:
    delete {fl::*}
    delete {il::*}     
    set {_gecicifiyatlar::*} to split "{@Fiyatlar}" at "||"
    set {_geciciisim::*} to split "{@Itemler}" at "||"
    loop {_geciciisim::*}:
        set {fiyatlar::%loop-value%} to {_gecicifiyatlar::%loop-index%} parsed as integer
    send "&eACTIVE SELL | ITEM | PRİCE" to console
    loop {fiyatlar::*}:
        send "&eACTIVE SELL | %loop-index% | %loop-value%" to console
command /otosat [<text>]:
    trigger:
        if arg-1 is "ac":
            execute console command "manuaddp %player% otosat.ac"
            send "&4&lTR&fCraft &8» &7Otomatik Satış Sistemi &aAktif &7Edildi!" to player
        else if arg-1 is "kapat":
            execute console command "manudelp %player% otosat.ac"
            send "&4&lTR&fCraft &8» &7Otomatik Satış Sistemi &cDeaktif &7Edildi!" to player
        else:
            send "&7____________________________________" to player
            send "" to player
            send "&e/otosat ac &8» &7Otomatik Satış Sistemini &aAktif &7Eder!" to player
            send "&e/otosat kapat &8» &7Otomatik Satış Sistemini &aDeaktif &7Eder!" to player
            send "" to player
            send "&7____________________________________" to player
    
On Pick Up:
    set {_item} to event-item
    if player has permission "otosat.ac":
        if {fiyatlar::%id of event-item%} is set:
            set {_adet} to number of event-item in player's inventory
            if {_adet} > 64:
                set {_kalacak} to {_adet} mod 64
                remove all event-item from player's inventory
                give ("%{_kalacak}% %event-item%" parsed as material) to player
                remove {_kalacak} from {_adet}
                if {_adet} is set:
                    if {_adet} is not 0:
                        send "&e&l» &fOtomatik Olarak %{_adet}% Ürün Satıldı." to player
                        send "&e&l» &fSatılan Ürün Kodu: &e%id of event-item%" to player
                        send "&e&l» &fToplam Gelir: &e%(({fiyatlar::%id of event-item%} * {_adet}))%" to player
                        add (({fiyatlar::%id of event-item%} * {_adet})) to balance of player
Denermisin
hiçbiri olmuyor benimkinde yine bazıları oluyodu yinede saolun yardımınız için
 
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