Witam! Mam pytanie. Bo napisałem skript na limit koxów refów i pereł. Wszystko fajnie działa jak grac podnosi te koxy to one ida do Depozytu odrazu! Lecz gdy gracz wyplaci z depozytu koxy to mu dodaje koxy ale juz ich nie usunie i ma się tam wiecej koxów niż 4 i gracz może je jeść
KOD:
on pick up enchanted golden apple:
wait 7 ticks
if player has 5 enchanted golden apple:
send "&8» &7Maksymalna ilosc koxow to 4 reszte dodano do depozytu!" to player
loop 128 times:
if player has 5 enchanted golden apple:
remove 1 enchanted golden apple from player's inventory
add 1 to {depo.koxy.%player%}
stop
on pick up of 322:0:
wait 7 ticks
if player has 20 322:0:
send "&8» &7Maksymalna ilosc refili to 19 reszte dodano do depozytu!" to player
loop 128 times:
if player has 20 322:0:
remove 1 322:0 from player's inventory
add 1 to {depo.refy.%player%}
on pick up of ender pearl:
wait 7 ticks
if player has 3 ender pearl:
send "&8» &7Maksymalna ilosc perel to 3 reszte dodano do depozytu!" to player
loop 64 times:
if player has 1 ender pearl:
remove 1 ender pearl from player's inventory
add 1 to {depo.perly.%player%}
stop
Chcę zeby zabierało koxy kiedy wyplaci i kiedy podnosci!
Pytanie
qitZ 1
Witam! Mam pytanie. Bo napisałem skript na limit koxów refów i pereł. Wszystko fajnie działa jak grac podnosi te koxy to one ida do Depozytu odrazu! Lecz gdy gracz wyplaci z depozytu koxy to mu dodaje koxy ale juz ich nie usunie i ma się tam wiecej koxów niż 4 i gracz może je jeść
KOD:
on pick up enchanted golden apple:
wait 7 ticks
if player has 5 enchanted golden apple:
send "&8» &7Maksymalna ilosc koxow to 4 reszte dodano do depozytu!" to player
loop 128 times:
if player has 5 enchanted golden apple:
remove 1 enchanted golden apple from player's inventory
add 1 to {depo.koxy.%player%}
stop
on pick up of 322:0:
wait 7 ticks
if player has 20 322:0:
send "&8» &7Maksymalna ilosc refili to 19 reszte dodano do depozytu!" to player
loop 128 times:
if player has 20 322:0:
remove 1 322:0 from player's inventory
add 1 to {depo.refy.%player%}
on pick up of ender pearl:
wait 7 ticks
if player has 3 ender pearl:
send "&8» &7Maksymalna ilosc perel to 3 reszte dodano do depozytu!" to player
loop 64 times:
if player has 1 ender pearl:
remove 1 ender pearl from player's inventory
add 1 to {depo.perly.%player%}
stop
Chcę zeby zabierało koxy kiedy wyplaci i kiedy podnosci!
Odnośnik do komentarza
Udostępnij na innych stronach
1 odpowiedź na to pytanie
Rekomendowane odpowiedzi