Mógłby mi ktoś zedytować ten skrypt nie używał WildSkript'a, ponieważ go nie umiem ogarnąć!
Spoiler
On Script Load:
set {_inv} to "&6Monety"
new Inventory {_inv}
{_inv}.Inventory.setRow{1};
{_inv}.Inventory.setItem{1, diamond sword };
{_inv}.Inventory.setLore{1, "&l&3Miecz Sharpnes 6, Fire Aspect 2"};
{_inv}.Inventory.setExecutor{1, "player"};
{_inv}.Inventory.setCommand{1, "kupitem 1"};
{_inv}.Inventory.setCancelled{1, true};
{_inv}.Inventory.setClosed{1, true};
{_inv}.Inventory.setItem{2, diamond pickaxe};
{_inv}.Inventory.setLore{2, "&l&6Kilof &4Efficiency 6, Unbreaking 3, Fortune 3"};
{_inv}.Inventory.setExecutor{2, "player"};
{_inv}.Inventory.setCommand{2, "kupitem 2"};
{_inv}.Inventory.setCancelled{2, true};
{_inv}.Inventory.setClosed{2, true};
{_inv}.Inventory.setItem{3, diamond helmet};
{_inv}.Inventory.setLore{3, "&l&6Pelen set &2Protection 5, Unbreaking 3"};
{_inv}.Inventory.setExecutor{3, "player"};
{_inv}.Inventory.setCommand{3, "kupitem 3"};
{_inv}.Inventory.setCancelled{3, true};
{_inv}.Inventory.setClosed{3, true};
{_inv}.Inventory.setItem{4, beacon};
{_inv}.Inventory.setLore{4, "&l&7Beacon"};
{_inv}.Inventory.setExecutor{4, "player"};
{_inv}.Inventory.setCommand{4, "kupitem 4"};
{_inv}.Inventory.setCancelled{4, true};
{_inv}.Inventory.setClosed{4, true};
variables:
{monety.ilosc.%player%} = 0
on first join:
set {monety.ilosc.%player%} to 0
command /monety:
trigger:
send " " to player
send "&aStan twojego konta&7: &e%{monety.ilosc.%player%}%" to player
command /pmonety:
trigger:
send " " to player
send " " to player
send "&6MONETY mozesz zdobyc dzieki zabiciu gracza - 5monet lub stracic 2monety za smierc!" to player
send " /monety - sprawdzasz ilosc posiadanych monety" to player
send " /wymienmonety - wymianiasz swoje monety na ekwipunek" to player
send " /autor - informacje o autorze monet" to player
command /wymienmonety:
trigger:
set {_inv} to "&6Monety"
{_inv}.Inventory.display{player};
command /kupitem [<number>]:
trigger:
if arg 1 is 1:
if {monety.ilosc.%player%} is greater than or equal to 125:
remove 200 from {monety.ilosc.%player%}
give a diamond sword of sharpness 6 and Fire Aspect 2 to the player
display "&aKupiles miecz 6/2" on bossbar with 100 percent by 3 seconds for player
else:
display "&cNie masz 125monet" on bossbar with 50 percent by 1 seconds for player
else if arg 1 is 2:
if {monety.ilosc.%player%} is greater than or equal to 50:
remove 50 from {monety.ilosc.%player%}
give a diamond pickaxe of efficiency 6 and unbreaking 3 and fortune 3 to the player
display "&aKupiles kilof 6/3/3" on bossbar with 100 percent by 3 seconds for player
else:
display "&cNie masz 50monet" on bossbar with 50 percent by 1 seconds for player
else if arg 1 is 3:
if {monety.ilosc.%player%} is greater than or equal to 100:
remove 100 from {monety.ilosc.%player%}
give a diamond helmet of protection 5 and unbreaking 3 to the player
give a diamond chestplate of protection 5 and unbreaking 3 to the player
give a diamond leggings of protection 5 and unbreaking 3 to the player
give a diamond boots of protection 5 and unbreaking 3 to the player
display "&aKupiles pelen set 5/3" on bossbar with 100 percent by 3 seconds for player
else:
display "&cNie masz 100monet" on bossbar with 50 percent by 1 seconds for player
else if arg 1 is 4:
if {monety.ilosc.%player%} is greater than or equal to 1000:
remove 1000 from {monety.ilosc.%player%}
give a beacon to the player
display "&aKupiles beacon!" on bossbar with 100 percent by 3 seconds for player
else:
display "&cNie masz 1000monet" on bossbar with 50 percent by 1 seconds for player
on death:
if attacker is player:
if victim is player:
add 5 to {monety.ilosc.%attacker%}
remove 2 from {monety.ilosc.%victim%}
send "&aZyskales 5 monet za zabicie &6%victim% &a" to attacker
send "&aStraciles 2 monete za smierc" to victim
Pytanie
xPysia 0
Mógłby mi ktoś zedytować ten skrypt nie używał WildSkript'a, ponieważ go nie umiem ogarnąć!
Odnośnik do komentarza
Udostępnij na innych stronach
2 odpowiedzi na to pytanie
Rekomendowane odpowiedzi