Skocz do zawartości

Ranking

Popularna zawartość

Treść z najwyższą reputacją w 01/20/20 uwzględniając wszystkie działy

  1. xAxee

    Coins jako money

    function createTop(name: string, size: number, list: objects, format: string="[PLAYER] - [VALUE]") :: strings: set {_index} to 1 loop {_list::*}: if {%{_name}%::%loop-value%} is set: if {%{_name}%::%loop-value%} is a number: set {_top::%{_index}%} to {%{_name}%::%loop-value%} set {_players::%{_index}%} to "%loop-value%" add 1 to {_index} if {_size} > (size of {_players::*}): set {_size} to (size of {_players::*}) loop {_size} times: loop {_top::*}: if {_max} is not set: set {_max} to loop-value-2 set {_index} to loop-index else: if loop-value-2 > {_max}: set {_max} to loop-value-2 set {_index} to loop-index set {_var} to {_format} replace "[PLAYER]" with {_players::%{_index}%} in {_var} replace "[INDEX]" with "%loop-number%" in {_var} replace "[VALUE]" with "%{_max}%" in {_var} add {_var} to {_return::*} delete {_players::%{_index}%}, {_top::%{_index}%}, {_max} and {_index} return {_return::*} function getMoney(p: player) :: number: if {money::%{_p}%} is not set: return 0 return {money::%{_p}%} command /money [<player>]: aliases: /bal, /balance, /kasa, /coins trigger: if arg is not set: send "&7Twoj stan konta: &6%getMoney(player)%" stop send "&&Stan konta gracza &e%arg%&7: &6%getMoney(arg)%" command /addcoins [<player>] [<number=50>]: permission: addcoin trigger: if arg 1 is not set: send "&7Poprawne uzycie: &6/addcoins &a<player> <number>" stop add arg 2 to {money::%arg 1%} send "&7Twoj nowy stan konta: &6%{money::%arg 1%}%" to arg 1 send "&7Ustawiles stan konta gracza: &a%arg 1% &7na &6%{money::%arg 1%}%" command /top [<text>]: aliases: /cointop trigger: open chest with 1 rows named "&6Topka coinsow" to player set player's current inventory's slot 4 to gold ingot named "&6Top 3 posiadanych coinsow" with lore createTop("money", 3, all offline players, "&6[INDEX]. &a[PLAYER]: &6[VALUE]") on inventory click: if inventory name of current inventory of player is "&6Topka coinsow": cancel event nie testowane @gamemoefx i jak?
    2 punkty
  2. Cześć Chciałbym wam przedstawić pewien system funkcji. Mianowicie chodzi o system zarządzania cooldownem. Funkcje udostępniam ponieważ wiele użytkowników nie wie jak poprawnie stworzyć cooldown a ten system funkcji powinien im to ułatwić. Funkcje są dostępne tutaj Środowisko: - skript min 2.6 - serwer 1.18.1 Jak używać? Najpierw trzeba stworzyć nasz cooldown funckją createCooldown(nazwa cooldowna, czas) np: on load: createCooldown("heal", 10 second) Następnie w kodzie musimy sprawdzić status cooldowna gracza funkcją: getCooldown(gracz, "nazwa cooldowna") np: command /heal [<text>]: trigger: if getCooldown(player, "heal"): Nastepnie gdy wykonamy kod musimy ustawic cooldown gracza funkcją: setCooldown(gracz, "nazwa cooldowna") np: setCooldown(player, "heal") Opis wszystkich funkcji: createCooldown(%string%, %time span%, %boolean-2%) - Tworzy cooldown deleteCooldown(%string%) - Usuwa cooldown setCooldown(%player%, %boolean%) - Ustawia status cooldownu getCooldown(%player%, %string%) - Zwraca status cooldownu w booleanie (np true) getCooldownBoolean(%player%, %string%) - Zwraca status cooldownu w booleanie (np false) getCooldownDate(%player%, %string%) - Zwraca date wygaśnięcia cooldownu (np 22.08.19 15:00) getCooldownTime(%player%, %string%) - Zwraca czas wygaśnięcia cooldownu (np 10 second) getCooldownText(%player%, %string%, %format%) - Zwraca przetłumaczony czas cooldownu (np 10 minut i 2.34 sekund) Małe wyjaśnienie: %string% - nazwa cooldownu (np "poradnik") %time span% - czas cooldownu (np 10 second) %player% - gracz (np player) %boolean% - status cooldownu (np true) %boolean-2% - czy automatycznie ma ustawić cooldown na true (np true) %boolean-3% - Włączenie bypassa do ominięcia cooldownu (np false) %format% - Customowa lista tłumaczeń (np "lat" and "rok", "miesiecy"...) Przykładowe skrypty z użyciem tych funkcji: Automatyczna aktualizacja Jeżeli chcesz aby ten skrypt aktualizował ci się automatycznie pobierz skrypt AxAutoUpdate
    1 punkt
  3. xAxee

    Skrypt na resp mobów/pomocy

    every 60 seconds: if health of {mob} > 0: stop if {spawn.mob.1} is set: spawn 1 zombie at {spawn.mob.1} set the spawned zombie's display name to "&1Ork &cLVL.1" set the last spawned entity's max health to 8 heal the last spawned entity set tool of last spawned entity to stick of unbreaking 10 set {mob} to last spawned entity
    1 punkt
  4. DiabloOficjalnie

    » Pomoc w doborze hostingu.

    Serwer będzie rozbudowywany o kolejne tryby, a dodatkowo zapewni jedno z wielu zabezpieczeń przed atakami botów. Na razie 16 GB Ram'u mi starczy
    1 punkt
Ten Ranking jest ustawiony na Warszawa/GMT+02:00
  • Najwięcej postów w tygodniu

    Quexsu
    Quexsu
    6 postów
    Grabsky
    Grabsky
    1 post
    Nicku
    Nicku
    1 post
    mervi_X
    mervi_X
    1 post
    Fendi
    Fendi
    1 post
    kinimod5021
    kinimod5021
    1 post
    bug128
    bug128
    1 post
  • Najwięcej tematów w tygodniu

    Quexsu
    Quexsu
    1 temat
    mervi_X
    mervi_X
    1 temat
    bug128
    bug128
    1 temat
  • Aktywni użytkownicy

    Nikt jeszcze nie otrzymał reputacji w tym tygodniu.

×
×
  • Dodaj nową pozycję...