Skocz do zawartości
  • 0

Skrypt na DMG w GUI


IprOseK

Pytanie

Rekomendowane odpowiedzi

  • 0
options:
    cena: 100 

command /dmg:
  trigger:
    open chest with 1 row named "&6Bonusowe Obrazenia" to player
    format slot 2 of player with stick named "&eDMG +1" with lore "&eKoszt: &6{@cena}" to close then run "dmgadd %player% 1"
    format slot 3 of player  with wooden sword named "&eDMG +5" with lore "&eKoszt: &6%5*{@cena}%" to close then run "dmgadd %player% 5"
    format slot 4 of player with stone sword named "&eDMG +10" with lore "&eKoszt: &6%10*{@cena}%" to close then run "dmgadd %player% 10"
    format slot 5 of player with gold sword named "&eDMG +25" with lore "&eKoszt: &6%25*{@cena}%" to close then run "dmgadd %player% 25"
    format slot 6 of player with iron sword named "&eDMG +50" with lore "&eKoszt: &6%50*{@cena}%" to close then run "dmgadd %player% 50"
    format slot 7 of player with diamond sword named "&eDMG +100" with lore "&eKoszt: &6%100*{@cena}%" to close then run "dmgadd %player% 100"

command /dmgadd <offlineplayer> <number>:
  trigger:
    set {_p} to offlineplayer-arg
    set {_n} to number-arg
    player or console has permission "dmg.add":
      set {_b} to {_p}'s account
      {dmg::%{_p}%}+{_n} < 1000:
        {_b} > {_n}*{@cena}:
          add {_n} to {dmg::%{_p}%}
          remove {_n}*{@cena} from {_p}'s account
          send "&aDziekujemy za zakup DMG %{_n}%+" to {_p}
          broadcast "&a%{_p}% zakupil DMG %{_n}%+!"
        else:
          send "&cNie masz funduszy!" to {_p}
      else:
        send "&cOsiagnieto maksymalne obrazenia!" to {_p}

on damage:
  attacker is player:
    attacker's tool is sword:
      set damage to damage+{dmg::%attacker%}
    
on join:
    {dmg::%player%} is not set:
        set {dmg::%player%} to 0
        stop
        
command /damageReturn:
    trigger:
        send "&r&a%{dmg::%player%}%"

Ten skrypt działa na 100% :v        

Odnośnik do komentarza
https://skript.pl/temat/17830-skrypt-na-dmg-w-gui/#findComment-122484
Udostępnij na innych stronach

  • 0

1. Naucz się pokazywać błędy

2. U mnie działa wszystko. Zadaje obrażenia dopierop przy walce mieczem, działa dodawanie, wszystko jest w porządku. Musisz mieć nieaktualne bebechy serwera. Jaka wersja?

Odnośnik do komentarza
https://skript.pl/temat/17830-skrypt-na-dmg-w-gui/#findComment-122835
Udostępnij na innych stronach

  • 0

Nie używam Skype'a do pomocy.

Poszukaj innej wersji Skripta na 1.7.2 i wgraj

np. stąd

http://republicansensei.com/

Zobaczymy czy działa, bo powinno; są tu tylko wieczne polecenia Sk :v

EDIT:
Jeszcze tak upewnij się, że wszystkie starsze wersje skryptu są usunięte, że nigdzie nie ma tego:
 

on damage:
  attacker is player:
    set damage to damage+{dmg::%attacker%}

 

Odnośnik do komentarza
https://skript.pl/temat/17830-skrypt-na-dmg-w-gui/#findComment-122909
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ę...