Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Proszę o napisanie skryptu na łuki z efektami strzał.


CevaBikaGaming

Rekomendowane odpowiedzi

Opublikowano

Siema.

 

Potrzebuje skryptu na takie łuki:

 

&2&lZatruty Łuk

 

- po strzale daje temu kto dostał strzałą efekt poison 7

 

----

 

&4Łuk Eksplozji

 

- po strzale robi wybuch który nic nie niszczy i zadaje jakiś dmg tam gdzie wyląduje strzała

 

---

 

&9Pechowy Łuk

 

- Po strzale daje osobie która dostała strzałą losowy negatywny efekt o sile 7

 

Opublikowano

Jak chcesz craftingi do tych łuków, to napisz.

options:
    trucizna: 7 #ustaw na tyle, ile sekund trucizna bedzie dzialac na trafionego zatrutym lukiem
    sila: 10 #ustaw moc wybuchu strzaly luku explozji


command /luki:
    trigger:
        if player has permission "sk.luki":
            add 1 bow of unbreaking 10 named "&2&lZatruty luk" to player
            add 1 bow of unbreaking 10 named "&4Luk Explozji" to player
            add 1 bow of unbreaking 10 named "&9Pechowy luk" to player

on projectile shoot:
    if projectile is an arrow:
        if shooter is a player:
            name of shooter's tool is "&2&lZatruty luk":
                set {attackers-tool.%shooter%} to 1
                stop
            name of shooter's tool is "&4Luk Explozji":
                set {attackers-tool.%shooter%} to 2
                stop
            name of shooter's tool is "&9Pechowy luk":
                set {attackers-tool.%shooter%} to 3

on projectile hit:
    if projectile is an arrow:
        if {attackers-tool.%shooter%} is 2:
            create safe explosion of force {@sila} at the projectile
            kill projectile

on damage:
    if attacker is a player:
        if damage is caused by projectile:
            if {attackers-tool.%attacker%} is 1:
                remove poison from the victim
                apply poison 6 to the victim for {@trucizna} seconds
                clear {attackers-tool.%attacker%}
            if {attackers-tool.%attacker%} is 2:
                create a safe explosion of force {@sila} at the victim
                clear {attackers-tool.%attacker%}
            if {attackers-tool.%attacker%} is 3:
                chance of 20%:
                    apply slowness 2 to the victim for 10 seconds
                    clear {attackers-tool.%attacker%}
                    stop
                chance of 20%:
                    apply nausea 4 to the victim for 17 seconds
                    clear {attackers-tool.%attacker%}
                    stop
                chance of 20%:
                    apply blindness 1 to the victim for 8 seconds
                    clear {attackers-tool.%attacker%}
                    stop
                chance of 20%:
                    apply hunger 1 to the victim for 15 seconds
                    clear {attackers-tool.%attacker%}
                    stop
                chance of 20%:
                    apply weakness 1 to the victim for 10 seconds
                    clear {attackers-tool.%attacker%}
                    stop

 Nie testowałem, wiec może nie działać. Jeżeli coś jest nie tak, to mi napisz. Jeśli jednak wszystko jest w porządku, to liczę na like, bo nie ukrywam, że się nagłówkowałem. :)

 

// Edit

 

Już sprawdziłem, wszystko powinno być OK. :D

:D  Let's start with MPCForum :D

 

 

 

30/50/69/100/150/200/250...

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...