Witam, próbuje napisać Skrzynie takie jak w CS:GO.
command /t:
trigger:
wait 1 tick
open chest with 6 rows named "&6Skrzynia" to player
wait 1 tick
loop 54 times:
Format slot loop-number -1 of player with 1 of Gray Stained Glass Pane named "&0" to be unstealable
if "%inventory name of player's current inventory%" is "&6Skrzynia":
add 1 diamond to {_Lista.Dropu::*}
add 1 gold ingot to {_Lista.Dropu::*}
if "%inventory name of player's current inventory%" is "&6Skrzynia":
set {_Slot.28} to random element of {_Lista.Dropu::*}
set {_Slot.29} to random element of {_Lista.Dropu::*}
set {_Slot.30} to random element of {_Lista.Dropu::*}
set {_Slot.31} to random element of {_Lista.Dropu::*}
set {_Slot.32} to random element of {_Lista.Dropu::*}
set {_Slot.33} to random element of {_Lista.Dropu::*}
set {_Slot.34} to random element of {_Lista.Dropu::*}
format slot 28 of player with {_Slot.28} to be unstealable
format slot 29 of player with {_Slot.29} to be unstealable
format slot 30 of player with {_Slot.30} to be unstealable
format slot 31 of player with {_Slot.31} to be unstealable
format slot 32 of player with {_Slot.32} to be unstealable
format slot 33 of player with {_Slot.33} to be unstealable
format slot 34 of player with {_Slot.34} to be unstealable
Niestety nie wiem jak kontynuować. Jeśli ktoś mógłby przy okazji ustawić % na dany item, to byłbym mega wdzieczny.
Pytanie
Kozaczekkw 16
Witam, próbuje napisać Skrzynie takie jak w CS:GO.
command /t: trigger: wait 1 tick open chest with 6 rows named "&6Skrzynia" to player wait 1 tick loop 54 times: Format slot loop-number -1 of player with 1 of Gray Stained Glass Pane named "&0" to be unstealable if "%inventory name of player's current inventory%" is "&6Skrzynia": add 1 diamond to {_Lista.Dropu::*} add 1 gold ingot to {_Lista.Dropu::*} if "%inventory name of player's current inventory%" is "&6Skrzynia": set {_Slot.28} to random element of {_Lista.Dropu::*} set {_Slot.29} to random element of {_Lista.Dropu::*} set {_Slot.30} to random element of {_Lista.Dropu::*} set {_Slot.31} to random element of {_Lista.Dropu::*} set {_Slot.32} to random element of {_Lista.Dropu::*} set {_Slot.33} to random element of {_Lista.Dropu::*} set {_Slot.34} to random element of {_Lista.Dropu::*} format slot 28 of player with {_Slot.28} to be unstealable format slot 29 of player with {_Slot.29} to be unstealable format slot 30 of player with {_Slot.30} to be unstealable format slot 31 of player with {_Slot.31} to be unstealable format slot 32 of player with {_Slot.32} to be unstealable format slot 33 of player with {_Slot.33} to be unstealable format slot 34 of player with {_Slot.34} to be unstealableNiestety nie wiem jak kontynuować. Jeśli ktoś mógłby przy okazji ustawić % na dany item, to byłbym mega wdzieczny.
Odnośnik do komentarza
https://skript.pl/temat/34876-skrzynie/Udostępnij na innych stronach
11 odpowiedzi na to pytanie
Rekomendowane odpowiedzi