Skript Paylaşımı Bandaj, Sargı Bezi, Antikor | Ayak kırma , Kanama, Zehirlenme

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

kingOf0

"~SimitSu"
Katılım
14 Haziran 2016
Mesajlar
1.057
Elmaslar
746
Puan
16.270
Konum
getPlayer("SimitSu").getLocation()
Minecraft
SimitSu

Discord:

kingOf0!#4055

Z - yeni_logo - Header.png

Merhaba Mc-Tr ailesi, ben @kingOf0. Bu konumda kendi sunucum olan KeepAlive için yazmış olduğum ve artık kullanmadığım skriptlerden biri olan bandaj skriptimi sizinle paylaşmaktayım. Umarım işinize yarar...

KingOf Bandaj?
Hayır, En azından bu seferlik bu skript'in adında kingOf geçmiyor :D
Bu skriptin adı bandaj, evet sadece bandaj.

Bu skript sayesinde sunucunuza bandaj sargıbezi ve antikor ekleyebiliyorsunuz. Eğer zombi sizden bir ısırık alır veya pişmemiş yiyecek yerseniz zehirlenir ve antikor içmeniz gerekir. Eğer kanarsanız(yüksek bir hasar alırasnız) veya yüksekten düşerseniz, sargı bezi ile yaralarınızı sarmanız gerekmektedir.
Eğer canınız sıkıldı veya materyallerinizi boşa mı harcamak veya biraz canınızı yenilemek istiyorsanız bandaj imddanıza yetişir!

Komut
item <sargıbezi|bandaj|antikor> <Adet> <İsim>

Yetki
- admin

Gereksinimler
- Skript
- Skryfall (Title desteği için)

Görseller
1540579112111.png
1540579128187.png
1540579139552.png

1540579175439.png

1540579192654.png

1540579095752.png

1536673117091-png.43731


Skript
Kod:
command /item <text> <int> <player>:
    permission: admin
    trigger:
        if arg-1 is "sargıbezi":
            give arg 2 of paper named "&6Sargı bezi" to arg-3
        else if arg-1 is "bandaj":
            give arg 2 of paper named "&6Bandaj" to arg-3
        else if arg-1 is "antikor":
            give arg 2 of milk named "&6Antikor" to arg-3
           
on damage of player:
    if damage is greater than or equal to victim's health / 4:
        if {zehir::%victim%} isn't set:
            chance of 0.5%:
                apply potion of weakness of tier 2 to the victim for 180 seconds
                apply potion of blindness of tier 1 to the victim for 30 seconds
                apply potion of poison of tier 2 to the victim for 6000 seconds
                apply potion of slowness of tier 1 to the victim for 30 seconds
                set {zehir::%victim%} to 1
                send victim title "&cDikkat!" with subtitle "&aZehirlendin&7, Hemen &6antikor&7 kullanmalısın."

               
    if damage is greater than or equal to victim's health / 3:
        if {kanama::%victim%} isn't set:
   
            chance of 10%:
                wait 1 tick
                if victim is alive:
                    send victim title "&cDikkat!" with subtitle "&7&cKanamaya başladın!&7 hemen &6sargı bezi&7 kullan!"
                    set {kanama::%victim%} to true
   
                    apply potion of weakness of tier 1 to the victim for 60 seconds
                    apply potion of blindness of tier 1 to the victim for 20 seconds
           
    if damage cause is fall:
        if victim's boot's name contains "&6Yasin":
            stop
        if damage is greater than or equal to 2.5:
            if {ayak::%victim%::kirik} isn't set:
                send victim title "&cDikkat!" with subtitle "&7&cAyağını kırdın&7 hemen &6sargı bezi&7 ile ayağını sar!"
                set {ayak::%victim%::kirik} to true
                #apply jump boost -1 to victim for 200000 seconds
                apply weakness 1 to victim for 120 seconds
                set victim's walk speed to 0.05
            else:
                send victim title "&cAyağın kırık" with subtitle "&7olmasına rağmen &cyüksekten düştün&7 bu canını çok yaktı!"
                remove victim's health / 4 from victim's health   
       
           
on respawn:
    # remove Potion Effects from player #skript dev 27^ req
    delete {ayak::%player%::kirik}
    delete {kanama::%player%}
    delete {zehir::%player%}
    set player's walk speed to 0.2
   
on hunger bar change:
    if {ayak::%player%::kirik} is set:
        remove player's health / 5 from player's health
        send player title "&cDikkat!" with subtitle "&7Ayağın kırık olduğu için &ccanın yandı&7."
   

on consume:
    if event-item is rotten flesh or raw chicken or raw rabbit:
        chance of 40%:
            set {zehir::%player%} to true
            apply potion of blindness of tier 1 to the player for 30 seconds
            apply potion of poison of tier 1 to the player for 30 seconds
            apply potion of hunger of tier 2 to the player for 10 seconds
            set {zehir::%player%} to 1
           
            send player title "&cDikkat!" with subtitle "&aZehirlendin&7, Hemen &6antikor&7 kullanmalısın."           
    else if event-item is milk:
        cancel event
        if name of player's tool contains "&6Antikor":
            if {zehir::%player%} is set:
               
                remove weakness from player
                remove blindness from player
                remove poison from player
                remove slowness from player           
                apply regeneration 3 to player for 2 seconds
                delete {zehir::%player%}
                send player title "&cDikkat!" with subtitle "&6Antikor&7'u başarıyla kullandın!"
            else:
                send player title "&cDikkat!" with subtitle "&6Antikor&7'u boşuna harcadın."
            play spell at player's location
            remove event-item from player's inventory
on rightclick with paper:
    if name of player's tool is "&6Bandaj":
        set {_x} to difference between {sargibezi::%player%} and now
        if {_x} is less than 30 seconds:
            set {_y} to "%difference between 30 seconds and {_x}%"
            replace all "seconds" with "saniye" in {_y}
            send player title "&cDikkat!" with subtitle "&7Tekrar &6Bandaj&7 &7kullanmak için %{_y}% beklemelisin!"
       
        else:
            send player title "&cDikkat!" with subtitle "&6Bandaj&7'ı kullanarak biraz canını yeniledin!"
            remove paper named "&6Bandaj" from player's inventory
            apply regeneration 2 to player for 2 seconds           
            set {sargibezi::%player%} to now       
        play spell at player's location
    else if name of player's tool is "&6Sargı bezi":
        if {ayak::%player%::kirik} is set:
            delete {ayak::%player%::kirik}
            apply regeneration 3 to player for 2 seconds
            remove jump boost from player
            send player title "&cDikkat!" with subtitle "&7Ayağını &6sargı bezi&7 ile sardın, artık &adaha iyi&7 hissediyorsun."
            set player's walk speed to 0.2   
        else if {kanama::%player%} is set:
            remove weakness from player
            remove blindness from player
            apply regeneration 3 to player for 2 seconds
            delete {kanama::%player%}
            send player title "&cDikkat!" with subtitle "&7&6Sargı bezi&7 kullandın, artık &adaha iyi&7 hissediyorsun."

        else:
            send player title "&cDikkat!" with subtitle "&6Sargı Bezi&7'ni boşuna harcadın."
        play spell at player's location   
        remove 1 paper named "&6Sargı bezi" from player

Değerli ziyaretçimiz, içeriği görebilmek için şimdi giriş yapın veya kayıt olun.


Z - yeni_logo - Bottom.png
 
Ekli dosyayı görüntüle 48541
Merhaba Mc-Tr ailesi, ben @kingOf0. Bu konumda kendi sunucum olan KeepAlive için yazmış olduğum ve artık kullanmadığım skriptlerden biri olan bandaj skriptimi sizinle paylaşmaktayım. Umarım işinize yarar...

KingOf Bandaj?
Hayır, En azından bu seferlik bu skript'in adında kingOf geçmiyor :D
Bu skriptin adı bandaj, evet sadece bandaj.

Bu skript sayesinde sunucunuza bandaj sargıbezi ve antikor ekleyebiliyorsunuz. Eğer zombi sizden bir ısırık alır veya pişmemiş yiyecek yerseniz zehirlenir ve antikor içmeniz gerekir. Eğer kanarsanız(yüksek bir hasar alırasnız) veya yüksekten düşerseniz, sargı bezi ile yaralarınızı sarmanız gerekmektedir.
Eğer canınız sıkıldı veya materyallerinizi boşa mı harcamak veya biraz canınızı yenilemek istiyorsanız bandaj imddanıza yetişir!

Komut


Yetki
- admin

Gereksinimler
- Skript
- Skryfall (Title desteği için)

Görseller


Skript
Kod:
command /item <text> <int> <player>:
    permission: admin
    trigger:
        if arg-1 is "sargıbezi":
            give arg 2 of paper named "&6Sargı bezi" to arg-3
        else if arg-1 is "bandaj":
            give arg 2 of paper named "&6Bandaj" to arg-3
        else if arg-1 is "antikor":
            give arg 2 of milk named "&6Antikor" to arg-3
          
on damage of player:
    if damage is greater than or equal to victim's health / 4:
        if {zehir::%victim%} isn't set:
            chance of 0.5%:
                apply potion of weakness of tier 2 to the victim for 180 seconds
                apply potion of blindness of tier 1 to the victim for 30 seconds
                apply potion of poison of tier 2 to the victim for 6000 seconds
                apply potion of slowness of tier 1 to the victim for 30 seconds
                set {zehir::%victim%} to 1
                send victim title "&cDikkat!" with subtitle "&aZehirlendin&7, Hemen &6antikor&7 kullanmalısın."

              
    if damage is greater than or equal to victim's health / 3:
        if {kanama::%victim%} isn't set:
  
            chance of 10%:
                wait 1 tick
                if victim is alive:
                    send victim title "&cDikkat!" with subtitle "&7&cKanamaya başladın!&7 hemen &6sargı bezi&7 kullan!"
                    set {kanama::%victim%} to true
  
                    apply potion of weakness of tier 1 to the victim for 60 seconds
                    apply potion of blindness of tier 1 to the victim for 20 seconds
          
    if damage cause is fall:
        if victim's boot's name contains "&6Yasin":
            stop
        if damage is greater than or equal to 2.5:
            if {ayak::%victim%::kirik} isn't set:
                send victim title "&cDikkat!" with subtitle "&7&cAyağını kırdın&7 hemen &6sargı bezi&7 ile ayağını sar!"
                set {ayak::%victim%::kirik} to true
                #apply jump boost -1 to victim for 200000 seconds
                apply weakness 1 to victim for 120 seconds
                set victim's walk speed to 0.05
            else:
                send victim title "&cAyağın kırık" with subtitle "&7olmasına rağmen &cyüksekten düştün&7 bu canını çok yaktı!"
                remove victim's health / 4 from victim's health  
      
          
on respawn:
    # remove Potion Effects from player #skript dev 27^ req
    delete {ayak::%player%::kirik}
    delete {kanama::%player%}
    delete {zehir::%player%}
    set player's walk speed to 0.2
  
on hunger bar change:
    if {ayak::%player%::kirik} is set:
        remove player's health / 5 from player's health
        send player title "&cDikkat!" with subtitle "&7Ayağın kırık olduğu için &ccanın yandı&7."
  

on consume:
    if event-item is rotten flesh or raw chicken or raw rabbit:
        chance of 40%:
            set {zehir::%player%} to true
            apply potion of blindness of tier 1 to the player for 30 seconds
            apply potion of poison of tier 1 to the player for 30 seconds
            apply potion of hunger of tier 2 to the player for 10 seconds
            set {zehir::%player%} to 1
          
            send player title "&cDikkat!" with subtitle "&aZehirlendin&7, Hemen &6antikor&7 kullanmalısın."          
    else if event-item is milk:
        cancel event
        if name of player's tool contains "&6Antikor":
            if {zehir::%player%} is set:
              
                remove weakness from player
                remove blindness from player
                remove poison from player
                remove slowness from player          
                apply regeneration 3 to player for 2 seconds
                delete {zehir::%player%}
                send player title "&cDikkat!" with subtitle "&6Antikor&7'u başarıyla kullandın!"
            else:
                send player title "&cDikkat!" with subtitle "&6Antikor&7'u boşuna harcadın."
            play spell at player's location
            remove event-item from player's inventory
on rightclick with paper:
    if name of player's tool is "&6Bandaj":
        set {_x} to difference between {sargibezi::%player%} and now
        if {_x} is less than 30 seconds:
            set {_y} to "%difference between 30 seconds and {_x}%"
            replace all "seconds" with "saniye" in {_y}
            send player title "&cDikkat!" with subtitle "&7Tekrar &6Bandaj&7 &7kullanmak için %{_y}% beklemelisin!"
      
        else:
            send player title "&cDikkat!" with subtitle "&6Bandaj&7'ı kullanarak biraz canını yeniledin!"
            remove paper named "&6Bandaj" from player's inventory
            apply regeneration 2 to player for 2 seconds          
            set {sargibezi::%player%} to now      
        play spell at player's location
    else if name of player's tool is "&6Sargı bezi":
        if {ayak::%player%::kirik} is set:
            delete {ayak::%player%::kirik}
            apply regeneration 3 to player for 2 seconds
            remove jump boost from player
            send player title "&cDikkat!" with subtitle "&7Ayağını &6sargı bezi&7 ile sardın, artık &adaha iyi&7 hissediyorsun."
            set player's walk speed to 0.2  
        else if {kanama::%player%} is set:
            remove weakness from player
            remove blindness from player
            apply regeneration 3 to player for 2 seconds
            delete {kanama::%player%}
            send player title "&cDikkat!" with subtitle "&7&6Sargı bezi&7 kullandın, artık &adaha iyi&7 hissediyorsun."

        else:
            send player title "&cDikkat!" with subtitle "&6Sargı Bezi&7'ni boşuna harcadın."
        play spell at player's location  
        remove 1 paper named "&6Sargı bezi" from player

Değerli ziyaretçimiz, içeriği görebilmek için şimdi giriş yapın veya kayıt olun.


Bir King0f klasiği...
 
Tamam güzelde ne için bu çözmedim
 
Şahane, süper, hyper, doruklarda, inanılmaz, efsanevi....

Ellerine sağlık skript kullansaydım işe yarardı ama kullananlar için mükemmel!
 
Güzel olmuş eline sağlık. Skript mantığı da güzel :D
 
Güzel bir skript olmuş ;).
 
Yeni serverimde kullanacağım güzelmiş.
 
Çalabilirdim , çalmadım . Dikkat et ! Üstadım :D
 
Eline sağlık güzel olmuş . Başarılar
 
Bu skript bir efsane ! omg
 
Güzel bir skript olmuş ;).
Bu skript bir efsane ! omg
Eline sağlık güzel olmuş . Başarılar
Çalabilirdim , çalmadım . Dikkat et ! Üstadım :D
Yeni serverimde kullanacağım güzelmiş.

Fikirlerinizi belirttiğiniz için teşekkürler, rica ederim afiyet olsun.
 
Süper, senden başka ne beklenir ki :D
 
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