maciej939

napsz skrypt na /stwórzbasa nazwa życie bosa /ustawbsa nazwa /stwórzstruktura nazwa /ustawstruktura nazwa /stwórzcusotomufke nazwa umiejętności kuldałn

Kodari AI
KodariMar 7 at 6:23 am 5,919 (v2)

Stworzę system customowych bosów, struktur i umiejętności z polskimi komendami.

CustomBossSystem
Zaawansowany system do tworzenia i zarządzania customowymi bossami, strukturami oraz umiejętnościami. Umożliwia tworzenie bosów z niestandardowym zdrowiem i nazwą, zapisywanie i wklejanie struktur budowlanych, oraz definiowanie specjalnych umiejętności. Includes full boss spawn management, structure saving system, and custom ability framework with cooldowns. Perfect for RPG and adventure servers.

Utworzyłem kompletny system customowych bosów z umiejętnościami i strukturami. Użytkownik musi skopiować pliki .sk do plugins/Skript/scripts/ i wykonać /skript reload all.

maciej939

popraw skrypt boss-system.sk dodaj tam komende /ustawdrop nazwabosa

Kodari can make mistakes. Review important code before using.
Files
abilities-system.sk
boss-system.sk
README.txt
structure-system.sk
Code
4 312
structure-system.sk
# System Struktur
# Autor: CustomBossSystem
# Wersja: 1.0

options:
    prefix: &6[&bStruktura&6]&r
    admin-perm: structure.admin

command /stwórzstrukture <text>:
    aliases: /stworzstrukture
    permission: {@admin-perm}
    trigger:
        if {structure::%arg-1%::exists} is set:
            send "{@prefix} &cStruktura o nazwie &e%arg-1% &cjuż istnieje!"
            stop
        if player is not sneaking:
            send "{@prefix} &cMusisz kucać i patrzeć się na pierwszy blok struktury!"
            send "{@prefix} &7Następnie użyj tej komendy ponownie"
            stop
        set {_target} to target block of player
        if {_target} is air:
            send "{@prefix} &cMusisz patrzeć się na blok!"
            stop
        set {structure::%arg-1%::pos1} to location of {_target}
        send "{@prefix} &aPierwszy punkt ustawiony dla &e%arg-1%"
        send "{@prefix} &7Teraz wstań i ustaw drugi punkt komendą: /ustawstrukture %arg-1%"

command /ustawstrukture <text>:
    aliases: /ustawstrukture
    permission: {@admin-perm}
    trigger:
        if {structure::%arg-1%::pos1} is not set:
            send "{@prefix} &cNie ustawiono pierwszego punktu dla &e%arg-1%"
            send "{@prefix} &7Użyj: /stwórzstrukture %arg-1%"
            stop
        if player is not sneaking:
            send "{@prefix} &cMusisz kucać i patrzeć się na drugi blok struktury!"
            stop
        set {_target} to target block of player
        if {_target} is air:
            send "{@prefix} &cMusisz patrzeć się na blok!"
            stop
        set {structure::%arg-1%::pos2} to location of {_target}
        set {structure::%arg-1%::exists} to true
        send "{@prefix} &aDrugi punkt ustawiony!"
        send "{@prefix} &aStruktura &e%arg-1% &azostała zapisana!"
        set {_pos1} to {structure::%arg-1%::pos1}
        set {_pos2} to {structure::%arg-1%::pos2}
        set {_blocks} to distance between {_pos1} and {_pos2}
        send "{@prefix} &7Rozmiar: &f~%.0{_blocks}% bloków"

command /wklejstrukture <text>:
    aliases: /wklejstrukture
    permission: {@admin-perm}
    trigger:
        if {structure::%arg-1%::exists} is not set:
            send "{@prefix} &cStruktura o nazwie &e%arg-1% &cnie istnieje!"
            stop
        set {_target} to target block of player
        if {_target} is air:
            send "{@prefix} &cMusisz patrzeć się na blok gdzie ma być wklejona struktura!"
            stop
        send "{@prefix} &7Wklejanie struktury &e%arg-1%&7..."
        send "{@prefix} &c&lUWAGA: &7Funkcja wklejania jest uproszczona"
        send "{@prefix} &7Użyj pluginu WorldEdit dla zaawansowanego kopiowania"
        set {structure::%arg-1%::paste-location} to location of {_target}
        send "{@prefix} &aLokacja wklejenia zapisana dla &e%arg-1%"

command /usunstrukture <text>:
    aliases: /usunstrukture
    permission: {@admin-perm}
    trigger:
        if {structure::%arg-1%::exists} is not set:
            send "{@prefix} &cStruktura o nazwie &e%arg-1% &cnie istnieje!"
            stop
        delete {structure::%arg-1%::*}
        send "{@prefix} &aUsunięto strukturę &e%arg-1%"

command /listastruktur:
    permission: {@admin-perm}
    trigger:
        send "{@prefix} &eZapisane struktury:"
        loop {structure::*}:
            if loop-index contains "::exists":
                set {_name} to loop-index
                replace all "::exists" with "" in {_name}
                send "&a● &e%{_name}%"

on script load:
    send "{@prefix} &aSystem struktur został załadowany!" to console