Skript Tabela

Kovalski

Hayalet Avcısı
En iyi cevaplar
0
dediğin şey değil ama bu var
Kod:
on rightclick on sign:
 if line-1 of the clicked-block is "OzelTabela":
  if line-2 of the clicked-block is "Hemen":
   if line-3 of the clicked-block is "Bana":
    if line-4 of the clicked-block is "Tıkla!":
     send "&a$$$ Başarıyla tıkladınız. Tebrikler! $$$" to player

skellet adlı sk eklentisiylede bunlar var ama tabela yok

Kod:
command /test:
    trigger:
        open "CHEST" with 2 rows named "Hello bae 1" to player
        wait 2 seconds
        skellett open "CHEST" with 1 row named "Hello bae 2" to player
        wait 2 seconds
        open better inventory type "HOPPER" named "Hello bae 3" to player
        wait 2 seconds
        open better inventory "BEACON" to player
        wait 2 seconds
        open better inventory "BREWING" named "Hello bae 5" to player
        wait 2 seconds
        open better inventory "ANVIL" to player
        wait 2 seconds
        open "PLAYER" named "Hello bae 7" to player
        wait 2 seconds
        open "FURNACE" named "Hello bae 8" to player
        wait 2 seconds
        open "ENDER_CHEST" named "Hello bae 9" to player
        wait 2 seconds
        open "ENCHANTING" named "Hello bae 10" to player
 

Kovalski

Hayalet Avcısı
En iyi cevaplar
0
Kod girme ekranı falan için diyorsun heralde.
Sanırım yok. @Blueyescat
Blazerdmmorpg'de yapılmıştı böyle bir şey var bunu garantileyelimde

Böyle bi sk buldum biraz incelesen yaparsın

Kod:
# © Made by AlLego
#!Dependencies: Skript 2.2, SkQuery 3.5, skUtilities 0.5.0, skRayfall 1.9.2
#!   __ _                    _____        __       __
#!  / _(_) __ _ _ __         \_   \_ __  / _| ___ / _\  /\ /\
#!  \ \| |/ _` | '_ \ _____   / /\/ '_ \| |_ / _ \\ \  / //_/
#!  _\ \ | (_| | | | |_____/\/ /_ | | | |  _| (_) |\ \/ __ \
#!  \__/_|\__, |_| |_|     \____/ |_| |_|_|  \___/\__/\/  \/
#!        |___/
#!Dependencies: Skript 2.2, SkQuery 3.5, skUtilities 0.5.0, skRayfall 1.9.2
# By using my Skript you understand that:
#  You are able to change anything in this file yourself.
#  You aren't allowed to republish or sell this file.
#  Lastly you aren't allowed to remove the copyright/signature from this file.
options:
        version: 1.3.4 #Do not change.
on script load:
    file "SignInfo" exists:
        stop
    else:
        set yaml value "example.SignColor" from "../../SignInfo/GUIs/example.yml" to "&a"
        set yaml value "example.GuiTitle" from "../../SignInfo/GUIs/example.yml" to "name"
        set yaml value "example.GuiSize" from "../../SignInfo/GUIs/example.yml" to "2"
        set yaml value "example.Permission" from "../../SignInfo/GUIs/example.yml" to "example.permission"
        set yaml value "example.Items.exampleitem.ItemId" from "../../SignInfo/GUIs/example.yml" to "wooden pickaxe"
        set yaml value "example.Items.exampleitem.Shiny" from "../../SignInfo/GUIs/example.yml" to true
        set yaml value "example.Items.exampleitem.Name" from "../../SignInfo/GUIs/example.yml" to "&7Manly Pickaxe"
        add "&7To OP for you!" to yaml list "example.Items.exampleitem.Lore" from file "../../SignInfo/GUIs/example.yml"
        set yaml value "example.Items.exampleitem.Type" from "../../SignInfo/GUIs/example.yml" to "cmd"
        add "plyr:bal" to yaml list "example.Items.exampleitem.cmds" from file "../../SignInfo/GUIs/example.yml"
        set yaml value "sign-title" from "../../SignInfo/config.yml" to "[GUI-SIGN]"
        set yaml value "replace-line-1" from "../../SignInfo/config.yml" to "=============="
on sign change:
    set {_signtitle} to yaml value "sign-title" from file "../../SignInfo/config.yml"
    if line 1 is "%{_signtitle}%":
        if player has permission "signgui.create":
            if line 2 is not "":
                file "SignInfo/GUIs/%line 2%.yml" exists:
                    set {_msg} to 1
                    set {_guiSize} to yaml value "%line 2%.GuiSize" from file "../../SignInfo/GUIs/%line 2%.yml"
                    set {_signColor} to yaml value "%line 2%.SignColor" from file "../../SignInfo/GUIs/%line 2%.yml"
                    set {sign-gui::%position of block%} to "%line 2%"
                if {_msg} is set:
                    send player title "&c&lSign Info" with subtitle "&aSign created!" for 5 seconds
                else:
                    send player title "&c&lSign Info" with subtitle "&cSign creation failed." for 5 seconds
                    send message "Invalid format!" to player
                    set line 1 to "++++++"
                    set line 2 to "&cInvalid GUI!"
                    set line 3 to "&cInvalid GUI!"
                    set line 4 to "++++++"
                    stop
                set {_topreplace} to yaml value "replace-line-1" from file "../../SignInfo/config.yml"
                set line 2 to "%colored {_signColor}%%line 2%"
                set line 1 to "%{_topreplace}%"
            else:
                send message "Invalid format!" to player
                set line 1 to "++++++"
                set line 2 to "&cInvalid format!"
                set line 3 to "&cInvalid format!"
                set line 4 to "++++++"
function runCmd(p: player, runcmds: text):
    set {_cmdslt::*} to {_runcmds} split at "||"
    wait 3 ticks
    loop {_cmdslt::*}:
        if first 5 characters of "%loop-value%" is "cnsl:":
            set {_cncmd} to loop-value
            replace all "!player!" in {_cncmd} with "%{_p}%"
            execute console command "%subtext of {_cncmd} from characters 6 to (the length of {_cncmd})%"
        if first 5 characters of "%loop-value%" is "plyr:":
            set {_plcmd} to loop-value
            replace all "!player!" in {_plcmd} with "%{_p}%"
            make {_p} execute command "%subtext of {_plcmd} from characters 6 to (the length of {_plcmd})%"
function viewSign(p: player, sign: text):
    set {sign-gui::%{_p}%::in-gui} to 1
    set {_guiSize} to yaml value "%{_sign}%.GuiSize" from file "../../SignInfo/GUIs/%{_sign}%.yml"
    set {_guiName} to yaml value "%{_sign}%.GuiTitle" from file "../../SignInfo/GUIs/%{_sign}%.yml"
    open chest with "%{_guiSize}%" parsed as an integer rows named "%colored {_guiName}%" to {_p}
    set {_slots::*} to yaml nodes "%{_sign}%.Items" from file "../../SignInfo/GUIs/%{_sign}%.yml"
    wait 2 ticks
    loop {_slots::*}:
        set {_n} to loop-index parsed as an integer - 1
        set {_itemId} to yaml value "%{_sign}%.Items.%loop-value%.ItemId" from file "../../SignInfo/GUIs/%{_sign}%.yml"
        set {_itemName} to yaml value "%{_sign}%.Items.%loop-value%.Name" from file "../../SignInfo/GUIs/%{_sign}%.yml"
        set {_itemLore::*} to yaml list "%{_sign}%.Items.%loop-value%.Lore" from file "../../SignInfo/GUIs/%{_sign}%.yml"
        set {_x} to 2
        set {_lore} to {_itemLore::1}
        loop size of {_itemLore::*} - 1 times:
            set {_lore} to "%{_lore}%||%{_itemLore::%{_x}%}%"
            set {_x} to {_x} + 1
        set {_enchanted} to yaml value "%{_sign}%.Items.%loop-value%.Shiny" from file "../../SignInfo/GUIs/%{_sign}%.yml"
        set {_type} to yaml value "%{_sign}%.Items.%loop-value%.Type" from file "../../SignInfo/GUIs/%{_sign}%.yml"
        if {_type} is "cmd":
            set {_cmdlist::*} to yaml list "%{_sign}%.Items.%loop-value%.cmds" from file "../../SignInfo/GUIs/%{_sign}%.yml"
            set {_y} to 2
            set {_cmd} to {_cmdlist::1}
            loop size of {_cmdlist::*} - 1 times:
                set {_cmd} to "%{_cmd}%||%{_cmdlist::%{_y}%}%"
                set {_y} to {_y} + 1
            if {_enchanted} is true:
                if {_lore} is not "":
                    evaluate "format slot %{_n}% of {_p} with 1 of shiny ""%{_itemId}%"" parsed as a material with no nbt named ""%colored {_itemName}%"" with lore ""%colored {_lore}%"" to close then run [runCmd({_p},""%{_cmd}%"")]"
                else:
                    evaluate "format slot %{_n}% of {_p} with 1 of shiny ""%{_itemId}%"" parsed as a material with no nbt named ""%colored {_itemName}%"" to close then run [runCmd({_p},""%{_cmd}%"")]"
            else:
                if {_lore} is not "":
                    evaluate "format slot %{_n}% of {_p} with 1 of ""%{_itemId}%"" parsed as a material with no nbt named ""%colored {_itemName}%"" with lore ""%colored {_lore}%"" to close then run [runCmd({_p},""%{_cmd}%"")]"
                else:
                    evaluate "format slot %{_n}% of {_p} with 1 of ""%{_itemId}%"" parsed as a material with no nbt named ""%colored {_itemName}%"" to close then run [runCmd({_p},""%{_cmd}%"")]"
        if {_type} is "icon":
            if {_enchanted} is true:
                if {_lore} is not "":
                    format slot {_n} of {_p} with 1 of shiny "%{_itemId}%" parsed as a material with no nbt named "%colored {_itemName}%" with lore "%colored {_lore}%" to be unstealable
                else:
                    format slot {_n} of {_p} with 1 of shiny "%{_itemId}%" parsed as a material with no nbt named "%colored {_itemName}%" to be unstealable
            else:
                if {_lore} is not "":
                    format slot {_n} of {_p} with 1 of "%{_itemId}%" parsed as a material with no nbt named "%colored {_itemName}%" with lore "%colored {_lore}%" to be unstealable
                else:
                    format slot {_n} of {_p} with 1 of "%{_itemId}%" parsed as a material with no nbt named "%colored {_itemName}%" to be unstealable
on rightclick on sign:
    if {sign-gui::%position of block%} is set:
        set {_perm} to yaml value "%{sign-gui::%position of block%}%.Permission" from file "../../SignInfo/GUIs/%{sign-gui::%position of block%}%.yml"
        if {_perm} is set:
            if player has permission "%{_perm}%":
                viewSign(player, "%{sign-gui::%position of block%}%")
            else:
                send message "&c&lSORRY! &7You do not have permission for this!"
        else:
            viewSign(player, "%{sign-gui::%position of block%}%")
on break of sign:
    if {sign-gui::%position of block%} is set:
        delete {sign-gui::%position of block%}
        send player title "&c&lSign Info" with subtitle "&cSign deleted!" for 5 seconds
command /sign-info [<text=version>]:
    aliases: si
    trigger:
        if arg 1 is "version":
            send message "&f&m--&e&m---&6&m----&4&m-----&8+"
            send message "&8> &cSign Info v{@version}"
            send message ""
            send message "&8> &cCreated by: &fAlLego"
            send message "&f&m--&e&m---&6&m----&4&m-----&8+"
        if arg 1 is "reload":
            if player has permission "signgui.reload":
                make player execute command "/sk reload sign-info-{@version}"

on inventory click:
    if {sign-gui::%player%::in-gui} is set:
        cancel event
on inventory close:
    if {sign-gui::%player%::in-gui} is set:
        delete {sign-gui::%player%::in-gui}
 

Thraenkost

Lapis Toplayıcısı
En iyi cevaplar
1
İşte bizim kurucu barıştan görmüş yani blazerdden bana yap diyodu. :D
Araştırdım bulamadım.
 

bertek41

Marangoz
En iyi cevaplar
0
set-block ile tabela set leyip ardından set line 1 falan ile yapılabilir herhalde. Bahsettiğim şey şu;
Kod:
set line 1 of block at KOORDİNAT to "YAZI"
 

LifeMCServer

Nether Yerlisi
En iyi cevaplar
98
Blazerdmmorpg'de yapılmıştı böyle bir şey var bunu garantileyelimde

Böyle bi sk buldum biraz incelesen yaparsın

Kod:
# © Made by AlLego
#!Dependencies: Skript 2.2, SkQuery 3.5, skUtilities 0.5.0, skRayfall 1.9.2
#!   __ _                    _____        __       __
#!  / _(_) __ _ _ __         \_   \_ __  / _| ___ / _\  /\ /\
#!  \ \| |/ _` | '_ \ _____   / /\/ '_ \| |_ / _ \\ \  / //_/
#!  _\ \ | (_| | | | |_____/\/ /_ | | | |  _| (_) |\ \/ __ \
#!  \__/_|\__, |_| |_|     \____/ |_| |_|_|  \___/\__/\/  \/
#!        |___/
#!Dependencies: Skript 2.2, SkQuery 3.5, skUtilities 0.5.0, skRayfall 1.9.2
# By using my Skript you understand that:
#  You are able to change anything in this file yourself.
#  You aren't allowed to republish or sell this file.
#  Lastly you aren't allowed to remove the copyright/signature from this file.
options:
        version: 1.3.4 #Do not change.
on script load:
    file "SignInfo" exists:
        stop
    else:
        set yaml value "example.SignColor" from "../../SignInfo/GUIs/example.yml" to "&a"
        set yaml value "example.GuiTitle" from "../../SignInfo/GUIs/example.yml" to "name"
        set yaml value "example.GuiSize" from "../../SignInfo/GUIs/example.yml" to "2"
        set yaml value "example.Permission" from "../../SignInfo/GUIs/example.yml" to "example.permission"
        set yaml value "example.Items.exampleitem.ItemId" from "../../SignInfo/GUIs/example.yml" to "wooden pickaxe"
        set yaml value "example.Items.exampleitem.Shiny" from "../../SignInfo/GUIs/example.yml" to true
        set yaml value "example.Items.exampleitem.Name" from "../../SignInfo/GUIs/example.yml" to "&7Manly Pickaxe"
        add "&7To OP for you!" to yaml list "example.Items.exampleitem.Lore" from file "../../SignInfo/GUIs/example.yml"
        set yaml value "example.Items.exampleitem.Type" from "../../SignInfo/GUIs/example.yml" to "cmd"
        add "plyr:bal" to yaml list "example.Items.exampleitem.cmds" from file "../../SignInfo/GUIs/example.yml"
        set yaml value "sign-title" from "../../SignInfo/config.yml" to "[GUI-SIGN]"
        set yaml value "replace-line-1" from "../../SignInfo/config.yml" to "=============="
on sign change:
    set {_signtitle} to yaml value "sign-title" from file "../../SignInfo/config.yml"
    if line 1 is "%{_signtitle}%":
        if player has permission "signgui.create":
            if line 2 is not "":
                file "SignInfo/GUIs/%line 2%.yml" exists:
                    set {_msg} to 1
                    set {_guiSize} to yaml value "%line 2%.GuiSize" from file "../../SignInfo/GUIs/%line 2%.yml"
                    set {_signColor} to yaml value "%line 2%.SignColor" from file "../../SignInfo/GUIs/%line 2%.yml"
                    set {sign-gui::%position of block%} to "%line 2%"
                if {_msg} is set:
                    send player title "&c&lSign Info" with subtitle "&aSign created!" for 5 seconds
                else:
                    send player title "&c&lSign Info" with subtitle "&cSign creation failed." for 5 seconds
                    send message "Invalid format!" to player
                    set line 1 to "++++++"
                    set line 2 to "&cInvalid GUI!"
                    set line 3 to "&cInvalid GUI!"
                    set line 4 to "++++++"
                    stop
                set {_topreplace} to yaml value "replace-line-1" from file "../../SignInfo/config.yml"
                set line 2 to "%colored {_signColor}%%line 2%"
                set line 1 to "%{_topreplace}%"
            else:
                send message "Invalid format!" to player
                set line 1 to "++++++"
                set line 2 to "&cInvalid format!"
                set line 3 to "&cInvalid format!"
                set line 4 to "++++++"
function runCmd(p: player, runcmds: text):
    set {_cmdslt::*} to {_runcmds} split at "||"
    wait 3 ticks
    loop {_cmdslt::*}:
        if first 5 characters of "%loop-value%" is "cnsl:":
            set {_cncmd} to loop-value
            replace all "!player!" in {_cncmd} with "%{_p}%"
            execute console command "%subtext of {_cncmd} from characters 6 to (the length of {_cncmd})%"
        if first 5 characters of "%loop-value%" is "plyr:":
            set {_plcmd} to loop-value
            replace all "!player!" in {_plcmd} with "%{_p}%"
            make {_p} execute command "%subtext of {_plcmd} from characters 6 to (the length of {_plcmd})%"
function viewSign(p: player, sign: text):
    set {sign-gui::%{_p}%::in-gui} to 1
    set {_guiSize} to yaml value "%{_sign}%.GuiSize" from file "../../SignInfo/GUIs/%{_sign}%.yml"
    set {_guiName} to yaml value "%{_sign}%.GuiTitle" from file "../../SignInfo/GUIs/%{_sign}%.yml"
    open chest with "%{_guiSize}%" parsed as an integer rows named "%colored {_guiName}%" to {_p}
    set {_slots::*} to yaml nodes "%{_sign}%.Items" from file "../../SignInfo/GUIs/%{_sign}%.yml"
    wait 2 ticks
    loop {_slots::*}:
        set {_n} to loop-index parsed as an integer - 1
        set {_itemId} to yaml value "%{_sign}%.Items.%loop-value%.ItemId" from file "../../SignInfo/GUIs/%{_sign}%.yml"
        set {_itemName} to yaml value "%{_sign}%.Items.%loop-value%.Name" from file "../../SignInfo/GUIs/%{_sign}%.yml"
        set {_itemLore::*} to yaml list "%{_sign}%.Items.%loop-value%.Lore" from file "../../SignInfo/GUIs/%{_sign}%.yml"
        set {_x} to 2
        set {_lore} to {_itemLore::1}
        loop size of {_itemLore::*} - 1 times:
            set {_lore} to "%{_lore}%||%{_itemLore::%{_x}%}%"
            set {_x} to {_x} + 1
        set {_enchanted} to yaml value "%{_sign}%.Items.%loop-value%.Shiny" from file "../../SignInfo/GUIs/%{_sign}%.yml"
        set {_type} to yaml value "%{_sign}%.Items.%loop-value%.Type" from file "../../SignInfo/GUIs/%{_sign}%.yml"
        if {_type} is "cmd":
            set {_cmdlist::*} to yaml list "%{_sign}%.Items.%loop-value%.cmds" from file "../../SignInfo/GUIs/%{_sign}%.yml"
            set {_y} to 2
            set {_cmd} to {_cmdlist::1}
            loop size of {_cmdlist::*} - 1 times:
                set {_cmd} to "%{_cmd}%||%{_cmdlist::%{_y}%}%"
                set {_y} to {_y} + 1
            if {_enchanted} is true:
                if {_lore} is not "":
                    evaluate "format slot %{_n}% of {_p} with 1 of shiny ""%{_itemId}%"" parsed as a material with no nbt named ""%colored {_itemName}%"" with lore ""%colored {_lore}%"" to close then run [runCmd({_p},""%{_cmd}%"")]"
                else:
                    evaluate "format slot %{_n}% of {_p} with 1 of shiny ""%{_itemId}%"" parsed as a material with no nbt named ""%colored {_itemName}%"" to close then run [runCmd({_p},""%{_cmd}%"")]"
            else:
                if {_lore} is not "":
                    evaluate "format slot %{_n}% of {_p} with 1 of ""%{_itemId}%"" parsed as a material with no nbt named ""%colored {_itemName}%"" with lore ""%colored {_lore}%"" to close then run [runCmd({_p},""%{_cmd}%"")]"
                else:
                    evaluate "format slot %{_n}% of {_p} with 1 of ""%{_itemId}%"" parsed as a material with no nbt named ""%colored {_itemName}%"" to close then run [runCmd({_p},""%{_cmd}%"")]"
        if {_type} is "icon":
            if {_enchanted} is true:
                if {_lore} is not "":
                    format slot {_n} of {_p} with 1 of shiny "%{_itemId}%" parsed as a material with no nbt named "%colored {_itemName}%" with lore "%colored {_lore}%" to be unstealable
                else:
                    format slot {_n} of {_p} with 1 of shiny "%{_itemId}%" parsed as a material with no nbt named "%colored {_itemName}%" to be unstealable
            else:
                if {_lore} is not "":
                    format slot {_n} of {_p} with 1 of "%{_itemId}%" parsed as a material with no nbt named "%colored {_itemName}%" with lore "%colored {_lore}%" to be unstealable
                else:
                    format slot {_n} of {_p} with 1 of "%{_itemId}%" parsed as a material with no nbt named "%colored {_itemName}%" to be unstealable
on rightclick on sign:
    if {sign-gui::%position of block%} is set:
        set {_perm} to yaml value "%{sign-gui::%position of block%}%.Permission" from file "../../SignInfo/GUIs/%{sign-gui::%position of block%}%.yml"
        if {_perm} is set:
            if player has permission "%{_perm}%":
                viewSign(player, "%{sign-gui::%position of block%}%")
            else:
                send message "&c&lSORRY! &7You do not have permission for this!"
        else:
            viewSign(player, "%{sign-gui::%position of block%}%")
on break of sign:
    if {sign-gui::%position of block%} is set:
        delete {sign-gui::%position of block%}
        send player title "&c&lSign Info" with subtitle "&cSign deleted!" for 5 seconds
command /sign-info [<text=version>]:
    aliases: si
    trigger:
        if arg 1 is "version":
            send message "&f&m--&e&m---&6&m----&4&m-----&8+"
            send message "&8> &cSign Info v{@version}"
            send message ""
            send message "&8> &cCreated by: &fAlLego"
            send message "&f&m--&e&m---&6&m----&4&m-----&8+"
        if arg 1 is "reload":
            if player has permission "signgui.reload":
                make player execute command "/sk reload sign-info-{@version}"

on inventory click:
    if {sign-gui::%player%::in-gui} is set:
        cancel event
on inventory close:
    if {sign-gui::%player%::in-gui} is set:
        delete {sign-gui::%player%::in-gui}

Ben de ordan biliyorum zaten, beta kodu falan var dı da, Sen onların bunun için Skript kullandığını nerden çıkardın?
 

Blueyescat

Bedrock Kaşifi
En iyi cevaplar
0
Packetlerle yapılabiliyor. Biraz karışık gelebilir ve şu an örnek veremeyeceğim.
Linki görebilmek için üye olmanız gerekiyor. Giriş yap veya üye ol.

Linki görebilmek için üye olmanız gerekiyor. Giriş yap veya üye ol.


Mesela şöyle tabela açılır:
send player packet play_server_open_sign_editor

Açılan tabelaya yazı yazmak ve tabeladan yazı çekmek içinde farklı olaylar..
 
Üst