#skrypt FG-HoloTop by LloydPL #pozwala on na stawianie dowolnej ilosci topek graczy i gildii z pluginu FunnyGuilds oraz usuwanie ich #posiada on konfiguracje zrobiona w Options #***Wymagane pluginy: FunnyGuilds (release 100 lub wyzszy), FunnySkAddon 1.6 (lub wyzszy), SkRayFall, HolographicDisplays #opis konfiguracji: #format-pl, format-gu - Zawieraja format wyswietlania danej topki #null-pl, null-gu - Zawieraja format wyswietlania danej topki gdy na danym miejscu nie ma żadnych gildii #zmienne dla format-* i null-*: # {POSITION} - miejsce w tabeli # {GUILD} - gildia gracza lub z topki # {TAG} - tag gildii gracza lub z topki # {POINTS} - punkty gracza lub gildii # {PLAYER} - gracz z topki (tylko w formacie gracza) # {NOTHING} - jesli nie chcesz aby nie bylo pustych miejsc w teli wpisz to w null-pl/gu #title-pl, title-gu - Tytul tanej topki #amount-pl, amount-gu - Ilosc miejsc danej topki #refresh-time - Czas odswiezania topki (w sekundach) options: format-pl: &a&l{POSITION} &7- [&6&l{TAG}&7] &6&l{PLAYER} &7(&2&l{POINTS}&7) title-pl: &c&lTopka graczy null-pl: &a{POSITION} &7- BRAK amount-pl: 10 format-gu: &a&l{POSITION} &7- [&6&l{TAG}&7] &6&l{GUILD} &7(&2&l{POINTS}&7) title-gu: &c&lTopka gildii null-gu: &a{POSITION} &7- BRAK amount-gu: 10 refresh-time: 60 command /fgholotop [] [] []: trigger: if player doesn't have permission "fgholotop.*": send "&7&l[&5&lFG&7&l-&6&lHoloTop&7&l] &4Niewystarczajace uprawnienia!" stop if arg-1 is "player": if arg-2 is "place": set {_i} to 1 while {fgholotop::player-tops::%{_i}%} is set: set {_i} to {_i}+1 set {fgholotop::player-tops::%{_i}%} to "&a&l%{_i}% &7&lKoordy: &e&l%location of player%" create holo object "" with id "fgholotop-pl-%{_i}%" at location of player update guild tops if {@amount-pl} < 1: set {_am-p} to 1 else: set {_am-p} to {@amount-pl} set {_top-p} to "{@title-pl}" loop {_am-p} times: set {_ln} to loop-number set {_p} to "$NULL" set {_p} to player in position {_ln} if {_p} is "$NULL": if "{@null-pl}" is not "": set {_top-p} to "%{_top-p}%;{@null-pl}" replace all "{POSITION}" in {_top-p} with "%loop-number%" else: set {_top-p} to "%{_top-p}%;{@format-pl}" replace all "{PLAYER}" in {_top-p} with "%{_p}%" replace all "{POSITION}" in {_top-p} with "%loop-number%" replace all "{POINTS}" in {_top-p} with "%{_p} points%" if {_p} guild is set: replace all "{GUILD}" in {_top-p} with "%{_p} guild%" replace all "{TAG}" in {_top-p} with "%({_p} guild) guild tag%" else: replace all "{GUILD}" in {_top-p} with "N/A" replace all "{TAG}" in {_top-p} with "N/A" loop {fgholotop::player-tops::*}: edit holo object "fgholotop-pl-%loop-index%" to {_top-p} send "&7&l[&5&lFG&7&l-&6&lHoloTop&7&l] &aHolo-Topka graczy o &eID %{_i}% &azostala pomyslnie utworzona!" else if arg-2 is "delete": if arg-3 is not set: send "&7&l[&5&lFG&7&l-&6&lHoloTop&7&l] &4ID Holo-Topki graczy nie zostalo wprowadzone!" stop if {fgholotop::player-tops::%arg-3%} is not set: send "&7&l[&5&lFG&7&l-&6&lHoloTop&7&l] &4Holo-Topka graczy o &eID %arg-3% &4nie istnieje!" stop delete holo object "fgholotop-pl-%arg-3%" delete {fgholotop::player-tops::%arg-3%} send "&7&l[&5&lFG&7&l-&6&lHoloTop&7&l] &aHolo-Topka graczy o &eID %arg-3% &azostala pomyslnie usunieta!" else if arg-2 is "list": if size of {fgholotop::player-tops::*} = 0: send "&7&l[&5&lFG&7&l-&6&lHoloTop&7&l] &aBrak Holo-Topek graczy!" stop send "&7&l[&5&lFG&7&l-&6&lHoloTop&7&l] &aLista Holo-Topek graczy:" loop {fgholotop::player-tops::*}: send "&eID: %loop-value%" else: send "&7&l[&5&lFG&7&l-&6&lHoloTop&7&l] &4Niepoprawny argument! Wpisz &e/fgholotop help &4aby uzyskac pomoc." else if arg-1 is "guild": if arg-2 is "place": set {_i} to 1 while {fgholotop::guild-tops::%{_i}%} is set: set {_i} to {_i}+1 set {fgholotop::guild-tops::%{_i}%} to "&a&l%{_i}% &7&lKoordy: &e&l%location of player%" create holo object "" with id "fgholotop-gu-%{_i}%" at location of player update guild tops if {@amount-gu} < 1: set {_am-g} to 1 else: set {_am-g} to {@amount-gu} set {_top-g} to "{@title-gu}" loop {_am-g} times: set {_ln} to loop-number set {_g} to "$NULL" set {_g} to player in position {_ln} if {_g} is "$NULL": if "{@null-gu}" is not "{NOTHING}": set {_top-g} to "%{_top-g}%;{@null-gu}" replace all "{POSITION}" in {_top-g} with "%loop-number%" else: set {_top-g} to "%{_top-g}%;{@format-gu}" replace all "{POSITION}" in {_top-g} with "%loop-number%" replace all "{POINTS}" in {_top-g} with "%{_g} guild points%" replace all "{GUILD}" in {_top-g} with "%{_g}%" replace all "{TAG}" in {_top-g} with "%{_g} guild tag%" loop {fgholotop::guild-tops::*}: edit holo object "fgholotop-gu-%loop-index%" to {_top-g} send "&7&l[&5&lFG&7&l-&6&lHoloTop&7&l] &aHolo-Topka gildii o &eID %{_i}% &azostala pomyslnie utworzona!" else if arg-2 is "delete": if arg-3 is not set: send "&7&l[&5&lFG&7&l-&6&lHoloTop&7&l] &4ID Holo-Topki gildii nie zostalo wprowadzone!" stop if {fgholotop::guild-tops::%arg-3%} is not set: send "&7&l[&5&lFG&7&l-&6&lHoloTop&7&l] &4Holo-Topka gildii o &eID %arg-3% &4nie istnieje!" stop delete holo object "fgholotop-gu-%arg-3%" delete {fgholotop::guild-tops::%arg-3%} send "&7&l[&5&lFG&7&l-&6&lHoloTop&7&l] &aHolo-Topka gildii o &eID %arg-3% &azostala pomyslnie usunieta!" else if arg-2 is "list": if size of {fgholotop::guild-tops::*} = 0: send "&7&l[&5&lFG&7&l-&6&lHoloTop&7&l] &aBrak Holo-Topek gildii!" stop send "&7&l[&5&lFG&7&l-&6&lHoloTop&7&l] &aLista Holo-Topek gildii:" loop {fgholotop::guild-tops::*}: send "&eID: %loop-value%" else: send "&7&l[&5&lFG&7&l-&6&lHoloTop&7&l] &4Niepoprawny argument! Wpisz &e/fgholotop help &4aby uzyskac pomoc." else if arg-1 is "help": send "&7&l[&5&lFG&7&l-&6&lHoloTop&7&l] &aPomoc dotyczaca komend:" send "&6/fgholotop [player/guild] place &7- &aTworzy topke graczy/gildii w hologramach" send "&6/fgholotop [player/guild] delete [ID] &7- &aUsuwa topke graczy/gildii w hologramach po podanym ID" send "&6/fgholotop [player/guild] list &7- &aWyswietla liste topek graczy/gildii w hologramach wraz z inch koordynatami i ID" send "&6/fgholotop author &7- &aWyswietla informacje o autorze skryptu" send "&6/fgholotop help &7- &aWyswietla informacje dotyczace komend skryptu" else if arg-1 is "author": send "&7&l[&5&lFG&7&l-&6&lHoloTop&7&l] &aAutorem skryptu na topki w hologramach jest &eLloydPL" else: send "&7&l[&5&lFG&7&l-&6&lHoloTop&7&l] &4Niepoprawny argument! Wpisz &e/fgholotop help &4aby uzyskac pomoc." every {@refresh-time} seconds: if size of {fgholotop::player-tops::*} > 0: update guild tops if {@amount-pl} < 1: set {_am-p} to 1 else: set {_am-p} to {@amount-pl} set {_top-p} to "{@title-pl}" loop {_am-p} times: set {_ln} to loop-number set {_p} to "$NULL" set {_p} to player in position {_ln} if {_p} is "$NULL": if "{@null-pl}" is not "{NOTHING}": set {_top-p} to "%{_top-p}%;{@null-pl}" replace all "{POSITION}" in {_top-p} with "%loop-number%" else: set {_top-p} to "%{_top-p}%;{@format-pl}" replace all "{PLAYER}" in {_top-p} with "%{_p}%" replace all "{POSITION}" in {_top-p} with "%loop-number%" replace all "{POINTS}" in {_top-p} with "%{_p} points%" if {_p} guild is set: replace all "{GUILD}" in {_top-p} with "%{_p} guild%" replace all "{TAG}" in {_top-p} with "%({_p} guild) guild tag%" else: replace all "{GUILD}" in {_top-p} with "N/A" replace all "{TAG}" in {_top-p} with "N/A" loop {fgholotop::player-tops::*}: edit holo object "fgholotop-pl-%loop-index%" to {_top-p} if size of {fgholotop::guild-tops::*} > 0: if {@amount-gu} < 1: set {_am-g} to 1 else: set {_am-g} to {@amount-gu} set {_top-g} to "{@title-gu}" loop {_am-g} times: set {_ln} to loop-number set {_g} to "$NULL" set {_g} to guild in position {_ln} if {_g} is "$NULL": if "{@null-gu}" is not "{NOTHING}": set {_top-g} to "%{_top-g}%;{@null-gu}" replace all "{POSITION}" in {_top-g} with "%loop-number%" else: set {_top-g} to "%{_top-g}%;{@format-gu}" replace all "{POSITION}" in {_top-g} with "%loop-number%" replace all "{POINTS}" in {_top-g} with "%{_g} guild points%" replace all "{GUILD}" in {_top-g} with "%{_g}%" replace all "{TAG}" in {_top-g} with "%{_g} guild tag%" loop {fgholotop::guild-tops::*}: edit holo object "fgholotop-gu-%loop-index%" to {_top-g}