variables:
{honor::%player%} = 0
on rightclick on entity:
if entity's name is "&9&lSezon Walki":
if {lvl::%player%} is bigger than or equal to 50:
open chest with 3 rows named "Sezon Walk" to player
wait 1 tick
loop 27 times:
set player's current inventory's slot ((loop-number -1)) to gray glass pane named " "
wait 1 tick
set player's current inventory's slot 13 to paper named "&8-{ &cO co chodzi? &8}-" with lore "&8» &7Zabijajac graczy dostajesz honor||&8» &6Zaczynasz majac 0 pkt honoru||&8» &3Honor dodaje krytyk, obrone, sile &8(&3+3%% za kazde 100 pkt honoru&8)||&8» &9Sa to randomowe liczby &8(&9za zabicie dostajesz 1-3 pkt&8)||&8» &5Maxymalna ilosc punktow to 1000||&8» &2Twoje punkty &8» &a%shadowNumber({honor::%player%})%"
else:
send "&8» &cZdobadz poziom 50!" to player
stop
on inventory click:
if inventory name of current inventory of player is "Sezon Walk":
cancel event
stop
on death:
if attacker is a player:
if victim is a player:
if {honor::%attacker%} is not bigger than 1000:
set {_a} to random integer between 1 and 3
add {_a} to {honor::%attacker%}
send "&8» &9Zdobyto: &a+%{_a}% &9honoru" to attacker
stop
else:
set {honor::%attacker%} to 1000
stop
Pytanie
Karol123123123 16
Siema! Dalby rade ktos to naprawic? W gui pokazuje sie tylko szklo (cale gui jest wypelnione szklem a nie powinno tak byc) 1.8.8, skellet, paperspigot
https://imgur.com/a/KDktdp6
variables: {honor::%player%} = 0 on rightclick on entity: if entity's name is "&9&lSezon Walki": if {lvl::%player%} is bigger than or equal to 50: open chest with 3 rows named "Sezon Walk" to player wait 1 tick loop 27 times: set player's current inventory's slot ((loop-number -1)) to gray glass pane named " " wait 1 tick set player's current inventory's slot 13 to paper named "&8-{ &cO co chodzi? &8}-" with lore "&8» &7Zabijajac graczy dostajesz honor||&8» &6Zaczynasz majac 0 pkt honoru||&8» &3Honor dodaje krytyk, obrone, sile &8(&3+3%% za kazde 100 pkt honoru&8)||&8» &9Sa to randomowe liczby &8(&9za zabicie dostajesz 1-3 pkt&8)||&8» &5Maxymalna ilosc punktow to 1000||&8» &2Twoje punkty &8» &a%shadowNumber({honor::%player%})%" else: send "&8» &cZdobadz poziom 50!" to player stop on inventory click: if inventory name of current inventory of player is "Sezon Walk": cancel event stop on death: if attacker is a player: if victim is a player: if {honor::%attacker%} is not bigger than 1000: set {_a} to random integer between 1 and 3 add {_a} to {honor::%attacker%} send "&8» &9Zdobyto: &a+%{_a}% &9honoru" to attacker stop else: set {honor::%attacker%} to 1000 stop
Edytowane przez xNightPower_Umieszczam kod w code.
Odnośnik do komentarza
https://skript.pl/temat/44996-honor/Udostępnij na innych stronach
1 odpowiedź na to pytanie
Rekomendowane odpowiedzi
Dołącz do dyskusji
Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.