Skript Paylaşımı Kitaplı oyuncu istatistiği

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

_OnePage_

Cehennem Yükleniyor - %89
Katılım
16 Ocak 2020
Mesajlar
1.224
Elmaslar
835
Puan
14.075
Minecraft
_OnePage_

Discord:

OnePage#1881

Skript kısaca oyuncu istatistiklerini gösteriyor kitap gibi komutu /istatistik dilerseniz değiştirebilirsiniz

Kod:
command /istatistik:
    trigger:
        set {_book} to a new written book
        set {_text} to a new text component with "   &4&lISTATISTIKLER%nl%%nl%   &nGenel istatistik%nl%%nl%&8İsim: &c%player%%nl%&8level: &c%level of player%%nl%&8Xp: &c%xp of player%%nl%&8Bakiye: &4%player's money%%nl%&7Mesaj sayısı: &4%{istatistik::%player%::mesajsayı} otherwise ""0""%"
        add text component {_text} to book {_book}
        set {_this} to a new text component with "   &4&lISTATISTIKLER%nl%%nl%  &nÖldürme istatistiği%nl%%nl%&8Ölme: &c%{istatistik::%player%::olme} otherwise ""0""%%nl%&6Oyuncu öldürme: &c%{istatistik::%player%::playeroldurme} otherwise ""0""%%nl%%nl%&8Canavar öldürme: &c%{istatistik::%player%::monsteroldurme} otherwise ""0""%%nl%&8Pasif mob öldürme: &c%{istatistik::%player%::pasifoldurme} otherwise ""0""%"
        add text component {_this} to book {_book}
        set {_text} to a new text component with "   &4&lISTATISTIKLER%nl%%nl%   &nBlok istatistiği%nl%%nl%&8Blok kırma: &c%{istatistik::%player%::blockkırma} otherwise ""0""%%nl%&8Blok koyma: &c%{istatistik::%player%::blockkoyma} otherwise ""0""%"
        add text component {_text} to book {_book}
        open book {_book} to player  
on chat:
    add 1 to {istatistik::%player%::mesajsayı}

on death of player:
    add 1 to {istatistik::%victim%::olme}
    attacker is player:
        add 1 to {istatistik::%attacker%::playeroldurme}
on place:
    add 1 to {istatistik::%player%::blockkoyma}
on break:
    add 1 to {istatistik::%player%::blockkırma}  

on death:
    attacker is player
    victim is monster:
        add 1 to {istatistik::%attacker%::monsteroldurme}
    else if victim isn't player:
        add 1 to {istatistik::%attacker%::pasifoldurme}
Screenshot_27.png

Screenshot_28.png


Screenshot_29.png
 
Son düzenleme:
Skript kısaca oyuncu istatistiklerini gösteriyor kitap gibi komutu /istatistik dilerseniz değiştirebilirsiniz

Kod:
command /istatistik:
    trigger:
        set {_book} to a new written book
        set {_text} to a new text component with "   &4&lISTATISTIKLER%nl%%nl%   &nGenel istatistik%nl%%nl%&8İsim: &c%player%%nl%&8level: &c%level of player%%nl%&8Xp: &c%xp of player%%nl%&8Bakiye: &4%player's money%%nl%&7Mesaj sayısı: &4%{istatistik::%player%::mesajsayı} otherwise ""0""%"
        add text component {_text} to book {_book}
        set {_this} to a new text component with "   &4&lISTATISTIKLER%nl%%nl%  &nÖldürme istatistiği%nl%%nl%&8Ölme: &c%{istatistik::%player%::olme} otherwise ""0""%%nl%&6Oyuncu öldürme: &c%{istatistik::%player%::playeroldurme} otherwise ""0""%%nl%%nl%&8Canavar öldürme: &c%{istatistik::%player%::monsteroldurme} otherwise ""0""%%nl%&8Pasif mob öldürme: &c%{istatistik::%player%::pasifoldurme} otherwise ""0""%"
        add text component {_this} to book {_book}
        set {_text} to a new text component with "   &4&lISTATISTIKLER%nl%%nl%   &nBlok istatistiği%nl%%nl%&8Block kırma: &c%{istatistik::%player%::blockkırma} otherwise ""0""%%nl%&8Block koyma: &c%{istatistik::%player%::blockkoyma} otherwise ""0""%"
        add text component {_text} to book {_book}
        open book {_book} to player  
on chat:
    add 1 to {istatistik::%player%::mesajsayı}

on death of player:
    add 1 to {istatistik::%victim%::olme}
    attacker is player:
        add 1 to {istatistik::%attacker%::playeroldurme}
on place:
    add 1 to {istatistik::%player%::blockkoyma}
on break:
    add 1 to {istatistik::%player%::blockkırma}  

on death:
    attacker is player
    victim is monster:
        add 1 to {istatistik::%attacker%::monsteroldurme}
    else if victim isn't player:
        add 1 to {istatistik::%attacker%::pasifoldurme}
Ekli dosyayı görüntüle 152280
Ekli dosyayı görüntüle 152281

Ekli dosyayı görüntüle 152282
Şirin ben bunu deluxemenüye eklemiştim bunu kullanabilirim teşekkürler.
 
İstatistikleri değişkenden değil Bukkit'ten çeksen 1298192 kat daha iyi olurdu. Block kırma yerine blok kırma yazarsan daha şeqil durur.

Kitap kullanımını gösteren pek konu yok o yüzden bu konuya bir elmas fırlatabilirim.
 
İstatistikleri değişkenden değil Bukkit'ten çeksen 1298192 kat daha iyi olurdu. Block kırma yerine blok kırma yazarsan daha şeqil durur.

Kitap kullanımını gösteren pek konu yok o yüzden bu konuya bir elmas fırlatabilirim.
Teşekkür ederim bukkitden çekmeyi araştırıyordum bende tam ileride skripti düzenleyebilirim
 
Kod:
import:
    org.bukkit.Statistic
function formattedTime(süre: number) :: String:
    set {_süre} to floor({_süre}/20)
    set {_gün} to floor({_süre}/86400)
    set {_saat} to floor(mod({_süre},86400)/3600)
    set {_dakika} to floor(mod({_süre},3600)/60)
    set {_saniye} to floor(mod({_süre},60))
    return "%{_gün}% gün %{_saat}% saat %{_dakika}%dk %{_saniye}%sn"
function formattedNumber(n:number) :: String:
    {_n} < 1000:
        return "%{_n}%"
    else if {_n} > 1000000000:
        return "%{_n}/1000000000%Mr"
    else if {_n} > 1000000:
        return "%{_n}/1000000%Mn"
    else if {_n} > 1000:
        return "%{_n}/1000%B"
#player.getStatistic(Statistic.PLAYER_KILLS)
#formattedTime(player.getStatistic(Statistic.PLAY_ONE_TICK))
 
RPG sunucuları için hava katan güzel birşey diyecegim ama türk rpg sunucusu yok D: çok güzel beğendim eline sağlık.
 
Skript kısaca oyuncu istatistiklerini gösteriyor kitap gibi komutu /istatistik dilerseniz değiştirebilirsiniz

Kod:
command /istatistik:
    trigger:
        set {_book} to a new written book
        set {_text} to a new text component with "   &4&lISTATISTIKLER%nl%%nl%   &nGenel istatistik%nl%%nl%&8İsim: &c%player%%nl%&8level: &c%level of player%%nl%&8Xp: &c%xp of player%%nl%&8Bakiye: &4%player's money%%nl%&7Mesaj sayısı: &4%{istatistik::%player%::mesajsayı} otherwise ""0""%"
        add text component {_text} to book {_book}
        set {_this} to a new text component with "   &4&lISTATISTIKLER%nl%%nl%  &nÖldürme istatistiği%nl%%nl%&8Ölme: &c%{istatistik::%player%::olme} otherwise ""0""%%nl%&6Oyuncu öldürme: &c%{istatistik::%player%::playeroldurme} otherwise ""0""%%nl%%nl%&8Canavar öldürme: &c%{istatistik::%player%::monsteroldurme} otherwise ""0""%%nl%&8Pasif mob öldürme: &c%{istatistik::%player%::pasifoldurme} otherwise ""0""%"
        add text component {_this} to book {_book}
        set {_text} to a new text component with "   &4&lISTATISTIKLER%nl%%nl%   &nBlok istatistiği%nl%%nl%&8Blok kırma: &c%{istatistik::%player%::blockkırma} otherwise ""0""%%nl%&8Blok koyma: &c%{istatistik::%player%::blockkoyma} otherwise ""0""%"
        add text component {_text} to book {_book}
        open book {_book} to player 
on chat:
    add 1 to {istatistik::%player%::mesajsayı}

on death of player:
    add 1 to {istatistik::%victim%::olme}
    attacker is player:
        add 1 to {istatistik::%attacker%::playeroldurme}
on place:
    add 1 to {istatistik::%player%::blockkoyma}
on break:
    add 1 to {istatistik::%player%::blockkırma} 

on death:
    attacker is player
    victim is monster:
        add 1 to {istatistik::%attacker%::monsteroldurme}
    else if victim isn't player:
        add 1 to {istatistik::%attacker%::pasifoldurme}
Ekli dosyayı görüntüle 152280
Ekli dosyayı görüntüle 152281

Ekli dosyayı görüntüle 152282
Dün çalışmamasına karşın interactivebooks kullandım dahada güzelmiş :D ama başarılı
 
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