Skocz do zawartości
  • 0

Wither Skill


Nieaktywny

Pytanie

On rightclick:
    if player is holding Paper named "&bLatający Talizman":
        if player has permission "szaman.1":
            if difference between {szaman1::%player%::lastuse} and now is smaller than 7 seconds:
                send "&cUmiejętności tej możesz używać co 7 sekund"
                stop
            set {szaman1::%player%::lastuse} to now
            wait 1 second
            shoot a wither skull at speed 1
        else:
            send "<red>Nie Możesz Tego Używać."
on projectile hit:
    projectile is an wither skull:
        event-entity is player:
            damage event-entity by 13 hearts
            
# +2
            
On rightclick:
    if player is holding Paper named "&bLatający Talizman +2":
        if player has permission "szaman.1":
            if difference between {szaman12::%player%::lastuse} and now is smaller than 6 seconds:
                send "&cUmiejętności tej możesz używać co 6 sekund"
                stop
            set {szaman12::%player%::lastuse} to now
            shoot a wither skull at speed 1
        else:
            send "<red>Nie Możesz Tego Używać."
            
# +3
            
On rightclick:
    if player is holding Paper named "&bLatający Talizman +3":
        if player has permission "szaman.1":
            if difference between {szaman13::%player%::lastuse} and now is smaller than 5 seconds:
                send "&cUmiejętności tej możesz używać co 5 sekund"
                stop
            set {szaman13::%player%::lastuse} to now
            shoot a wither skull at speed 1
        else:
            send "<red>Nie Możesz Tego Używać."
            
# + 4

On rightclick:
    if player is holding Paper named "&bLatający Talizman +4":
        if player has permission "szaman.1":
            if difference between {szaman14::%player%::lastuse} and now is smaller than 4 seconds:
                send "&cUmiejętności tej możesz używać co 4 sekund"
                stop
            set {szaman14::%player%::lastuse} to now
            shoot a wither skull at speed 2
        else:
            send "<red>Nie Możesz Tego Używać."
            
# + 5

On rightclick:
    if player is holding Paper named "&bLatający Talizman +5":
        if player has permission "szaman.1":
            if difference between {szaman15::%player%::lastuse} and now is smaller than 3 seconds:
                send "&cUmiejętności tej możesz używać co 3 sekund"
                stop
            set {szaman15::%player%::lastuse} to now
            shoot a wither skull at speed 3
        else:
            send "<red>Nie Możesz Tego Używać."
            
# + Max

On rightclick:
    if player is holding Paper named "&bLatający Talizman &6Max":
        if player has permission "szaman.1":
            if difference between {szaman16::%player%::lastuse} and now is smaller than 1 seconds:
                send "&cUmiejętności tej możesz używać co 1 sekund"
                stop
            set {szaman16::%player%::lastuse} to now
            shoot a wither skull at speed 3
        else:
            send "<red>Nie Możesz Tego Używać."

 

Dlaczego damage nie wchodzi tak jak tam pisze ? (13 żyć) świnie zawsze na 2 hity a endermana na 8 hitów dlaczego tak jest ? jak zwiększyć damage by działał ?

Edytowane przez Nieaktywny
Odnośnik do komentarza
https://skript.pl/temat/9290-wither-skill/
Udostępnij na innych stronach

12 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

if attacker's tool is "&bLatający Talizman +2":


    #damage


 


Polecam też wcześniej sprawdzać, czy atakujący jest graczem, bo gdy wither wystrzeli, to może wywalić błędy lub serwer.


Odnośnik do komentarza
https://skript.pl/temat/9290-wither-skill/#findComment-71403
Udostępnij na innych stronach

  • 0

# + 5

On rightclick:
    if player is holding Paper named "&bLatający Talizman +5":
        if player has permission "szaman.1":
            if difference between {szaman15::%player%::lastuse} and now is smaller than 3 seconds:
                send "&cUmiejętności tej możesz używać co 3 sekund"
                stop
            set {szaman15::%player%::lastuse} to now
            shoot a wither skull at speed 3

            damage event-entity by 13 hearts
        else:
            send "<red>Nie Możesz Tego Używać."
            
# + Max

On rightclick:
    if player is holding Paper named "&bLatający Talizman &6Max":
        if player has permission "szaman.1":
            if difference between {szaman16::%player%::lastuse} and now is smaller than 1 seconds:
                send "&cUmiejętności tej możesz używać co 1 sekund"
                stop
            set {szaman16::%player%::lastuse} to now
            shoot a wither skull at speed 3

            damage event-entity by 15 hearts
        else:
            send "<red>Nie Możesz Tego Używać."

 

yy takie coś ?

Edytowane przez Nieaktywny
Odnośnik do komentarza
https://skript.pl/temat/9290-wither-skill/#findComment-71412
Udostępnij na innych stronach

  • 0

On rightclick:
    if player is holding Paper named "&bLatający Talizman +5":
        if player has permission "szaman.1":
            if difference between {szaman15::%player%::lastuse} and now is smaller than 3 seconds:
                send "&cUmiejętności tej możesz używać co 3 sekund"
                stop
            set {szaman15::%player%::lastuse} to now
            shoot a wither skull at speed 3

            #loop entities in a radius of 4 around target location #mozna tez tak :D

              #      damage event-entity by 13 hearts
        else:
            send "<red>Nie Możesz Tego Używać."

albo:

on projectile hit:
    projectile is an wither skull:

        if shooter is holding Paper named "&bLatający Talizman +5":
            damage event-entity by 13 hearts

        if shooter is holding Paper named "&bLatający Talizman +4":
            damage event-entity by 11 hearts

        if shooter is holding Paper named "&bLatający Talizman +3":
            damage event-entity by 8 hearts

Odnośnik do komentarza
https://skript.pl/temat/9290-wither-skill/#findComment-71424
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ę...