Bulundu İstek skript

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

mewkie

Zombi Geldi, Beni Yedi
Katılım
3 Ocak 2023
Mesajlar
260
Elmaslar
30
Puan
4.355
Konum
Bursa
Minecraft
Bal10cu

Discord:

bal10cu

arkadaşlar ben birisi görünmezlik içince giydiği zırhı gözükmesin elindeki tutuğu şeyler gözukmesin ve iksir izleri görunmesin istiyorum hani bedwarslarda olurya görünmezlik içince onu istiyorum yapabilirmisiniz pluginde olur.
 
Böyle bir şey yaptım çalışıyor fakat tek sorun oyuncu 5. satırda diğer oyuncular tarafından görülmeyince (bu şekilde zırhı eli vs gözükmez.) diğer oyuncular görünmez olan oyuncuya vuramıyor. Bunu düzeltebilecek biri belki çıkar diye kodu buraya bırakıyorum. Ayrıca ek olarak görünmez oyuncu herhangi bir şekilde damage yerse veya öldürülürse görünmezliği kalkar.
Kod:
on consume of potion of invisibility:
    cancel event
    set {gorunmezlik::%player%} to true
    apply invisibility to player for 60 second
    hide player from all players
    wait 60 second
    reveal the player from all players
    set {gorunmezlik::%player%} to false 
  
on damage of player:
    if {gorunmezlik::%victim%} is true:
        set {gorunmezlik::%victim%} to false
        reveal the victim from all players
        remove invisibility from victim     
      
on death of player:     
    if {gorunmezlik::%victim%} is true:
        set {gorunmezlik::%victim%} to false
        reveal the victim from all players
        remove invisibility from victim
 
Böyle bir şey yaptım çalışıyor fakat tek sorun oyuncu 5. satırda diğer oyuncular tarafından görülmeyince (bu şekilde zırhı eli vs gözükmez.) diğer oyuncular görünmez olan oyuncuya vuramıyor. Bunu düzeltebilecek biri belki çıkar diye kodu buraya bırakıyorum. Ayrıca ek olarak görünmez oyuncu herhangi bir şekilde damage yerse veya öldürülürse görünmezliği kalkar.
Kod:
on consume of potion of invisibility:
    cancel event
    set {gorunmezlik::%player%} to true
    apply invisibility to player for 60 second
    hide player from all players
    wait 60 second
    reveal the player from all players
    set {gorunmezlik::%player%} to false
 
on damage of player:
    if {gorunmezlik::%victim%} is true:
        set {gorunmezlik::%victim%} to false
        reveal the victim from all players
        remove invisibility from victim    
     
on death of player:    
    if {gorunmezlik::%victim%} is true:
        set {gorunmezlik::%victim%} to false
        reveal the victim from all players
        remove invisibility from victim
merhaba çalışıyor ama içtikden sonra iksir silinmiyiyor.
 
merhaba çalışıyor ama içtikden sonra iksir silinmiyiyor.
Kod:
on consume of potion of invisibility:
    remove potion of invisibility from player's inventory
    cancel event
    set {gorunmezlik::%player%} to true
    apply invisibility to player for 60 second
    hide player from all players
    wait 60 second
    reveal the player from all players
    set {gorunmezlik::%player%} to false

on damage of player:
    if {gorunmezlik::%victim%} is true:
        set {gorunmezlik::%victim%} to false
        reveal the victim from all players
        remove invisibility from victim     

on death of player:     
    if {gorunmezlik::%victim%} is true:
        set {gorunmezlik::%victim%} to false
        reveal the victim from all players
        remove invisibility from victim
Artık iksiri içince iksir envanterinden silinecek.
 
Kod:
on consume of potion of invisibility:
    remove potion of invisibility from player's inventory
    cancel event
    set {gorunmezlik::%player%} to true
    apply invisibility to player for 60 second
    hide player from all players
    wait 60 second
    reveal the player from all players
    set {gorunmezlik::%player%} to false

on damage of player:
    if {gorunmezlik::%victim%} is true:
        set {gorunmezlik::%victim%} to false
        reveal the victim from all players
        remove invisibility from victim    

on death of player:    
    if {gorunmezlik::%victim%} is true:
        set {gorunmezlik::%victim%} to false
        reveal the victim from all players
        remove invisibility from victim
Artık iksiri içince iksir envanterinden silinecek.
teşekkur ederim sorun cozulmustur konu kilit.
 
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