Skocz do zawartości
  • 0

Skrypt na DMG w GUI


IprOseK
 Udostępnij

Pytanie

Rekomendowane odpowiedzi

  • 0
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: &6100" to close then run "dmg %player% 1"
    format slot 3 of player with wooden sword named "&eDMG +5" with lore "&eKoszt: &6500" to close then run "dmg %player% 5"
    format slot 4 of player with stone sword named "&eDMG +10" with lore "&eKoszt: &61000" to close then run "dmg %player% 10"
    format slot 5 of player with gold sword named "&eDMG +25" with lore "&eKoszt: &62500" to close then run "dmg %player% 25"
    format slot 6 of player with iron sword named "&eDMG +50" with lore "&eKoszt: &65000" to close then run "dmg %player% 50"
    format slot 7 of player with diamond  sword named "&eDMG +100" with lore "&eKoszt: &610000" to close then run "dmg %player% 100"

command /dmg <offline-player> <number>:
  trigger:
    set {_p} to offline-player-arg
    set {_n} to number-arg
    player or console has permission "dmg.add":
      {dmg::%{_p}%}+{_n} < 1000:
        {_p}'s balance > {_n}*100:
          add {_n} to {dmg::%{_p}%}
          remove {_n}*100 from
        else:
          send "&cNie masz funduszy!" to {_p}
      else:
        send "&cOsiagnieto maksymalne obrazenia!" to {_p}

Wartości maks obr., obrażeń i cen w sklepie sobie ustawisz, nie?

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
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: &6100" to close then run "dmg %player% 1"
    format slot 3 of player with wooden sword named "&eDMG +5" with lore "&eKoszt: &6500" to close then run "dmg %player% 5"
    format slot 4 of player with stone sword named "&eDMG +10" with lore "&eKoszt: &61000" to close then run "dmg %player% 10"
    format slot 5 of player with gold sword named "&eDMG +25" with lore "&eKoszt: &62500" to close then run "dmg %player% 25"
    format slot 6 of player with iron sword named "&eDMG +50" with lore "&eKoszt: &65000" to close then run "dmg %player% 50"
    format slot 7 of player with diamond sword named "&eDMG +100" with lore "&eKoszt: &610000" to close then run "dmg %player% 100"

command /dmg <offline player> <number>:
  trigger:
    set {_p} to offline player-arg
    set {_n} to number-arg
    player or console has permission "dmg.add":
      {dmg::%{_p}%}+{_n} < 1000:
        {_p}'s balance > {_n}*100:
          add {_n} to {dmg::%{_p}%}
          remove {_n}*100 from
          {_n} > 10:
            send "&aDziekujemy za zakup DMG 10+"
        else:
          send "&cNie masz funduszy!" to {_p}
      else:
        send "&cOsiagnieto maksymalne obrazenia!" to {_p}

 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 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":
      {dmg::%{_p}%}+{_n} < 1000:
        set {_b} to balance of {_p}
        {_b} > {_n}*{@cena}:
          add {_n} to {dmg::%{_p}%}
          remove {_n}*100 from balance of {_p}
          {_n} > 10:
            send "&aDziekujemy za zakup DMG %{_n}%+"
        else:
          send "&cNie masz funduszy!" to {_p}
      else:
        send "&cOsiagnieto maksymalne obrazenia!" to {_p}

Powinno działać :v

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
on first join:
  set {dmg::%player%} to 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":
      {dmg::%{_p}%}+{_n} < 1000:
        set {_b} to balance of {_p}
        {_b} > {_n}*{@cena}:
          add {_n} to {dmg::%{_p}%}
          remove {_n}*100 from balance of {_p}
          {_n} > 10:
            send "&aDziekujemy za zakup DMG %{_n}%+"
        else:
          send "&cNie masz funduszy!" to {_p}
      else:
        send "&cOsiagnieto maksymalne obrazenia!" to {_p}

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

 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 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":
      {dmg::%{_p}%}+{_n} < 1000:
        set {_b} to balance of {_p}
        {_b} > {_n}*{@cena}:
          add {_n} to {dmg::%{_p}%}
          remove {_n}*100 from balance of {_p}
          send "&aDziekujemy za zakup DMG %{_n}%+"
        else:
          send "&cNie masz funduszy!" to {_p}
      else:
        send "&cOsiagnieto maksymalne obrazenia!" to {_p}

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

 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 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 balance of {_p}
      {dmg::%{_p}%}+{_n} < 1000:
        {_b} > {_n}*{@cena}:
          add {_n} to {dmg::%{_p}%}
          remove {_n}*{@cena} from balance of {_p}
          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:
    set damage to damage+{dmg::%attacker%}
	
on join:
	{dmg::%player%} is not set:
		set {dmg::%player%} to 0
		stop

Powinno działać :v

Odnośnik do komentarza
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

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