Skocz do zawartości
  • 0

Atak


ResidentEvil1337

Pytanie

17 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
command /atak <number>:

  trigger:

    set player's tool lore to "Atak: %arg%"



on damage:

  attacker is player:

    set {_l} to "%lore of attacker's tool%"
    set {_dmg} to "%subtext of {_l} from character 7 to %length of {_l}%" parsed as number

    set damage to {_dmg}

   

      

Odnośnik do komentarza
https://skript.pl/temat/17523-atak/#findComment-119933
Udostępnij na innych stronach

  • 0

Naucz się rozumieć błędy..

 

command /atak <number>:
  trigger:
    set lore of player's tool to "Atak: %arg%"



on damage:
  attacker is a player:
    set {_l} to "%lore of attacker's tool%"
    set {_dmg} to "%subtext of {_l} from character 7 to length of {_l}%" parsed as number
    set damage to {_dmg}

 

Edytowane przez DαrϰVεnuς
Odnośnik do komentarza
https://skript.pl/temat/17523-atak/#findComment-119944
Udostępnij na innych stronach

  • 0
command /atak [<number>]:
  trigger:
    arg is not set:
      set {_l} to random integer between 0 and 100000
    arg is set:
      set {_l} to arg
    set lore of player's tool to "Atak: %{_l}%"



on damage:
  attacker is a player:
    set {_l} to "%lore of attacker's tool%"
    set {_dmg} to "%subtext of {_l} from character 7 to length of {_l}%" parsed as number
    set damage to {_dmg}

 

Odnośnik do komentarza
https://skript.pl/temat/17523-atak/#findComment-119984
Udostępnij na innych stronach

  • 0
command /atak [<number>]:
  trigger:
    arg is not set:
      set {_l} to random integer between 0 and 100000
    arg is set:
      set {_l} to arg
    give a diamond sword named "&6Krolewskie Ostrze" with lore "&bSharpness 30||&6Atak: &e%{_l}%"



on damage:
  attacker is a player:
    set {_l} to "%lore of attacker's tool%"
    set {_dmg} to "%subtext of {_l} from character 7 to length of {_l}%" parsed as number
    set damage to {_dmg}+8

 

Odnośnik do komentarza
https://skript.pl/temat/17523-atak/#findComment-119993
Udostępnij na innych stronach

  • 0
    set {_dmg} to "%subtext of {_l} from character 7 to length of {_l}%" parsed as number
zamień na
    set {_dmg} to "%subtext of {_l} from character 19 to length of {_l}%" parsed as number
Odnośnik do komentarza
https://skript.pl/temat/17523-atak/#findComment-119999
Udostępnij na innych stronach

  • 0
command /atak [<number>]:
  trigger:
    arg is not set:
      set {_l} to random integer between 0 and 100000
    arg is set:
      set {_l} to arg
    give a diamond sword named "&6Krolewskie Ostrze" enchanted by sharpness 30 with lore "Atak: %{_l}%"

 

A na dole zostawiasz stare:

 

set {_dmg} to "%subtext of {_l} from character 7 to length of {_l}%" parsed as number
set damage to {_dmg}+8

Jeśli są błędy, to je podaj.

Odnośnik do komentarza
https://skript.pl/temat/17523-atak/#findComment-120002
Udostępnij na innych stronach

  • 0
command /atak [<number>]:
  trigger:
    arg is not set:
      set {_l} to random integer between 0 and 100000
    arg is set:
      set {_l} to arg
    give a diamond sword named "&6Krolewskie Ostrze" enchanted by sharpness 30 with lore "&6Dodatkowe obrazenia: &e%{_l}%"

A to:

set {_dmg} to "%subtext of {_l} from character 7 to length of {_l}%" parsed as number

zmieniasz na:

 
set {_dmg} to "%subtext of {_l} from character 22 to length of {_l}%" parsed as number

a jak nie zadziała to:

 
set {_dmg} to "%subtext of {_l} from character 26 to length of {_l}%" parsed as number

 

 

 

Odnośnik do komentarza
https://skript.pl/temat/17523-atak/#findComment-120007
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ę...