Parsed Vaults, Sanal sandıklar ve Arama seçeneği

Mr_Obliviate

Play.BlokDunyasi.Net
Mesajlar
1,002
En iyi cevaplar
18
Beğeniler
749
Puanları
1,480
Ruh hali
120116



120117



120118



120115

Kod:
options:
    V: Vault
command /pv [<int>] [<text>]:
    trigger:
        arg 1 is set:
            arg 1 is not between 1 and 53:
                send "&cÜzgünüm, 1 ve 53 arasında bir rakam belirtmelisin."
            else:
                open virtual chest named "{@V} ##%arg 1%" with size 6 to player
                set {_n} to 0
                loop {Vaults::%player%::%arg 1%::*}:
                    set slot {_n} of player's current inventory to loop-value
                    add 1 to {_n}
        else:
            open virtual chest named "{@V}" with size 6 to player
            make gui slot 0 of player with compass named "&6&nArama yap" to run:
                close player's inventory
                send "&7Arama yapacağın kelimeleri sohbet penceresine yaz."
                set {chatGetinfo::%player%} to "Search"
            loop 53 times:
                add 1 to {_n}
                make gui slot {_n} of player with {_n} of chest named "&e&n{@V} ##%{_n}%" with lore "&fAçmak için tıkla" to run:
                    execute player command "pv %{_n}%"
on chat:
    {chatGetinfo::%player%} is "Search":
        cancel event
        delete {chatGetinfo::%player%}
        send "&7Aranıyor.."
        set {_n} to 1
        loop 53 times:
            loop {Vaults::%player%::%{_n}%::*}:
                size of {_results::*} is 53:
                    continue
                set {_dividedNames::*} to split "%loop-value-2%" at " "
                "%{_dividedNames::*}%" contains message:
                    add loop-value-2 to {_results::*}
                    set {_numberR} to size of {_results::*}
                    set {_resultsInfo::%{_numberR}%} to {_n}
             
            add 1 to {_n}
        set {_n} to 0
        open virtual chest named "Arama sonuçları" with size 6 to player
        loop {_results::*}:
            make gui slot {_n} of player with loop-value with lore "&f&n{@V}&7: %{_resultsInfo::%loop-index%}%"
            add 1 to {_n}
        send "&7Bulundu."
on inventory close:
    name of player's current inventory contains "{@V}":
        set {_name} to name of player's current inventory
        replace all "{@V} ##" with "" in {_name}
        delete {Vaults::%player%::%{_name}%::*}
        loop all items in player's current inventory:
            add loop-item to {Vaults::%player%::%{_name}%::*}



Dilediğiniz gibi kullanabilirsiniz, paylaşabilirsiniz.
 


Son düzenleme:

_CSK_

Taş Madencisi
Mesajlar
87
En iyi cevaplar
0
Beğeniler
46
Puanları
360
Ruh hali
sadece fotoğrafları atmak yerine keşke birkaç cümle de açıklama yazsaydın arama olayının mantığını anlamadım çalışma prensibi ne
 

Üst