Skript Paylaşımı WMCounter - Full otomason | Kritik kombo sayma skripti

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

StayLing

Fırında Isıttığım İlk Taş
Katılım
2 Haziran 2021
Mesajlar
78
Elmaslar
30
Puan
9.055
Minecraft
_StayLing_

Discord:

StayLing

GIRIS

Herkese merhaba, iyi forumlar dilerim.

Uzun zaman önce PVP sunucum için kodladığım YAML destekli kombo sayma skriptini sizlerle ücretsiz olarak paylaşmak istedim.
Çok fazla özelliği yok, kritik hasar sesi ve özel mesaj ekleme gibi özellikler bulunuyor. Pvp sunucularınızda gönül rahatlığıyla kullanabilirsiniz.

TPS - MSPT için çok büyük bir etkisi yok, sunucunuzda lag yaratmayacağını düşünüyorum.

GORSELLER

seriyikaybettiniz.webp

durdurulamıyor.webp


SKRIPT
YAML:
# Pre-Loading

load:
    YAML()
 
# Yaml

function YAML():
    load yaml "plugins/WMCounter/Config.yml" as "config"
    if yaml "config" is empty:
        set yaml value "Settings.Prefix" from "config" to "&fᴡᴍᴄᴏᴜɴᴛᴇʀ &8&L>"
     
        save yaml "config"
        send "&fᴡᴍᴄᴏᴜɴᴛᴇʀ &8&L> &fConfig.yml &7file created." to console
 
    load yaml "plugins/WMCounter/Gui/Settings.yml" as "gui"
    if yaml "gui" is empty:
        set yaml value "Menu.Gui-Rows" from "gui" to "4"
        set yaml value "Menu.Gui-Name" from "gui" to "ʜᴇsᴀᴘ ᴀʏᴀʀʟᴀʀı"
     
        set yaml value "Menu.Fill-Item.Status" from "gui" to "true"
        set yaml value "Menu.Fill-Item.Name" from "gui" to "&r"
        set yaml value "Menu.Fill-Item.Material" from "gui" to "gray stained glass pane"
        set yaml value "Menu.Fill-Item.CustomModelData.Status" from "gui" to "false"
        set yaml value "Menu.Fill-Item.CustomModelData.ID" from "gui" to ""
     
        set yaml value "Menu.Combo-Counter.Name" from "gui" to "&eᴄᴏᴍʙᴏ sᴀʏᴀʀ"
        add "" and "&7sᴀᴠᴀsıʀᴋᴇɴ ʏᴀᴘᴛıɢıɴıᴢ" and "&7ᴄᴏᴍʙᴏ sᴀʏısıɴı" and "&7ɢᴏsᴛᴇʀᴇɴ sᴀʏᴀᴄᴛıʀ" and "" and " &f• ᴅᴜʀᴜᴍ: {C-Status}" and "" and "&eᴅᴇɢısᴛıʀᴍᴇᴋ ıᴄıɴ ᴛıᴋʟᴀ" to yaml list "Menu.Combo-Counter.Lore" from "gui"
        set yaml value "Menu.Combo-Counter.Slot" from "gui" to "11"
        set yaml value "Menu.Combo-Counter.Material" from "gui" to "netherite sword"
        set yaml value "Menu.Combo-Counter.CustomModelData.Status" from "gui" to "false"
        set yaml value "Menu.Combo-Counter.CustomModelData.ID" from "gui" to ""
     
        set yaml value "Menu.Combo-Sound.Name" from "gui" to "&eᴄᴏᴍʙᴏ sᴇsɪ"
        add "" and "&7ᴄᴏᴍʙᴏ ᴀᴛᴀʀᴋᴇɴ" and "&7ᴠᴜʀᴅᴜɢᴜɴᴜᴢ ᴄᴏᴍʙᴏʏᴀ ɢᴏʀᴇ" and "&7sᴇs ᴄıᴋᴀʀıʀ" and "" and " &f• ᴅᴜʀᴜᴍ: {CS-Status}" and "" and "&eᴅᴇɢısᴛıʀᴍᴇᴋ ıᴄıɴ ᴛıᴋʟᴀ" to yaml list "Menu.Combo-Sound.Lore" from "gui"
        set yaml value "Menu.Combo-Sound.Slot" from "gui" to "20"
        set yaml value "Menu.Combo-Sound.Material" from "gui" to "note block"
        set yaml value "Menu.Combo-Sound.CustomModelData.Status" from "gui" to "false"
        set yaml value "Menu.Combo-Sound.CustomModelData.ID" from "gui" to ""
     
        save yaml "gui"
        send "&fᴡᴍᴄᴏᴜɴᴛᴇʀ &8&L> &fGui/Settings.yml &7file created." to console
     
    load yaml "plugins/WMCounter/Language.yml" as "lang"
    if yaml "lang" is empty:
        set yaml value "ActionBars.Combo-Counter.1.Message" from "lang" to "&a⚔ Combo ⚔"
        set yaml value "ActionBars.Combo-Counter.1.Sound-Effect" from "lang" to "block.note_block.pling"
        set yaml value "ActionBars.Combo-Counter.1.Pitch" from "lang" to "0.5"
        set yaml value "ActionBars.Combo-Counter.2.Message" from "lang" to "&a⚔ Çifte combo ⚔"
        set yaml value "ActionBars.Combo-Counter.2.Sound-Effect" from "lang" to "block.note_block.pling"
        set yaml value "ActionBars.Combo-Counter.2.Pitch" from "lang" to "0.6"
        set yaml value "ActionBars.Combo-Counter.Finnaly.Message" from "lang" to "&k... &f | &a⚔ Durdurulamıyor ⚔&f | &k..."
        set yaml value "ActionBars.Combo-Counter.Finnaly.Sound-Effect" from "lang" to "block.note_block.pling"
        set yaml value "ActionBars.Combo-Counter.Finnaly.Pitch" from "lang" to "2"
        set yaml value "ActionBars.Warn.Combo-Counter.Series-Over.Message" from "lang" to "&cᴄᴏᴍʙᴏ sᴇʀɪsɪɴɪ ᴋᴀʏʙᴇᴛᴛɪɴɪᴢ"
        set yaml value "ActionBars.Warn.Combo-Counter.Series-Over.Sound-Effect" from "lang" to "block.anvil.land"
        set yaml value "ActionBars.Warn.Combo-Counter.Series-Over.Pitch" from "lang" to "2"
     
        save yaml "lang"
        send "&fᴡᴍᴄᴏᴜɴᴛᴇʀ &8&L> &fLanguage.yml &7file created." to console
 
# Event

on damage:
    if attacker is a player:
        if hit is critical:
            load yaml "/plugins/WMCounter/UserData/%attacker's uuid%" as "db"
            if yaml value "Settings.Combo-Counter" from "db" is true:
                add 1 to {combo::%attacker%}
                set {_A::%attacker%} to {combo::%attacker%}
                if yaml value "ActionBars.Combo-Counter.%{combo::%attacker%}%" from "lang" is set:
                    send action bar yaml value "ActionBars.Combo-Counter.%{combo::%attacker%}%.Message" from "lang" to attacker
                    send title "&r" with subtitle "&c%victim's health% ❤" to attacker for 1 seconds
                    if yaml value "Settings.Combo-Sound" from "db" is true:
                        set {_Pitch} to yaml value "ActionBars.Combo-Counter.%{combo::%attacker%}%.Pitch" from "lang"
                        play sound "block.note_block.pling" at volume 1 at pitch {_Pitch} to attacker
                else:
                    send title "&r" with subtitle "&c%victim's health% ❤" to attacker for 1 seconds
                    send action bar yaml value "ActionBars.Combo-Counter.Finnaly.Message" from "lang" to attacker
                    if yaml value "Settings.Combo-Sound" from "db" is true:
                        set {_Pitch} to yaml value "ActionBars.Combo-Counter.Finnaly.Pitch" from "lang"
                        play sound "%(yaml value "ActionBars.Combo-Counter.Finnaly.Sound-Effect" from "lang")%" at volume 1 at pitch {_Pitch} to attacker
            else:
                if {combo::%attacker%} >= 1:
                    delete {combo::%attacker%}
        else:
            if {combo::%attacker%} >= 1:
                delete {combo::%attacker%}
                if yaml value "Settings.Combo-Counter" from "db" is true:
                    send action bar yaml value "ActionBars.Warn.Combo-Counter.Series-Over.Message" from "lang" to attacker
                    if yaml value "Settings.Combo-Sound" from "db" is true:
                        set {_Pitch} to yaml value "ActionBars.Warn.Combo-Counter.Series-Over.Pitch" from "lang"
                        play sound yaml value "ActionBars.Warn.Combo-Counter.Series-Over.Sound-Effect" from "lang" at volume 2 at pitch {_Pitch} to attacker
             
on death:
    if {combo::%victim%} >= 1:
        delete {combo::%victim%}
    if {combo::%attacker%} >= 1:
        delete {combo::%attacker%}
        send action bar yaml value "ActionBars.Warn.Combo-Counter.Series-Over" from "lang" to attacker

on join:
    load yaml "/plugins/WMCounter/UserData/%player's uuid%" as "db"
    if yaml "db" is empty:
        set yaml value "Information.Player-Name" from "db" to "%player%"
        set yaml value "Information.First-Entry-Date" from "db" to "%now%"
     
        set yaml value "Settings.Combo-Counter" from "db" to "true"
        set yaml value "Settings.Combo-Sound" from "db" to "true"
        save yaml "db"
        send "&fᴡᴍᴄᴏᴜɴᴛᴇʀ &8&L> &c[%player%] &8&L> &f/plugins/WMCounter/UserData/%player's uuid%.yml &7file created." to console
     
    if {combo::%player%} >= 1:
        delete {combo::%player%}
 
on quit:
    if {combo::%player%} >= 1:
        delete {combo::%player%}
 
# Commands

command ayarlar:
    trigger:
        Ayarlar(player)

# Functions

function Ayarlar(p: player):
    create a gui with virtual chest inventory with size yaml value "Menu.Gui-Rows" from "gui" named yaml value "Menu.Gui-Name" from "gui":
 
        if yaml value "Menu.Fill-Item.Status" from "gui" is true:
            if yaml value "Menu.Fill-Item.CustomModelData.Status" from "gui" is true:
                set {_Item::1} to (yaml value "Menu.Fill-Item.Material" from "gui" parsed as item)
                set custom model data of {_Item::1} to (yaml value "Menu.Fill-Item.CustomModelData.ID" from "gui" parsed as number)
                make gui slot (integers between 0 and (yaml value "Menu.Gui-Rows" from "gui")*9-1) with {_Item} named yaml value "Menu.Fill-Item.Name" from "gui"
            else:
                make gui slot (integers between 0 and (yaml value "Menu.Gui-Rows" from "gui")*9-1) with (yaml value "Menu.Fill-Item.Material" from "gui" parsed as item) named yaml value "Menu.Fill-Item.Name" from "gui"
             
        set {_CL::*} to yaml list "Menu.Combo-Counter.Lore" from "gui"
        load yaml "/plugins/WMCounter/UserData/%{_p}'s uuid%" as "db"
        if yaml value "Settings.Combo-Counter" from "db" is true:
            replace all "{C-Status}" with "&aᴀᴄıᴋ" in {_CL::*}
        else:
            replace all "{C-Status}" with "&cᴋᴀᴘᴀʟɪ" in {_CL::*}
             
        if yaml value "Menu.Combo-Counter.CustomModelData.Status" from "gui" is true:
            set {_Item::1} to (yaml value "Menu.Combo-Counter.Material" from "gui" parsed as item)
            set custom model data of {_Item::1} to (yaml value "Menu.Combo-Counter.CustomModelData.ID" from "gui" parsed as number)
            make gui slot yaml value "Menu.Combo-Counter.Slot" from "gui" with {_Item} named yaml value "Menu.Combo-Counter.Name" from "gui" with lore colored {_CL::*}:
                load yaml "/plugins/WMCounter/UserData/%{_p}'s uuid%" as "db"
                if yaml value "Settings.Combo-Counter" from "db" is true:
                    set yaml value "Settings.Combo-Counter" from "db" to "false"
                    save yaml "db"
                    Ayarlar(player)
                else:
                    set yaml value "Settings.Combo-Counter" from "db" to "true"
                    save yaml "db"
                    Ayarlar(player)
        else:
            make gui slot yaml value "Menu.Combo-Counter.Slot" from "gui" with (yaml value "Menu.Combo-Counter.Material" from "gui" parsed as item) named yaml value "Menu.Combo-Counter.Name" from "gui" with lore colored {_CL::*}:
                load yaml "/plugins/WMCounter/UserData/%{_p}'s uuid%" as "db"
                if yaml value "Settings.Combo-Counter" from "db" is true:
                    set yaml value "Settings.Combo-Counter" from "db" to "false"
                    save yaml "db"
                    Ayarlar(player)
                else:
                    set yaml value "Settings.Combo-Counter" from "db" to "true"
                    save yaml "db"
                    Ayarlar(player)
                 
        set {_CS::*} to yaml list "Menu.Combo-Sound.Lore" from "gui"
        load yaml "/plugins/WMCounter/UserData/%{_p}'s uuid%" as "db"
        if yaml value "Settings.Combo-Sound" from "db" is true:
            replace all "{CS-Status}" with "&aᴀᴄıᴋ" in {_CS::*}
        else:
            replace all "{CS-Status}" with "&cᴋᴀᴘᴀʟɪ" in {_CS::*}
               
        if yaml value "Settings.Combo-Counter" from "db" is true:
            if yaml value "Menu.Combo-Sound.CustomModelData.Status" from "gui" is true:
                set {_Item::1} to (yaml value "Menu.Combo-Sound.Material" from "gui" parsed as item)
                set custom model data of {_Item::1} to (yaml value "Menu.Combo-Sound.CustomModelData.ID" from "gui" parsed as number)
                make gui slot yaml value "Menu.Combo-Sound.Slot" from "gui" with {_Item} named yaml value "Menu.Combo-Sound.Name" from "gui" with lore colored {_CS::*}:
                    load yaml "/plugins/WMCounter/UserData/%{_p}'s uuid%" as "db"
                    if yaml value "Settings.Combo-Sound" from "db" is true:
                        set yaml value "Settings.Combo-Sound" from "db" to "false"
                        save yaml "db"
                        Ayarlar(player)
                    else:
                        set yaml value "Settings.Combo-Sound" from "db" to "true"
                        save yaml "db"
                        Ayarlar(player)
            else:
                make gui slot yaml value "Menu.Combo-Sound.Slot" from "gui" with (yaml value "Menu.Combo-Sound.Material" from "gui" parsed as item) named yaml value "Menu.Combo-Sound.Name" from "gui" with lore colored {_CS::*}:
                    load yaml "/plugins/WMCounter/UserData/%{_p}'s uuid%" as "db"
                    if yaml value "Settings.Combo-Sound" from "db" is true:
                        set yaml value "Settings.Combo-Sound" from "db" to "false"
                        save yaml "db"
                        Ayarlar(player)
                    else:
                        set yaml value "Settings.Combo-Sound" from "db" to "true"
                        save yaml "db"
                        Ayarlar(player)
 
    open last gui to {_p}

ADDONLAR
Skript

Skript-YAML
Skript-GUI

SkBee

Not: /Ayarlar komutunu kullanarak özellikleri kendinizde açıp kapatabilirsiniz.
 
Son düzenleme:
PVP Temelli sunucular için cok iyi bir özellik olacagını dusunuyorum ekstradan bahsettiginiz gibi mspt ve tps e etki etmemeside ayrı bir güzellik ellerinize saglık şimdiden
 
PVP Temelli sunucular için cok iyi bir özellik olacagını dusunuyorum ekstradan bahsettiginiz gibi mspt ve tps e etki etmemeside ayrı bir güzellik ellerinize saglık şimdiden
Yorumunuz için teşekkür ederim ❤️
 
Skriptin eklenti versiyonu yayınlandı!
 
GIRIS

Herkese merhaba, iyi forumlar dilerim.

Uzun zaman önce PVP sunucum için kodladığım YAML destekli kombo sayma skriptini sizlerle ücretsiz olarak paylaşmak istedim.
Çok fazla özelliği yok, kritik hasar sesi ve özel mesaj ekleme gibi özellikler bulunuyor. Pvp sunucularınızda gönül rahatlığıyla kullanabilirsiniz.

TPS - MSPT için çok büyük bir etkisi yok, sunucunuzda lag yaratmayacağını düşünüyorum.

GORSELLER

Ekli dosyayı görüntüle 247095

Ekli dosyayı görüntüle 247096

SKRIPT
YAML:
# Pre-Loading

load:
    YAML()
 
# Yaml

function YAML():
    load yaml "plugins/WMCounter/Config.yml" as "config"
    if yaml "config" is empty:
        set yaml value "Settings.Prefix" from "config" to "&fᴡᴍᴄᴏᴜɴᴛᴇʀ &8&L>"
   
        save yaml "config"
        send "&fᴡᴍᴄᴏᴜɴᴛᴇʀ &8&L> &fConfig.yml &7file created." to console
 
    load yaml "plugins/WMCounter/Gui/Settings.yml" as "gui"
    if yaml "gui" is empty:
        set yaml value "Menu.Gui-Rows" from "gui" to "4"
        set yaml value "Menu.Gui-Name" from "gui" to "ʜᴇsᴀᴘ ᴀʏᴀʀʟᴀʀı"
   
        set yaml value "Menu.Fill-Item.Status" from "gui" to "true"
        set yaml value "Menu.Fill-Item.Name" from "gui" to "&r"
        set yaml value "Menu.Fill-Item.Material" from "gui" to "gray stained glass pane"
        set yaml value "Menu.Fill-Item.CustomModelData.Status" from "gui" to "false"
        set yaml value "Menu.Fill-Item.CustomModelData.ID" from "gui" to ""
   
        set yaml value "Menu.Combo-Counter.Name" from "gui" to "&eᴄᴏᴍʙᴏ sᴀʏᴀʀ"
        add "" and "&7sᴀᴠᴀsıʀᴋᴇɴ ʏᴀᴘᴛıɢıɴıᴢ" and "&7ᴄᴏᴍʙᴏ sᴀʏısıɴı" and "&7ɢᴏsᴛᴇʀᴇɴ sᴀʏᴀᴄᴛıʀ" and "" and " &f• ᴅᴜʀᴜᴍ: {C-Status}" and "" and "&eᴅᴇɢısᴛıʀᴍᴇᴋ ıᴄıɴ ᴛıᴋʟᴀ" to yaml list "Menu.Combo-Counter.Lore" from "gui"
        set yaml value "Menu.Combo-Counter.Slot" from "gui" to "11"
        set yaml value "Menu.Combo-Counter.Material" from "gui" to "netherite sword"
        set yaml value "Menu.Combo-Counter.CustomModelData.Status" from "gui" to "false"
        set yaml value "Menu.Combo-Counter.CustomModelData.ID" from "gui" to ""
   
        set yaml value "Menu.Combo-Sound.Name" from "gui" to "&eᴄᴏᴍʙᴏ sᴇsɪ"
        add "" and "&7ᴄᴏᴍʙᴏ ᴀᴛᴀʀᴋᴇɴ" and "&7ᴠᴜʀᴅᴜɢᴜɴᴜᴢ ᴄᴏᴍʙᴏʏᴀ ɢᴏʀᴇ" and "&7sᴇs ᴄıᴋᴀʀıʀ" and "" and " &f• ᴅᴜʀᴜᴍ: {CS-Status}" and "" and "&eᴅᴇɢısᴛıʀᴍᴇᴋ ıᴄıɴ ᴛıᴋʟᴀ" to yaml list "Menu.Combo-Sound.Lore" from "gui"
        set yaml value "Menu.Combo-Sound.Slot" from "gui" to "20"
        set yaml value "Menu.Combo-Sound.Material" from "gui" to "note block"
        set yaml value "Menu.Combo-Sound.CustomModelData.Status" from "gui" to "false"
        set yaml value "Menu.Combo-Sound.CustomModelData.ID" from "gui" to ""
   
        save yaml "gui"
        send "&fᴡᴍᴄᴏᴜɴᴛᴇʀ &8&L> &fGui/Settings.yml &7file created." to console
   
    load yaml "plugins/WMCounter/Language.yml" as "lang"
    if yaml "lang" is empty:
        set yaml value "ActionBars.Combo-Counter.1.Message" from "lang" to "&a⚔ Combo ⚔"
        set yaml value "ActionBars.Combo-Counter.1.Sound-Effect" from "lang" to "block.note_block.pling"
        set yaml value "ActionBars.Combo-Counter.1.Pitch" from "lang" to "0.5"
        set yaml value "ActionBars.Combo-Counter.2.Message" from "lang" to "&a⚔ Çifte combo ⚔"
        set yaml value "ActionBars.Combo-Counter.2.Sound-Effect" from "lang" to "block.note_block.pling"
        set yaml value "ActionBars.Combo-Counter.2.Pitch" from "lang" to "0.6"
        set yaml value "ActionBars.Combo-Counter.Finnaly.Message" from "lang" to "&k... &f | &a⚔ Durdurulamıyor ⚔&f | &k..."
        set yaml value "ActionBars.Combo-Counter.Finnaly.Sound-Effect" from "lang" to "block.note_block.pling"
        set yaml value "ActionBars.Combo-Counter.Finnaly.Pitch" from "lang" to "2"
        set yaml value "ActionBars.Warn.Combo-Counter.Series-Over.Message" from "lang" to "&cᴄᴏᴍʙᴏ sᴇʀɪsɪɴɪ ᴋᴀʏʙᴇᴛᴛɪɴɪᴢ"
        set yaml value "ActionBars.Warn.Combo-Counter.Series-Over.Sound-Effect" from "lang" to "block.anvil.land"
        set yaml value "ActionBars.Warn.Combo-Counter.Series-Over.Pitch" from "lang" to "2"
   
        save yaml "lang"
        send "&fᴡᴍᴄᴏᴜɴᴛᴇʀ &8&L> &fLanguage.yml &7file created." to console
 
# Event

on damage:
    if attacker is a player:
        if hit is critical:
            load yaml "/plugins/WMCounter/UserData/%attacker's uuid%" as "db"
            if yaml value "Settings.Combo-Counter" from "db" is true:
                add 1 to {combo::%attacker%}
                set {_A::%attacker%} to {combo::%attacker%}
                if yaml value "ActionBars.Combo-Counter.%{combo::%attacker%}%" from "lang" is set:
                    send action bar yaml value "ActionBars.Combo-Counter.%{combo::%attacker%}%.Message" from "lang" to attacker
                    send title "&r" with subtitle "&c%victim's health% ❤" to attacker for 1 seconds
                    if yaml value "Settings.Combo-Sound" from "db" is true:
                        set {_Pitch} to yaml value "ActionBars.Combo-Counter.%{combo::%attacker%}%.Pitch" from "lang"
                        play sound "block.note_block.pling" at volume 1 at pitch {_Pitch} to attacker
                else:
                    send title "&r" with subtitle "&c%victim's health% ❤" to attacker for 1 seconds
                    send action bar yaml value "ActionBars.Combo-Counter.Finnaly.Message" from "lang" to attacker
                    if yaml value "Settings.Combo-Sound" from "db" is true:
                        set {_Pitch} to yaml value "ActionBars.Combo-Counter.Finnaly.Pitch" from "lang"
                        play sound "%(yaml value "ActionBars.Combo-Counter.Finnaly.Sound-Effect" from "lang")%" at volume 1 at pitch {_Pitch} to attacker
            else:
                if {combo::%attacker%} >= 1:
                    delete {combo::%attacker%}
        else:
            if {combo::%attacker%} >= 1:
                delete {combo::%attacker%}
                if yaml value "Settings.Combo-Counter" from "db" is true:
                    send action bar yaml value "ActionBars.Warn.Combo-Counter.Series-Over.Message" from "lang" to attacker
                    if yaml value "Settings.Combo-Sound" from "db" is true:
                        set {_Pitch} to yaml value "ActionBars.Warn.Combo-Counter.Series-Over.Pitch" from "lang"
                        play sound yaml value "ActionBars.Warn.Combo-Counter.Series-Over.Sound-Effect" from "lang" at volume 2 at pitch {_Pitch} to attacker
           
on death:
    if {combo::%victim%} >= 1:
        delete {combo::%victim%}
    if {combo::%attacker%} >= 1:
        delete {combo::%attacker%}
        send action bar yaml value "ActionBars.Warn.Combo-Counter.Series-Over" from "lang" to attacker

on join:
    load yaml "/plugins/WMCounter/UserData/%player's uuid%" as "db"
    if yaml "db" is empty:
        set yaml value "Information.Player-Name" from "db" to "%player%"
        set yaml value "Information.First-Entry-Date" from "db" to "%now%"
   
        set yaml value "Settings.Combo-Counter" from "db" to "true"
        set yaml value "Settings.Combo-Sound" from "db" to "true"
        save yaml "db"
        send "&fᴡᴍᴄᴏᴜɴᴛᴇʀ &8&L> &c[%player%] &8&L> &f/plugins/WMCounter/UserData/%player's uuid%.yml &7file created." to console
   
    if {combo::%player%} >= 1:
        delete {combo::%player%}
 
on quit:
    if {combo::%player%} >= 1:
        delete {combo::%player%}
 
# Commands

command ayarlar:
    trigger:
        Ayarlar(player)

# Functions

function Ayarlar(p: player):
    create a gui with virtual chest inventory with size yaml value "Menu.Gui-Rows" from "gui" named yaml value "Menu.Gui-Name" from "gui":
 
        if yaml value "Menu.Fill-Item.Status" from "gui" is true:
            if yaml value "Menu.Fill-Item.CustomModelData.Status" from "gui" is true:
                set {_Item::1} to (yaml value "Menu.Fill-Item.Material" from "gui" parsed as item)
                set custom model data of {_Item::1} to (yaml value "Menu.Fill-Item.CustomModelData.ID" from "gui" parsed as number)
                make gui slot (integers between 0 and (yaml value "Menu.Gui-Rows" from "gui")*9-1) with {_Item} named yaml value "Menu.Fill-Item.Name" from "gui"
            else:
                make gui slot (integers between 0 and (yaml value "Menu.Gui-Rows" from "gui")*9-1) with (yaml value "Menu.Fill-Item.Material" from "gui" parsed as item) named yaml value "Menu.Fill-Item.Name" from "gui"
           
        set {_CL::*} to yaml list "Menu.Combo-Counter.Lore" from "gui"
        load yaml "/plugins/WMCounter/UserData/%{_p}'s uuid%" as "db"
        if yaml value "Settings.Combo-Counter" from "db" is true:
            replace all "{C-Status}" with "&aᴀᴄıᴋ" in {_CL::*}
        else:
            replace all "{C-Status}" with "&cᴋᴀᴘᴀʟɪ" in {_CL::*}
           
        if yaml value "Menu.Combo-Counter.CustomModelData.Status" from "gui" is true:
            set {_Item::1} to (yaml value "Menu.Combo-Counter.Material" from "gui" parsed as item)
            set custom model data of {_Item::1} to (yaml value "Menu.Combo-Counter.CustomModelData.ID" from "gui" parsed as number)
            make gui slot yaml value "Menu.Combo-Counter.Slot" from "gui" with {_Item} named yaml value "Menu.Combo-Counter.Name" from "gui" with lore colored {_CL::*}:
                load yaml "/plugins/WMCounter/UserData/%{_p}'s uuid%" as "db"
                if yaml value "Settings.Combo-Counter" from "db" is true:
                    set yaml value "Settings.Combo-Counter" from "db" to "false"
                    save yaml "db"
                    Ayarlar(player)
                else:
                    set yaml value "Settings.Combo-Counter" from "db" to "true"
                    save yaml "db"
                    Ayarlar(player)
        else:
            make gui slot yaml value "Menu.Combo-Counter.Slot" from "gui" with (yaml value "Menu.Combo-Counter.Material" from "gui" parsed as item) named yaml value "Menu.Combo-Counter.Name" from "gui" with lore colored {_CL::*}:
                load yaml "/plugins/WMCounter/UserData/%{_p}'s uuid%" as "db"
                if yaml value "Settings.Combo-Counter" from "db" is true:
                    set yaml value "Settings.Combo-Counter" from "db" to "false"
                    save yaml "db"
                    Ayarlar(player)
                else:
                    set yaml value "Settings.Combo-Counter" from "db" to "true"
                    save yaml "db"
                    Ayarlar(player)
               
        set {_CS::*} to yaml list "Menu.Combo-Sound.Lore" from "gui"
        load yaml "/plugins/WMCounter/UserData/%{_p}'s uuid%" as "db"
        if yaml value "Settings.Combo-Sound" from "db" is true:
            replace all "{CS-Status}" with "&aᴀᴄıᴋ" in {_CS::*}
        else:
            replace all "{CS-Status}" with "&cᴋᴀᴘᴀʟɪ" in {_CS::*}
             
        if yaml value "Settings.Combo-Counter" from "db" is true:
            if yaml value "Menu.Combo-Sound.CustomModelData.Status" from "gui" is true:
                set {_Item::1} to (yaml value "Menu.Combo-Sound.Material" from "gui" parsed as item)
                set custom model data of {_Item::1} to (yaml value "Menu.Combo-Sound.CustomModelData.ID" from "gui" parsed as number)
                make gui slot yaml value "Menu.Combo-Sound.Slot" from "gui" with {_Item} named yaml value "Menu.Combo-Sound.Name" from "gui" with lore colored {_CS::*}:
                    load yaml "/plugins/WMCounter/UserData/%{_p}'s uuid%" as "db"
                    if yaml value "Settings.Combo-Sound" from "db" is true:
                        set yaml value "Settings.Combo-Sound" from "db" to "false"
                        save yaml "db"
                        Ayarlar(player)
                    else:
                        set yaml value "Settings.Combo-Sound" from "db" to "true"
                        save yaml "db"
                        Ayarlar(player)
            else:
                make gui slot yaml value "Menu.Combo-Sound.Slot" from "gui" with (yaml value "Menu.Combo-Sound.Material" from "gui" parsed as item) named yaml value "Menu.Combo-Sound.Name" from "gui" with lore colored {_CS::*}:
                    load yaml "/plugins/WMCounter/UserData/%{_p}'s uuid%" as "db"
                    if yaml value "Settings.Combo-Sound" from "db" is true:
                        set yaml value "Settings.Combo-Sound" from "db" to "false"
                        save yaml "db"
                        Ayarlar(player)
                    else:
                        set yaml value "Settings.Combo-Sound" from "db" to "true"
                        save yaml "db"
                        Ayarlar(player)
 
    open last gui to {_p}

ADDONLAR
Skript

Skript-YAML
Skript-GUI

SkBee

Not: /Ayarlar komutunu kullanarak özellikleri kendinizde açıp kapatabilirsiniz.
PVP odaklı sunucular için başarılı bir skript olmuş ellerinize sağlık
 
oyuncular arasindaki pvpye guzellik katabilir başarılar
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

Hala Discord sunucumuza katılmadın mı?

Büyük bir topluluğun parçası ol, etkinliklere katıl ve özel hediyeler kazanma şansı yakala!

Şimdi Katıl
Üst