on rightclick with chest:
if player's tool is chest named "&dSlaba Wielkanocna Skrzynia":
remove 1 chest named "&dSlaba Wielkanocna Skrzynia" from player's inventory
set {%player%.skrzynia.i} to random integer from 1 to 10
if {%player%.skrzynia.i} is 1
add 1 diamond helmet of protection 100 and thorns 25 named "&dWielkanocny Helm" to player's inventory
if {%player%.skrzynia.i} is 2
add 1 diamond helmet of protection 100 and thorns 25 named "&dWielkanocna Klata" to player's inventory
if {%player%.skrzynia.i} is 3
add 1 diamond helmet of protection 100 and thorns 25 named "&dWielkanocne Spodnie" to player's inventory
if {%player%.skrzynia.i} is 4
add 1 diamond helmet of protection 100 and thorns 25 named "&dWielkanocne Buty" to player's inventory
if {%player%.skrzynia.i} is 5
add 1 diamond helmet of protection 100 and thorns 25 named "&dWielkanocny Helm" to player's inventory
if {%player%.skrzynia.i} is 6
add 1 diamond helmet of protection 100 and thorns 25 named "&dWielkanocny Helm" to player's inventory
if {%player%.skrzynia.i} is 7
add 1 diamond helmet of protection 100 and thorns 25 named "&dWielkanocny Helm" to player's inventory
if {%player%.skrzynia.i} is 8
add 1 diamond helmet of protection 100 and thorns 25 named "&dWielkanocny Helm" to player's inventory
if {%player%.skrzynia.i} is 9
add 1 diamond helmet of protection 100 and thorns 25 named "&dWielkanocny Helm" to player's inventory
if {%player%.skrzynia.i} is 10
add 1 diamond helmet of protection 100 and thorns 25 named "&dWielkanocny Helm" to player's inventory
Chodzi o to, że chcę dodać żeby była szansa procentowa na każdy z itemów, np 11% na dropniecie 1 przedmiotu, 20% na dropniecie 2 przedmiotu, 1% na dropniecie 10 przedmiotu, żeby nie było losowe pomiędzy od 1 do 10.
Pytanie
Koksiak 0
Witam
Mam problem z tym oto skryptem.
on rightclick with chest: if player's tool is chest named "&dSlaba Wielkanocna Skrzynia": remove 1 chest named "&dSlaba Wielkanocna Skrzynia" from player's inventory set {%player%.skrzynia.i} to random integer from 1 to 10 if {%player%.skrzynia.i} is 1 add 1 diamond helmet of protection 100 and thorns 25 named "&dWielkanocny Helm" to player's inventory if {%player%.skrzynia.i} is 2 add 1 diamond helmet of protection 100 and thorns 25 named "&dWielkanocna Klata" to player's inventory if {%player%.skrzynia.i} is 3 add 1 diamond helmet of protection 100 and thorns 25 named "&dWielkanocne Spodnie" to player's inventory if {%player%.skrzynia.i} is 4 add 1 diamond helmet of protection 100 and thorns 25 named "&dWielkanocne Buty" to player's inventory if {%player%.skrzynia.i} is 5 add 1 diamond helmet of protection 100 and thorns 25 named "&dWielkanocny Helm" to player's inventory if {%player%.skrzynia.i} is 6 add 1 diamond helmet of protection 100 and thorns 25 named "&dWielkanocny Helm" to player's inventory if {%player%.skrzynia.i} is 7 add 1 diamond helmet of protection 100 and thorns 25 named "&dWielkanocny Helm" to player's inventory if {%player%.skrzynia.i} is 8 add 1 diamond helmet of protection 100 and thorns 25 named "&dWielkanocny Helm" to player's inventory if {%player%.skrzynia.i} is 9 add 1 diamond helmet of protection 100 and thorns 25 named "&dWielkanocny Helm" to player's inventory if {%player%.skrzynia.i} is 10 add 1 diamond helmet of protection 100 and thorns 25 named "&dWielkanocny Helm" to player's inventoryChodzi o to, że chcę dodać żeby była szansa procentowa na każdy z itemów, np 11% na dropniecie 1 przedmiotu, 20% na dropniecie 2 przedmiotu, 1% na dropniecie 10 przedmiotu, żeby nie było losowe pomiędzy od 1 do 10.
Odnośnik do komentarza
https://skript.pl/temat/28946-skrypt-na-skrzynie/Udostępnij na innych stronach
4 odpowiedzi na to pytanie
Rekomendowane odpowiedzi