SHOW:
|
|
- or go back to the newest paste.
| 1 | - | # xBot - twoj wirtualny pomocnik. # |
| 1 | + | |
| 2 | - | # Autor: Ixidi # |
| 2 | + | {chat} = true
|
| 3 | - | # Wersja: 1.0 # |
| 3 | + | {zglos.%player%} = false
|
| 4 | command /xbot [<text>] [<text>] [<player>]: | |
| 5 | - | {chat} = true
|
| 5 | + | usage: /xBot |
| 6 | - | {zglos.%player%} = false
|
| 6 | + | trigger: |
| 7 | if player has permission "xbot.admin": | |
| 8 | - | usage: /xBot |
| 8 | + | if arg 1 is "gracz": |
| 9 | - | trigger: |
| 9 | + | send "" |
| 10 | - | if player has permission "xbot.admin": |
| 10 | + | send "&6/zglos <nick> - Zglasza chetera." |
| 11 | - | if arg 1 is "gracz": |
| 11 | + | send "&6/bug <opis> - Zglasza jakis bug." |
| 12 | - | send "" |
| 12 | + | send "&6/zapytaj <pytanie> - Pytanie do administracji." |
| 13 | - | send "&c=================================================================" |
| 13 | + | if arg 1 is "auto": |
| 14 | - | send "&6/zglos <nick> - Zglasza chetera." |
| 14 | + | send "" |
| 15 | - | send "&6/bug <opis> - Zglasza jakis bug." |
| 15 | + | send "&6xBot ma wbudowana anty-reklame tzn. Gdy ktos probuje" |
| 16 | - | send "&6/zapytaj <pytanie> - Pytanie do administracji." |
| 16 | + | send "&6reklamowac xBot to blokuje." |
| 17 | - | send "&c=================================================================" |
| 17 | + | send "&6Ma on rowniez funkcje automatycznego odpowiadania na pytania. (z bazy)" |
| 18 | - | if arg 1 is "auto": |
| 18 | + | send "&6Gdy gracz napisze /pytanie <pytanie> otrzyma odpowiedz." |
| 19 | - | send "" |
| 19 | + | send "&6Ma tez system zglaszania cheterow (/zglos <nick>)." |
| 20 | - | send "&c=================================================================" |
| 20 | + | if arg 1 is not set: |
| 21 | - | send "&6xBot ma wbudowana anty-reklame tzn. Gdy ktos probuje" |
| 21 | + | send "" |
| 22 | - | send "&6reklamowac xBot to blokuje." |
| 22 | + | send "&6/xbot czysc - Czysci zgloszenia cheterow, bugow i pytan." |
| 23 | - | send "&6Ma on rowniez funkcje automatycznego odpowiadania na pytania. (z bazy)" |
| 23 | + | send "&6/xbot auto - Automatyczne funkcje xBota." |
| 24 | - | send "&6Gdy gracz napisze /pytanie <pytanie> otrzyma odpowiedz." |
| 24 | + | send "&6/xbot autor - Informacje o autorze." |
| 25 | - | send "&6Ma tez system zglaszania cheterow (/zglos <nick>)." |
| 25 | + | send "&6/xbot chat off - Wylacza chat." |
| 26 | - | send "&c=================================================================" |
| 26 | + | send "&6/xbot chat on - Wlacza chat." |
| 27 | - | if arg 1 is not set: |
| 27 | + | send "&6/xbot chat czysc - Czysci chat." |
| 28 | - | send "" |
| 28 | + | send "&6/xbot echest otworz NICK - Otwiera enderchest gracza." |
| 29 | - | send "&c=================================================================" |
| 29 | + | send "&6/xbot echest czysc NICK - Czysci enderchest gracza." |
| 30 | - | send "&6/xbot czysc - Czysci zgloszenia cheterow, bugow i pytan." |
| 30 | + | send "&6/xbot ekwipunek otworz NICK - Otwiera ekwipunek gracza." |
| 31 | - | send "&6/xbot auto - Automatyczne funkcje xBota." |
| 31 | + | send "&6/xbot ekwipunek czysc NICK - Czysci ekwipunek gracza." |
| 32 | - | send "&6/xbot autor - Informacje o autorze." |
| 32 | + | send "&6/xbot gracz - Komendy gracza. ( xbot.gracz )" |
| 33 | - | send "&6/xbot chat off - Wylacza chat." |
| 33 | + | if arg 1 is "czysc": |
| 34 | - | send "&6/xbot chat on - Wlacza chat." |
| 34 | + | delete folder "plugins/xBot" |
| 35 | - | send "&6/xbot chat czysc - Czysci chat." |
| 35 | + | delete file "plugins/xBot/ktoreklamowal.yml" |
| 36 | - | send "&6/xbot echest otworz NICK - Otwiera enderchest gracza." |
| 36 | + | delete file "plugins/xBot/zgloszeniagraczy.yml" |
| 37 | - | send "&6/xbot echest czysc NICK - Czysci enderchest gracza." |
| 37 | + | delete file "plugins/xBot/zgloszeniabugow.yml" |
| 38 | - | send "&6/xbot ekwipunek otworz NICK - Otwiera ekwipunek gracza." |
| 38 | + | delete file "plugins/xBot/config.yml" |
| 39 | - | send "&6/xbot ekwipunek czysc NICK - Czysci ekwipunek gracza." |
| 39 | + | delete file "plugins/xBot/pytaniabezodpowiedzi.yml" |
| 40 | - | send "&6/xbot gracz - Komendy gracza. ( xbot.gracz )" |
| 40 | + | execute player command "sk reload all" |
| 41 | - | send "&c=================================================================" |
| 41 | + | send "&6Wyczyszczono zgloszenia i informacje z folderu &cxBot&6." |
| 42 | - | if arg 1 is "czysc": |
| 42 | + | if arg 1 is "autor": |
| 43 | - | delete folder "plugins/xBot" |
| 43 | + | send "&6Autorem jest &cIxidi&6." |
| 44 | - | delete file "plugins/xBot/ktoreklamowal.yml" |
| 44 | + | if arg 1 is "echest": |
| 45 | - | delete file "plugins/xBot/zgloszeniagraczy.yml" |
| 45 | + | if arg 2 is not set: |
| 46 | - | delete file "plugins/xBot/zgloszeniabugow.yml" |
| 46 | + | send "" |
| 47 | - | delete file "plugins/xBot/config.yml" |
| 47 | + | send "&6/xbot echest otworz NICK - Otwiera enderchest gracza." |
| 48 | - | delete file "plugins/xBot/pytaniabezodpowiedzi.yml" |
| 48 | + | send "&6/xbot echest czysc NICK - Czysci enderchest gracza." |
| 49 | - | execute player command "sk reload all" |
| 49 | + | if arg 2 is "otworz": |
| 50 | - | |
| 50 | + | if arg 3 is set: |
| 51 | - | send "&6Wyczyszczono zgloszenia i informacje z folderu &cxBot&6." |
| 51 | + | open the arg-player's ender chest to the player |
| 52 | - | if arg 1 is "autor": |
| 52 | + | send "&6To jest enderchest gracza &c%arg 3%&6." |
| 53 | - | send "&6Autorem jest &cIxidi&6." |
| 53 | + | else: |
| 54 | - | if arg 1 is "echest": |
| 54 | + | send "&4BLAD: &cPodaj nick gracza." |
| 55 | - | if arg 2 is not set: |
| 55 | + | if arg 2 is "czysc": |
| 56 | - | send "" |
| 56 | + | if arg 3 is set: |
| 57 | - | send "&c=================================================================" |
| 57 | + | loop all items in arg-player's enderchest: |
| 58 | - | send "&6/xbot echest otworz NICK - Otwiera enderchest gracza." |
| 58 | + | clear loop-item |
| 59 | - | send "&6/xbot echest czysc NICK - Czysci enderchest gracza." |
| 59 | + | send "&6Wyczyszczono enderchest gracza &c%arg-player%&6." |
| 60 | - | send "&c=================================================================" |
| 60 | + | else: |
| 61 | - | if arg 2 is "otworz": |
| 61 | + | send "&4BLAD: &cPodaj nick gracza." |
| 62 | - | if arg 3 is set: |
| 62 | + | if arg 1 is "ekwipunek": |
| 63 | - | open the arg-player's ender chest to the player |
| 63 | + | if arg 2 is not set: |
| 64 | - | send "&6To jest enderchest gracza &c%arg 3%&6." |
| 64 | + | send "" |
| 65 | - | else: |
| 65 | + | send "&6/xbot ekwipunek otworz NICK - Otwiera ekwipunek gracza." |
| 66 | - | send "&4BLAD: &cPodaj nick gracza." |
| 66 | + | send "&6/xbot ekwipunek czysc NICK - Czysci ekwipunek gracza." |
| 67 | - | if arg 2 is "czysc": |
| 67 | + | if arg 2 is "otworz": |
| 68 | - | if arg 3 is set: |
| 68 | + | if arg 3 is set: |
| 69 | - | loop all items in arg-player's enderchest: |
| 69 | + | open the arg-player's inventory to the player |
| 70 | - | clear loop-item |
| 70 | + | send "&6To jest ekwipunek gracza &c%arg 3%&6." |
| 71 | - | send "&6Wyczyszczono enderchest gracza &c%arg-player%&6." |
| 71 | + | else: |
| 72 | - | else: |
| 72 | + | send "&4BLAD: &cPodaj nick gracza." |
| 73 | - | send "&4BLAD: &cPodaj nick gracza." |
| 73 | + | if arg 2 is "czysc": |
| 74 | - | if arg 1 is "ekwipunek": |
| 74 | + | if arg 3 is set: |
| 75 | - | if arg 2 is not set: |
| 75 | + | loop all items in arg-player's inventory: |
| 76 | - | send "" |
| 76 | + | clear loop-item |
| 77 | - | send "&c=================================================================" |
| 77 | + | send "&6Wyczyszczono ekwipunek gracza &c%arg-player%&6." |
| 78 | - | send "&6/xbot ekwipunek otworz NICK - Otwiera ekwipunek gracza." |
| 78 | + | else: |
| 79 | - | send "&6/xbot ekwipunek czysc NICK - Czysci ekwipunek gracza." |
| 79 | + | send "&4BLAD: &cPodaj nick gracza." |
| 80 | - | send "&c=================================================================" |
| 80 | + | if arg 1 is "chat": |
| 81 | - | if arg 2 is "otworz": |
| 81 | + | if arg 2 is not set: |
| 82 | - | if arg 3 is set: |
| 82 | + | send "" |
| 83 | - | open the arg-player's inventory to the player |
| 83 | + | send "&6/xbot chat czysc - Czysci chat." |
| 84 | - | send "&6To jest ekwipunek gracza &c%arg 3%&6." |
| 84 | + | send "&6/xbot chat off - Wylacza chat." |
| 85 | - | else: |
| 85 | + | send "&6/xbot chat on - Wlacza chat." |
| 86 | - | send "&4BLAD: &cPodaj nick gracza." |
| 86 | + | if arg 2 is "on": |
| 87 | - | if arg 2 is "czysc": |
| 87 | + | if {chat} is false:
|
| 88 | - | if arg 3 is set: |
| 88 | + | set {chat} to true
|
| 89 | - | loop all items in arg-player's inventory: |
| 89 | + | broadcast "" |
| 90 | - | clear loop-item |
| 90 | + | broadcast "&aChat zostal wlaczaony." |
| 91 | - | send "&6Wyczyszczono ekwipunek gracza &c%arg-player%&6." |
| 91 | + | broadcast "" |
| 92 | - | else: |
| 92 | + | else: |
| 93 | - | send "&4BLAD: &cPodaj nick gracza." |
| 93 | + | send "&4BLAD: &cChat jest wlaczaony." |
| 94 | - | if arg 1 is "chat": |
| 94 | + | if arg 2 is "off": |
| 95 | - | if arg 2 is not set: |
| 95 | + | if {chat} is true:
|
| 96 | - | send "" |
| 96 | + | set {chat} to false
|
| 97 | - | send "&c=================================================================" |
| 97 | + | broadcast "" |
| 98 | - | send "&6/xbot chat czysc - Czysci chat." |
| 98 | + | broadcast "&cChat zostal wylaczaony." |
| 99 | - | send "&6/xbot chat off - Wylacza chat." |
| 99 | + | broadcast "" |
| 100 | - | send "&6/xbot chat on - Wlacza chat." |
| 100 | + | else: |
| 101 | - | send "&c=================================================================" |
| 101 | + | send "&4BLAD: &cChat jest wylaczaony." |
| 102 | - | if arg 2 is "on": |
| 102 | + | if arg 2 is "czysc": |
| 103 | - | if {chat} is false:
|
| 103 | + | loop 100 times: |
| 104 | - | set {chat} to true
|
| 104 | + | broadcast "" |
| 105 | - | broadcast "" |
| 105 | + | broadcast "&9Chat zostal wyczyszczony." |
| 106 | - | broadcast "&aChat zostal wlaczaony." |
| 106 | + | broadcast "" |
| 107 | - | broadcast "" |
| 107 | + | else: |
| 108 | - | else: |
| 108 | + | send "&4Brak uprawnien..." |
| 109 | - | send "&4BLAD: &cChat jest wlaczaony." |
| 109 | + | |
| 110 | - | if arg 2 is "off": |
| 110 | + | |
| 111 | - | if {chat} is true:
|
| 111 | + | trigger: |
| 112 | - | set {chat} to false
|
| 112 | + | if player has permission "xbot.gracz": |
| 113 | - | broadcast "" |
| 113 | + | if {zglos.%player%} is false:
|
| 114 | - | broadcast "&cChat zostal wylaczaony." |
| 114 | + | if arg 1 is not set: |
| 115 | - | broadcast "" |
| 115 | + | send "&cPoprawne uzycie: &7/zglos <nick>" |
| 116 | - | else: |
| 116 | + | if arg 1 is set: |
| 117 | - | send "&4BLAD: &cChat jest wylaczaony." |
| 117 | + | wf "## Gracz %player% zglosil gracza %arg 1%. ##" to "plugins/xBot/zgloszeniagraczy.yml" |
| 118 | - | if arg 2 is "czysc": |
| 118 | + | send "&6Zglosiles gracza &c%arg 1%&6." |
| 119 | - | loop 100 times: |
| 119 | + | set {zglos.%player%} to true
|
| 120 | - | broadcast "" |
| 120 | + | wait 5 minutes |
| 121 | - | broadcast "&9Chat zostal wyczyszczony." |
| 121 | + | set {zglos.%player%} to false
|
| 122 | - | broadcast "" |
| 122 | + | else: |
| 123 | - | else: |
| 123 | + | send "&cPoczekaj przez zgloszeniem kolejnej osoby lub buga." |
| 124 | - | send "&4Brak permisji..." |
| 124 | + | else: |
| 125 | - | |
| 125 | + | send "&4Brak uprawnien..." |
| 126 | command /bug [<text>]: | |
| 127 | - | trigger: |
| 127 | + | trigger: |
| 128 | - | if player has permission "xbot.gracz": |
| 128 | + | if player has permission "xbot.gracz": |
| 129 | - | if {zglos.%player%} is false:
|
| 129 | + | if {zglos.%player%} is false:
|
| 130 | - | if arg 1 is not set: |
| 130 | + | if arg 1 is not set: |
| 131 | - | send "&cPoprawne uzycie: &7/zglos <nick>" |
| 131 | + | send "&cPoprawne uzycie: &7/bug <opisbuga>" |
| 132 | - | if arg 1 is set: |
| 132 | + | if arg 1 is set: |
| 133 | - | wf "## Gracz %player% zglosil gracza %arg 1%. ##" to "plugins/xBot/zgloszeniagraczy.yml" |
| 133 | + | wf "## Gracz %player% zglosil buga. Opis %arg 1%. ##" to "plugins/xBot/zgloszeniabugow.yml" |
| 134 | - | send "&6Zglosiles gracza &c%arg 1%&6." |
| 134 | + | send "&6Zglosiles buga! Opis: &c%arg 1%&6." |
| 135 | - | set {zglos.%player%} to true
|
| 135 | + | set {zglos.%player%} to true
|
| 136 | - | wait 5 minutes |
| 136 | + | wait 5 minutes |
| 137 | - | set {zglos.%player%} to false
|
| 137 | + | set {zglos.%player%} to false
|
| 138 | - | else: |
| 138 | + | else: |
| 139 | - | send "&cPoczekaj przez zgloszeniem kolejnej osoby lub buga." |
| 139 | + | send "&cPoczekaj przez zgloszeniem kolejnej osoby lub buga." |
| 140 | - | else: |
| 140 | + | else: |
| 141 | - | send "&4Brak permisji..." |
| 141 | + | send "&4Brak uprawnien..." |
| 142 | command /zapytaj [<text>]: | |
| 143 | - | trigger: |
| 143 | + | trigger: |
| 144 | - | if player has permission "xbot.gracz": |
| 144 | + | if player has permission "xbot.gracz": |
| 145 | - | if {zglos.%player%} is false:
|
| 145 | + | if arg 1 is not set: |
| 146 | - | if arg 1 is not set: |
| 146 | + | send "&cPoprawne uzycie: &7/zapytaj <pytanie>" |
| 147 | - | send "&cPoprawne uzycie: &7/bug <opisbuga>" |
| 147 | + | if arg 1 is set: |
| 148 | - | if arg 1 is set: |
| 148 | + | set {_p1} to single value "pytanie1" get of "plugins/xBot/config.yml"
|
| 149 | - | wf "## Gracz %player% zglosil buga. Opis %arg 1%. ##" to "plugins/xBot/zgloszeniabugow.yml" |
| 149 | + | set {_p2} to single value "pytanie2" get of "plugins/xBot/config.yml"
|
| 150 | - | send "&6Zglosiles buga! Opis: &c%arg 1%&6." |
| 150 | + | set {_p3} to single value "pytanie3" get of "plugins/xBot/config.yml"
|
| 151 | - | set {zglos.%player%} to true
|
| 151 | + | set {_p4} to single value "pytanie4" get of "plugins/xBot/config.yml"
|
| 152 | - | wait 5 minutes |
| 152 | + | set {_p5} to single value "pytanie5" get of "plugins/xBot/config.yml"
|
| 153 | - | set {zglos.%player%} to false
|
| 153 | + | set {_p6} to single value "pytanie6" get of "plugins/xBot/config.yml"
|
| 154 | - | else: |
| 154 | + | set {_p7} to single value "pytanie7" get of "plugins/xBot/config.yml"
|
| 155 | - | send "&cPoczekaj przez zgloszeniem kolejnej osoby lub buga." |
| 155 | + | set {_p8} to single value "pytanie8" get of "plugins/xBot/config.yml"
|
| 156 | - | else: |
| 156 | + | set {_p9} to single value "pytanie9" get of "plugins/xBot/config.yml"
|
| 157 | - | send "&4Brak permisji..." |
| 157 | + | set {_p10} to single value "pytanie10" get of "plugins/xBot/config.yml"
|
| 158 | set {_p11} to single value "pytanie11" get of "plugins/xBot/config.yml"
| |
| 159 | - | trigger: |
| 159 | + | set {_p12} to single value "pytanie12" get of "plugins/xBot/config.yml"
|
| 160 | - | if player has permission "xbot.gracz": |
| 160 | + | set {_p13} to single value "pytanie13" get of "plugins/xBot/config.yml"
|
| 161 | - | if arg 1 is not set: |
| 161 | + | set {_p14} to single value "pytanie14" get of "plugins/xBot/config.yml"
|
| 162 | - | send "&cPoprawne uzycie: &7/zapytaj <pytanie>" |
| 162 | + | set {_p15} to single value "pytanie15" get of "plugins/xBot/config.yml"
|
| 163 | - | if arg 1 is set: |
| 163 | + | set {_o1} to single value "odp1" get of "plugins/xBot/config.yml"
|
| 164 | - | set {_p1} to single value "pytanie1" get of "plugins/xBot/config.yml"
|
| 164 | + | set {_o2} to single value "odp2" get of "plugins/xBot/config.yml"
|
| 165 | - | set {_p2} to single value "pytanie2" get of "plugins/xBot/config.yml"
|
| 165 | + | set {_o3} to single value "odp3" get of "plugins/xBot/config.yml"
|
| 166 | - | set {_p3} to single value "pytanie3" get of "plugins/xBot/config.yml"
|
| 166 | + | set {_o4} to single value "odp4" get of "plugins/xBot/config.yml"
|
| 167 | - | set {_p4} to single value "pytanie4" get of "plugins/xBot/config.yml"
|
| 167 | + | set {_o5} to single value "odp5" get of "plugins/xBot/config.yml"
|
| 168 | - | set {_p5} to single value "pytanie5" get of "plugins/xBot/config.yml"
|
| 168 | + | set {_o6} to single value "odp6" get of "plugins/xBot/config.yml"
|
| 169 | - | set {_p6} to single value "pytanie6" get of "plugins/xBot/config.yml"
|
| 169 | + | set {_o7} to single value "odp7" get of "plugins/xBot/config.yml"
|
| 170 | - | set {_p7} to single value "pytanie7" get of "plugins/xBot/config.yml"
|
| 170 | + | set {_o8} to single value "odp8" get of "plugins/xBot/config.yml"
|
| 171 | - | set {_p8} to single value "pytanie8" get of "plugins/xBot/config.yml"
|
| 171 | + | set {_o9} to single value "odp9" get of "plugins/xBot/config.yml"
|
| 172 | - | set {_p9} to single value "pytanie9" get of "plugins/xBot/config.yml"
|
| 172 | + | set {_o10} to single value "odp10" get of "plugins/xBot/config.yml"
|
| 173 | - | set {_p10} to single value "pytanie10" get of "plugins/xBot/config.yml"
|
| 173 | + | set {_o11} to single value "odp11" get of "plugins/xBot/config.yml"
|
| 174 | - | set {_p11} to single value "pytanie11" get of "plugins/xBot/config.yml"
|
| 174 | + | set {_o12} to single value "odp12" get of "plugins/xBot/config.yml"
|
| 175 | - | set {_p12} to single value "pytanie12" get of "plugins/xBot/config.yml"
|
| 175 | + | set {_o13} to single value "odp13" get of "plugins/xBot/config.yml"
|
| 176 | - | set {_p13} to single value "pytanie13" get of "plugins/xBot/config.yml"
|
| 176 | + | set {_o14} to single value "odp14" get of "plugins/xBot/config.yml"
|
| 177 | - | set {_p14} to single value "pytanie14" get of "plugins/xBot/config.yml"
|
| 177 | + | set {_o15} to single value "odp15" get of "plugins/xBot/config.yml"
|
| 178 | - | set {_p15} to single value "pytanie15" get of "plugins/xBot/config.yml"
|
| 178 | + | if arg 1 contains {_p1} or {_p2} or {_p3} or {_p4} or {_p5} or {_p6} or {_p7} or {_p8} or {_p9} or {_p10} or {_p11} or {_p12} or {_p13} or {_p14} or {_p15}:
|
| 179 | - | set {_o1} to single value "odp1" get of "plugins/xBot/config.yml"
|
| 179 | + | if arg contains {_p1}:
|
| 180 | - | set {_o2} to single value "odp2" get of "plugins/xBot/config.yml"
|
| 180 | + | send "&6Zadales pytanie: &c%arg 1%" |
| 181 | - | set {_o3} to single value "odp3" get of "plugins/xBot/config.yml"
|
| 181 | + | wait 4 seconds |
| 182 | - | set {_o4} to single value "odp4" get of "plugins/xBot/config.yml"
|
| 182 | + | send "&6Odpowiedz: &c%{_o1}%"
|
| 183 | - | set {_o5} to single value "odp5" get of "plugins/xBot/config.yml"
|
| 183 | + | if arg 1 contains {_p2}:
|
| 184 | - | set {_o6} to single value "odp6" get of "plugins/xBot/config.yml"
|
| 184 | + | send "&6Zadales pytanie: &c%arg 1%" |
| 185 | - | set {_o7} to single value "odp7" get of "plugins/xBot/config.yml"
|
| 185 | + | wait 4 seconds |
| 186 | - | set {_o8} to single value "odp8" get of "plugins/xBot/config.yml"
|
| 186 | + | send "&6Odpowiedz: &c%{_o2}%"
|
| 187 | - | set {_o9} to single value "odp9" get of "plugins/xBot/config.yml"
|
| 187 | + | if arg 1 contains {_p3}:
|
| 188 | - | set {_o10} to single value "odp10" get of "plugins/xBot/config.yml"
|
| 188 | + | send "&6Zadales pytanie: &c%arg 1%" |
| 189 | - | set {_o11} to single value "odp11" get of "plugins/xBot/config.yml"
|
| 189 | + | wait 4 seconds |
| 190 | - | set {_o12} to single value "odp12" get of "plugins/xBot/config.yml"
|
| 190 | + | send "&6Odpowiedz: &c%{_o3}%"
|
| 191 | - | set {_o13} to single value "odp13" get of "plugins/xBot/config.yml"
|
| 191 | + | if arg 1 contains {_p4}:
|
| 192 | - | set {_o14} to single value "odp14" get of "plugins/xBot/config.yml"
|
| 192 | + | send "&6Zadales pytanie: &c%arg 1%" |
| 193 | - | set {_o15} to single value "odp15" get of "plugins/xBot/config.yml"
|
| 193 | + | wait 4 seconds |
| 194 | - | if arg 1 contains {_p1} or {_p2} or {_p3} or {_p4} or {_p5} or {_p6} or {_p7} or {_p8} or {_p9} or {_p10} or {_p11} or {_p12} or {_p13} or {_p14} or {_p15}:
|
| 194 | + | send "&6Odpowiedz: &c%{_o4}%"
|
| 195 | - | if arg contains {_p1}:
|
| 195 | + | if arg 1 contains {_p5}:
|
| 196 | - | send "&6Zadales pytanie: &c%arg 1%" |
| 196 | + | send "&6Zadales pytanie: &c%arg 1%" |
| 197 | - | wait 4 seconds |
| 197 | + | wait 4 seconds |
| 198 | - | send "&6Odpowiedz: &c%{_o1}%"
|
| 198 | + | send "&6Odpowiedz: &c%{_o5}%"
|
| 199 | - | if arg 1 contains {_p2}:
|
| 199 | + | if arg 1 contains {_p6}:
|
| 200 | - | send "&6Zadales pytanie: &c%arg 1%" |
| 200 | + | send "&6Zadales pytanie: &c%arg 1%" |
| 201 | - | wait 4 seconds |
| 201 | + | wait 4 seconds |
| 202 | - | send "&6Odpowiedz: &c%{_o2}%"
|
| 202 | + | send "&6Odpowiedz: &c%{_o6}%"
|
| 203 | - | if arg 1 contains {_p3}:
|
| 203 | + | if arg 1 contains {_p7}:
|
| 204 | - | send "&6Zadales pytanie: &c%arg 1%" |
| 204 | + | send "&6Zadales pytanie: &c%arg 1%" |
| 205 | - | wait 4 seconds |
| 205 | + | wait 4 seconds |
| 206 | - | send "&6Odpowiedz: &c%{_o3}%"
|
| 206 | + | send "&6Odpowiedz: &c%{_o7}%"
|
| 207 | - | if arg 1 contains {_p4}:
|
| 207 | + | if arg 1 contains {_p8}:
|
| 208 | - | send "&6Zadales pytanie: &c%arg 1%" |
| 208 | + | send "&6Zadales pytanie: &c%arg 1%" |
| 209 | - | wait 4 seconds |
| 209 | + | wait 4 seconds |
| 210 | - | send "&6Odpowiedz: &c%{_o4}%"
|
| 210 | + | send "&6Odpowiedz: &c%{_o8}%"
|
| 211 | - | if arg 1 contains {_p5}:
|
| 211 | + | if arg 1 contains {_p9}:
|
| 212 | - | send "&6Zadales pytanie: &c%arg 1%" |
| 212 | + | send "&6Zadales pytanie: &c%arg 1%" |
| 213 | - | wait 4 seconds |
| 213 | + | wait 4 seconds |
| 214 | - | send "&6Odpowiedz: &c%{_o5}%"
|
| 214 | + | send "&6Odpowiedz: &c%{_o9}%"
|
| 215 | - | if arg 1 contains {_p6}:
|
| 215 | + | if arg 1 contains {_p10}:
|
| 216 | - | send "&6Zadales pytanie: &c%arg 1%" |
| 216 | + | send "&6Zadales pytanie: &c%arg 1%" |
| 217 | - | wait 4 seconds |
| 217 | + | wait 4 seconds |
| 218 | - | send "&6Odpowiedz: &c%{_o6}%"
|
| 218 | + | send "&6Odpowiedz: &c%{_o10}%"
|
| 219 | - | if arg 1 contains {_p7}:
|
| 219 | + | if arg 1 contains {_p11}:
|
| 220 | - | send "&6Zadales pytanie: &c%arg 1%" |
| 220 | + | send "&6Zadales pytanie: &c%arg 1%" |
| 221 | - | wait 4 seconds |
| 221 | + | wait 4 seconds |
| 222 | - | send "&6Odpowiedz: &c%{_o7}%"
|
| 222 | + | send "&6Odpowiedz: &c%{_o11}%"
|
| 223 | - | if arg 1 contains {_p8}:
|
| 223 | + | if arg 1 contains {_p12}:
|
| 224 | - | send "&6Zadales pytanie: &c%arg 1%" |
| 224 | + | send "&6Zadales pytanie: &c%arg 1%" |
| 225 | - | wait 4 seconds |
| 225 | + | wait 4 seconds |
| 226 | - | send "&6Odpowiedz: &c%{_o8}%"
|
| 226 | + | send "&6Odpowiedz: &c%{_o12}%"
|
| 227 | - | if arg 1 contains {_p9}:
|
| 227 | + | if arg 1 contains {_p13}:
|
| 228 | - | send "&6Zadales pytanie: &c%arg 1%" |
| 228 | + | send "&6Zadales pytanie: &c%arg 1%" |
| 229 | - | wait 4 seconds |
| 229 | + | wait 4 seconds |
| 230 | - | send "&6Odpowiedz: &c%{_o9}%"
|
| 230 | + | send "&6Odpowiedz: &c%{_o13}%"
|
| 231 | - | if arg 1 contains {_p10}:
|
| 231 | + | if arg 1 contains {_p14}:
|
| 232 | - | send "&6Zadales pytanie: &c%arg 1%" |
| 232 | + | send "&6Zadales pytanie: &c%arg 1%" |
| 233 | - | wait 4 seconds |
| 233 | + | wait 4 seconds |
| 234 | - | send "&6Odpowiedz: &c%{_o10}%"
|
| 234 | + | send "&6Odpowiedz: &c%{_o14}%"
|
| 235 | - | if arg 1 contains {_p11}:
|
| 235 | + | if arg 1 contains {_p15}:
|
| 236 | - | send "&6Zadales pytanie: &c%arg 1%" |
| 236 | + | send "&6Zadales pytanie: &c%arg 1%" |
| 237 | - | wait 4 seconds |
| 237 | + | wait 4 seconds |
| 238 | - | send "&6Odpowiedz: &c%{_o11}%"
|
| 238 | + | send "&6Odpowiedz: w&c%{_o15}%"
|
| 239 | - | if arg 1 contains {_p12}:
|
| 239 | + | else: |
| 240 | - | send "&6Zadales pytanie: &c%arg 1%" |
| 240 | + | send "&6Zadales pytanie: &c%arg 1%" |
| 241 | - | wait 4 seconds |
| 241 | + | wait 4 seconds |
| 242 | - | send "&6Odpowiedz: &c%{_o12}%"
|
| 242 | + | wf "## %player% nie otrzymal odpowiedzi na pytanie: %arg 1% ##" to "plugins/xBot/pytaniabezodpowiedzi.yml" |
| 243 | - | if arg 1 contains {_p13}:
|
| 243 | + | send "&6Niestety, tego pytania nie ma w bazie ;( Administracja zostala o nim powiadomiona." |
| 244 | - | send "&6Zadales pytanie: &c%arg 1%" |
| 244 | + | else: |
| 245 | - | wait 4 seconds |
| 245 | + | send "&4Brak uprawnien..." |
| 246 | - | send "&6Odpowiedz: &c%{_o13}%"
|
| 246 | + | |
| 247 | - | if arg 1 contains {_p14}:
|
| 247 | + | if {chat} is false:
|
| 248 | - | send "&6Zadales pytanie: &c%arg 1%" |
| 248 | + | if player has permission "xbot.admin": |
| 249 | - | wait 4 seconds |
| 249 | + | stop |
| 250 | - | send "&6Odpowiedz: &c%{_o14}%"
|
| 250 | + | else: |
| 251 | - | if arg 1 contains {_p15}:
|
| 251 | + | cancel event |
| 252 | - | send "&6Zadales pytanie: &c%arg 1%" |
| 252 | + | send "&6Chat jest &cwylaczony&6." |
| 253 | - | wait 4 seconds |
| 253 | + | if message contains "fhmc" or "ench" or "www" or "gomc" or "hostmc" or "http" or "csrv" or "srvmc" or "mcvr" or ".pl" or ".net" or ".com" or ".eu" or ".ru": |
| 254 | - | send "&6Odpowiedz: w&c%{_o15}%"
|
| 254 | + | wf "## Reklamowal: %player% Napisal: %message% ##" to "plugins/xBot/ktoreklamowal.yml" |
| 255 | - | else: |
| 255 | + | cancel event |
| 256 | - | send "&6Zadales pytanie: &c%arg 1%" |
| 256 | + | kick the player due to "&4Nie reklamuj serwerow i stron!!!" |
| 257 | - | wait 4 seconds |
| 257 | + | |
| 258 | - | wf "## %player% nie otrzymal odpowiedzi na pytanie: %arg 1% ##" to "plugins/xBot/pytaniabezodpowiedzi.yml" |
| 258 | + | if folder "plugins/xBot" doesn't exists: |
| 259 | - | send "&6Niestety, tego pytania nie ma w bazie ;( Administracja zostala o nim powiadomiona." |
| 259 | + | create folder "plugins/xBot" |
| 260 | - | else: |
| 260 | + | if file "plugins/xBot/config.yml" doesn't exists: |
| 261 | - | send "&4Brak permisji..." |
| 261 | + | create file "plugins/xBot/config.yml" |
| 262 | - | |
| 262 | + | wf "## Tutaj wpisz pytania i odpowiedzi. ##" to "plugins/xBot/config.yml" |
| 263 | set "pytanie1" to "tojestpytanie1" in yaml file "plugins/xBot/config.yml" | |
| 264 | - | if {chat} is false:
|
| 264 | + | set "odp1" to "tojestodpowiedz1" in yaml file "plugins/xBot/config.yml" |
| 265 | - | if player has permission "xbot.admin": |
| 265 | + | set "pytanie2" to "tojestpytanie2" in yaml file "plugins/xBot/config.yml" |
| 266 | - | stop |
| 266 | + | set "odp2" to "tojestodpowiedz2" in yaml file "plugins/xBot/config.yml" |
| 267 | - | else: |
| 267 | + | set "pytanie3" to "tojestpytanie3" in yaml file "plugins/xBot/config.yml" |
| 268 | - | cancel event |
| 268 | + | set "odp3" to "tojestodpowiedz3" in yaml file "plugins/xBot/config.yml" |
| 269 | - | send "&6Chat jest &cwylaczony&6." |
| 269 | + | set "pytanie4" to "tojestpytanie4" in yaml file "plugins/xBot/config.yml" |
| 270 | - | if message contains "fhmc" or "ench" or "www" or "gomc" or "hostmc" or "http" or "csrv" or "srvmc" or "mcvr" or ".pl" or ".net" or ".com" or ".eu": |
| 270 | + | set "odp4" to "tojestodpowiedz4" in yaml file "plugins/xBot/config.yml" |
| 271 | - | wf "## Reklamowal: %player% Napisal: %message% ##" to "plugins/xBot/ktoreklamowal.yml" |
| 271 | + | set "pytanie5" to "tojestpytanie5" in yaml file "plugins/xBot/config.yml" |
| 272 | - | cancel event |
| 272 | + | set "odp5" to "tojestodpowiedz5" in yaml file "plugins/xBot/config.yml" |
| 273 | - | kick the player due to "&4Nie reklamuj serwerow i stron!!!" |
| 273 | + | set "pytanie6" to "tojestpytanie6" in yaml file "plugins/xBot/config.yml" |
| 274 | - | |
| 274 | + | set "odp6" to "tojestodpowiedz6" in yaml file "plugins/xBot/config.yml" |
| 275 | set "pytanie7" to "tojestpytanie7" in yaml file "plugins/xBot/config.yml" | |
| 276 | - | if folder "plugins/xBot" doesn't exists: |
| 276 | + | set "odp7" to "tojestodpowiedz7" in yaml file "plugins/xBot/config.yml" |
| 277 | - | create folder "plugins/xBot" |
| 277 | + | set "pytanie8" to "tojestpytanie8" in yaml file "plugins/xBot/config.yml" |
| 278 | - | if file "plugins/xBot/config.yml" doesn't exists: |
| 278 | + | set "odp8" to "tojestodpowiedz8" in yaml file "plugins/xBot/config.yml" |
| 279 | - | create file "plugins/xBot/config.yml" |
| 279 | + | set "pytanie9" to "tojestpytanie9" in yaml file "plugins/xBot/config.yml" |
| 280 | - | wf "## Tutaj wpisz pytania i odpowiedzi. ##" to "plugins/xBot/config.yml" |
| 280 | + | set "odp9" to "tojestodpowiedz9" in yaml file "plugins/xBot/config.yml" |
| 281 | - | set "pytanie1" to "tojestpytanie1" in yaml file "plugins/xBot/config.yml" |
| 281 | + | set "pytanie10" to "tojestpytanie10" in yaml file "plugins/xBot/config.yml" |
| 282 | - | set "odp1" to "tojestodpowiedz1" in yaml file "plugins/xBot/config.yml" |
| 282 | + | set "odp10" to "tojestodpowiedz10" in yaml file "plugins/xBot/config.yml" |
| 283 | - | set "pytanie2" to "tojestpytanie2" in yaml file "plugins/xBot/config.yml" |
| 283 | + | set "pytanie11" to "tojestpytanie11" in yaml file "plugins/xBot/config.yml" |
| 284 | - | set "odp2" to "tojestodpowiedz2" in yaml file "plugins/xBot/config.yml" |
| 284 | + | set "odp11" to "tojestodpowiedz11" in yaml file "plugins/xBot/config.yml" |
| 285 | - | set "pytanie3" to "tojestpytanie3" in yaml file "plugins/xBot/config.yml" |
| 285 | + | set "pytanie12" to "tojestpytanie12" in yaml file "plugins/xBot/config.yml" |
| 286 | - | set "odp3" to "tojestodpowiedz3" in yaml file "plugins/xBot/config.yml" |
| 286 | + | set "odp12" to "tojestodpowiedz12" in yaml file "plugins/xBot/config.yml" |
| 287 | - | set "pytanie4" to "tojestpytanie4" in yaml file "plugins/xBot/config.yml" |
| 287 | + | set "pytanie13" to "tojestpytanie13" in yaml file "plugins/xBot/config.yml" |
| 288 | - | set "odp4" to "tojestodpowiedz4" in yaml file "plugins/xBot/config.yml" |
| 288 | + | set "odp13" to "tojestodpowiedz13" in yaml file "plugins/xBot/config.yml" |
| 289 | - | set "pytanie5" to "tojestpytanie5" in yaml file "plugins/xBot/config.yml" |
| 289 | + | set "pytanie14" to "tojestpytanie14" in yaml file "plugins/xBot/config.yml" |
| 290 | - | set "odp5" to "tojestodpowiedz5" in yaml file "plugins/xBot/config.yml" |
| 290 | + | set "odp14" to "tojestodpowiedz14" in yaml file "plugins/xBot/config.yml" |
| 291 | - | set "pytanie6" to "tojestpytanie6" in yaml file "plugins/xBot/config.yml" |
| 291 | + | set "pytanie15" to "tojestpytanie15" in yaml file "plugins/xBot/config.yml" |
| 292 | - | set "odp6" to "tojestodpowiedz6" in yaml file "plugins/xBot/config.yml" |
| 292 | + | set "odp15" to "tojestodpowiedz15" in yaml file "plugins/xBot/config.yml" |
| 293 | - | set "pytanie7" to "tojestpytanie7" in yaml file "plugins/xBot/config.yml" |
| 293 | + | if file "plugins/xBot/ktoreklamowal.yml" doesn't exists: |
| 294 | - | set "odp7" to "tojestodpowiedz7" in yaml file "plugins/xBot/config.yml" |
| 294 | + | create file "plugins/xBot/ktoreklamowal.yml" |
| 295 | - | set "pytanie8" to "tojestpytanie8" in yaml file "plugins/xBot/config.yml" |
| 295 | + | if file "plugins/xBot/pytaniabezodpowiedzi.yml" doesn't exists: |
| 296 | - | set "odp8" to "tojestodpowiedz8" in yaml file "plugins/xBot/config.yml" |
| 296 | + | create file "plugins/xBot/pytaniabezodpowiedzi.yml" |
| 297 | - | set "pytanie9" to "tojestpytanie9" in yaml file "plugins/xBot/config.yml" |
| 297 | + | if file "plugins/xBot/zgloszeniagraczy.yml" doesn't exists: |
| 298 | - | set "odp9" to "tojestodpowiedz9" in yaml file "plugins/xBot/config.yml" |
| 298 | + | create file "plugins/xBot/zgloszeniagraczy.yml" |
| 299 | - | set "pytanie10" to "tojestpytanie10" in yaml file "plugins/xBot/config.yml" |
| 299 | + | if file "plugins/xBot/zgloszeniabugow.yml" doesn't exists: |
| 300 | - | set "odp10" to "tojestodpowiedz10" in yaml file "plugins/xBot/config.yml" |
| 300 | + | create file "plugins/xBot/zgloszaniabugow.yml" |