Skocz do zawartości
  • 0

Poprawa skryptu na pisanki ze stone


Pytanie

Witam, zalączam tutaj kod dropu pisanek ze stona,ale cos nie dziala prosze o pomoc :)

 

on break of stone:
    chance of 5%:
        give 383:98 named "&e&o:: &c&oPisanka &e&o::" with lore "&d&oKliknij PPM Aby Otworzyc Pisanke." to player
                send "&6&oWykopales: &b&oPisanke!."
        stop
on rightclick with 383:98:
    if name of player's tool is "&e&o:: &c&oPisanka &e&o::":
        cancel event
        remove 383:98 named "&e&o:: &c&oPisanka &e&o::" from player
        add diamond sword of unbreaking 1000, efficiency 5 named "&6Pisankowy miecz!" to {_gift::*}
        add 16 diamond to {_gift::*}
        loop 1000 times:
            loop {_gift::*}:
                chance of 10%:
                    set {_gift} to loop-value
                    exit loop
            if {_gift} is set:
                exit loop
        send "&cDostales: %{_gift}%"
        give {_gift} to player

Poprawiam tytuł //xVendrome

Odnośnik do komentarza
https://skript.pl/temat/17373-poprawa-skryptu-na-pisanki-ze-stone/
Udostępnij na innych stronach

4 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
on mine of stone:
    chance of 50%:
        give 1 egg of unbreaking 1 named "&b&lPisanka" to player

variables:
    {i.skrzynia.%player%} = 1

on rightclick with egg:
    if name of player's tool is "&b&lPisanka":
        remove 1 egg named "&b&lPisanka" from player's inventory
        clear {i.skrzynia.%player%}
        set {i.skrzynia.%player%} to a random integer from 1 to 15
        if {i.skrzynia.%player%} is 1:
            add 5 sunflower of unbreaking 1 named "&6&lZlota Moneta" to player
        if {i.skrzynia.%player%} is 2:
            add 10 sunflower named "&3&lMoneta" to player
        if {i.skrzynia.%player%} is 3:
            add 1 gold ingot of unbreaking 10 named "&6&lStarozytne Zloto" to player
        if {i.skrzynia.%player%} is 4:
            add 1 stone sword of unbreaking 30, sharpness 25 named "&5&lMiecz Enderowego Lowcy" to player
        if {i.skrzynia.%player%} is 5:
            add 1 stone pickaxe of unbreaking 10, efficiency 5 named "&5&lKilof Enderu" to player
        if {i.skrzynia.%player%} is 6:
            add 1 stone sword of unbreaking 35, sharpness 30 named "&5&lOstrze z Krwi Smoczego Serca" to player
        if {i.skrzynia.%player%} is 7:
            add 1 iron helmet of unbreaking 15, protection 30 named "&f&lHelm Rycerza" to player
        if {i.skrzynia.%player%} is 8:
            add 1 iron chestplate of unbreaking 20, protection 45 named "&5&lZbroja Starego Magika" to player
        if {i.skrzynia.%player%} is 9:
            add 1 iron leggings of protection 40 named "&f&lPlatynowe Spodnie" to player
        if {i.skrzynia.%player%} is 10:
            add 1 chest named "&5&lWielkanocna Skrzynia" to player
        if {i.skrzynia.%player%} is 11:
            add 1 iron boots of unbreaking 10, protection 30 named "&f&lAntyczne Buty" to player
        if {i.skrzynia.%player%} is 12:
            add 1 iron helmet of unbreaking 20, protection 40 named "&5&lZbroja Enderu" to player
        if {i.skrzynia.%player%} is 13:
            add 1 sunflower named "&3&lMoneta" to player
        if {i.skrzynia.%player%} is 14:
            add 1 iron leggings of unbreaking 20, protection 35 named "&5&lSpodnie Enderu" to player
        if {i.skrzynia.%player%} is 15:
            add 1 stone sword of unbreaking 30, sharpness 30 named "&5&lMiecz Enderu" to player

Zastap to tym co ci podalem .Powinno dzialac. wystarczy ze pozmieniasz nazwy przedmiotow lub wymyslisz wlasne. 

Odnośnik do komentarza
https://skript.pl/temat/17373-poprawa-skryptu-na-pisanki-ze-stone/#findComment-118932
Udostępnij na innych stronach

  • 0
if name of player's tool is "&e&o:: &c&oPisanka &e&o::":

A nie powinno być tak:
if player's tool is 383:98 named "&e&o:: &c&oPisanka &e&o::" with lore "&d&oKliknij PPM Aby Otworzyc Pisanke.":

I podaj błędy jeśli jakieś masz.

 

Odnośnik do komentarza
https://skript.pl/temat/17373-poprawa-skryptu-na-pisanki-ze-stone/#findComment-119014
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...