[istekler] Envanter ve loop

The_Dark_Brawlers

Kızıltaş Madencisi
Mesajlar
439
En iyi cevaplar
0
Beğeniler
16
Puanları
0
-Envantere girme, item droplama, envanterde esyanin yerini degistirmemeleri için hangi eventi kullanırız
-bir alandaki oyuncuları loopladığımda, loopladığım alanda kimse yoksa, şartını yazabilirz?
 


Son düzenleme:

HKNGLGN

Zombi Katili
Mesajlar
248
En iyi cevaplar
3
Beğeniler
69
Puanları
430
PHP:
on drop:
    if player doesn't have the permissions "item.at":
        cancel event
       
on inventory click:
    if player doesn't have the permissions "envanter.duzenle":
        cancel event
 

GolcuOsman

Kızıltaş Madencisi
Mesajlar
535
En iyi cevaplar
0
Beğeniler
95
Puanları
390
Ruh hali
PHP:
on drop:
    if player doesn't have the permissions "item.at":
        cancel event
      
on inventory click:
    if player doesn't have the permissions "envanter.duzenle":
        cancel event
birde on inventory open diye bir event var
 

The_Dark_Brawlers

Kızıltaş Madencisi
Mesajlar
439
En iyi cevaplar
0
Beğeniler
16
Puanları
0
gözükmeyen ama üstünde yürüyebildiğimiz bloğun numarası kaçtı?
 

The_Dark_Brawlers

Kızıltaş Madencisi
Mesajlar
439
En iyi cevaplar
0
Beğeniler
16
Puanları
0
-bir alandaki oyuncuları loopladığımda, loopladığım alanda kimse yoksa, şartını yazabilirz?
 

Axel102

Hayalet Avcısı
Mesajlar
2,564
En iyi cevaplar
6
Beğeniler
1,002
Puanları
3,390
-bir alandaki oyuncuları loopladığımda, loopladığım alanda kimse yoksa, şartını yazabilirz?
Kod:
loop players in radius 5 of around the player:
 add loop-player to {_l::*}
 if size of {_l::*} is 0:
Kod:
loop players in radius 5 of around the player:
 set {_l} to loop-player
 if {_l} is empty:
Kod:
loop players in radius 5 of around the player:
 set {_l} to amount of loop-player
 if {_l} is less than or equal to 0:
 

The_Dark_Brawlers

Kızıltaş Madencisi
Mesajlar
439
En iyi cevaplar
0
Beğeniler
16
Puanları
0
Kod:
  if {_a} is empty:
   loop blocks in radius 10 around {44.xyz}:
    if loop-block is red Wool or green wool:
     set loop-block to yellow Wool
çalışmıyor?

PHP:
every 1 second:
    loop all players in radius 10 around location at {44.xyz}:
        if loop-entity is player:
            set {_a} to 1
            set {_l} to loop-player
        if {_l} is empty:
            loop blocks in radius 10 around {44.xyz}:
                if loop-block is red Wool or green wool:
                    set loop-block to yellow Wool
        {_a} is 1
        loop all zombies in radius 10 around location at {44.xyz}:
            set {_b} to 1
            loop blocks in radius 10 around {44.xyz}:
                if loop-block is red Wool or yellow wool:
                    set loop-block to green Wool
        {_b} isn't set
        loop blocks in radius 10 around {44.xyz}:
            if loop-block is yellow Wool or green wool:
                set loop-block to red Wool

Guncel: skript hata vermiyor fakat sarı yune dönüşmüyor
 

The_Dark_Brawlers

Kızıltaş Madencisi
Mesajlar
439
En iyi cevaplar
0
Beğeniler
16
Puanları
0
Anliyamadim??

Kod:
loop players in radius 5 of around the player:
add loop-player to {_l::*}
if size of {_l::*} is 0:
Kod:
loop players in radius 5 of around the player:
set {_l} to loop-player
if {_l} is empty:
Kod:
loop players in radius 5 of around the player:
set {_l} to amount of loop-player
if {_l} is less than or equal to 0:
PHP:
every 1 second:
    loop all players in radius 10 around location at {44.xyz}:
        if loop-entity is player:
            set {_a} to 1
            set {_l} to loop-entity
        {_a} is 1
        loop all zombies in radius 10 around location at {44.xyz}:
            set {_b} to 1
            set {zombi.var} to true
            loop blocks in radius 10 around {44.xyz}:
                if loop-block is red Wool or yellow wool:
                    set loop-block to green Wool
        {_b} isn't set
        set {insan.var} to true
        loop blocks in radius 10 around {44.xyz}:
            if loop-block is yellow Wool or green wool:
                set loop-block to red Wool
        {_l} is 0
        delete {zombi.var}
        delete {insan.var}  
        #Sadece insan varsa

every 1 second:
    if {zombi.var} isn't set:
        if {insan.var} isn't set:
            loop blocks in radius 10 around {44.xyz}:
                if loop-block is red Wool or green wool:
                    set loop-block to yellow Wool
yardım edim sabahtan beri uğraşıyorum bir türlü bulamadım

Güncel
 

The_Dark_Brawlers

Kızıltaş Madencisi
Mesajlar
439
En iyi cevaplar
0
Beğeniler
16
Puanları
0
çalışmıyormu bu?
hata vermiyor ama sarı yün olmuyor?

aklıma gelen herşeyi deniyorum BEYİN FIRTINASI
:D

Bilgin yeterli değil ise yardim iste yapalım ^_^
PHP:
every 1 second:
    loop all players in radius 10 around location at {44.xyz}:
        if loop-entity is player:
            set {_a} to 1
            set {_c} to loop-entity
        else:
            set {_a} to 0
        {_a} is 1
        loop all zombies in radius 10 around location at {44.xyz}:
            set {_b} to 1
            set {_c} to 1
            loop blocks in radius 10 around {44.xyz}:
                if loop-block is red Wool or yellow wool:
                    set loop-block to green Wool
        {_b} isn't set
        set {_c} to 1
        loop blocks in radius 10 around {44.xyz}:
            if loop-block is yellow Wool or green wool:
                set loop-block to red Wool
      

every 2 second:
    if {_c} isn't set:
        loop blocks in radius 10 around {44.xyz}:
            if loop-block is red Wool or green wool:
                set loop-block to yellow Wool
ÇALIŞIYOR FAKAT ADAM KIRMIZI YÜNÜN ÜZERİNDE YÜRÜRKEN 2 SANİYEDE BİR YÜNLER SARIYA DÖNÜŞÜP TEKRAR KIRMIZIYA DÖNÜŞÜYOR LÜTFEN YARDIM!
 
Son düzenleme:

Üst