개인 자료란 (JE)

  서버 커뮤니티

Profile 초보어드민김마린 정품인증자

jess_ksy f7396562d18d49f4af75efde8c4e7af5

Profile

이해도 입문자 
게임버전 (JE) 1.19.2 
게임버전 (BE) 관련없음 
스크립트 버전 2.7.0 
스크립트 애드온 skellett , skUtilties , skRayFall , skQuery , skript-holo 

스크립트 내용 보여드리도록 하겠습니다



on rightclick:

    if name of player's tool is "&6한글닉네임":

        add 1 to {book::nickchange::%player%}

        remove 1 of player's tool from player's inventory

        send "{@a2} &f한글닉네임 변경횟수를 1회 획득하였습니다." to player

    else if name of player's tool contains " 색깔채팅북":

        set {_name} to name of player's tool

        replace all "" and " 색깔채팅북" with "" in {_name}

        if {book::colorchat::%player%::%{_name}%} is set:

            send "{@a1} %{_name}% &f은(는) 이미 등록되어있는 색깔입니다." 

            stop

        send "{@a1} %name of player's tool%&f을(를) 사용하였습니다."

        set {book::colorchat::%player%::%{_name}%} to true

        remove 1 of player's tool from player's inventory

    else if name of player's tool contains " 색깔닉네임북":    

        set {_name} to name of player's tool

        replace all "" and " 색깔닉네임북" with "" in {_name}

        if {book::colornick::%player%::%{_name}%} is set:

            send "{@a1} %{_name}% &f은(는) 이미 등록되어있는 색깔입니다." 

            stop

        send "{@a1} %name of player's tool%&f을(를) 사용하였습니다."

        set {book::colornick::%player%::%{_name}%} to true

        remove 1 of player's tool from player's inventory    

function OpenColor(p:player,t:text):

    set {_gui} to chest inventory with 3 row with name "{@a1} 색깔%{_t}%"

    if {_t} is "채팅":

        set {_a} to "chat"

    else:

        set {_a} to "nick"

    

    loop {book::color%{_a}%::%{_p}%::*}:

        if {book::color%{_a}%.sel::%{_p}%} is "%loop-index%":

            add book named "%loop-index%" with lore "&f현재 색깔 : %{book::color%{_a}%.sel::%{_p}%}%", "", "&f클릭시 %{_t}%색깔을 하얀색으(로) 설정합니다." to {_gui}            

        else:

            if {book::color%{_a}%.sel::%{_p}%} is not set:

                add book named "%loop-index%" with lore "&f현재 색깔 : 하얀색", "", "&f클릭시 %{_t}%색깔을 %loop-index%색&f으(로) 설정합니다." to {_gui}

            else:

                add book named "%loop-index%" with lore "&f현재 색깔 : %{book::color%{_a}%.sel::%{_p}%}%", "", "&f클릭시 %{_t}%색깔을 %loop-index%색&f으(로) 설정합니다." to {_gui}

    open {_gui} to {_p}                

on inventory click:

    if name of player's top inventory contains "{@a1}":

        cancel event

        set {_t} to name of player's top inventory

        replace "{@a1} 색깔" with "" in {_t}

        if {_t} is "채팅":

            set {_a} to "chat"

        else:

            set {_a} to "nick"

        if {book::color%{_a}%.sel::%player%} is name of event-item:

            send "{@a1} %{_t}%색깔을 하얀색 으(로) 설정하였습니다."

            delete {book::color%{_a}%.sel::%player%}

        else:

            send "{@a1} %{_t}%색깔을 %name of event-item% &f으(로) 설정하였습니다."

            set {book::color%{_a}%.sel::%player%} to name of event-item

        OpenColor(player,{_t})

command /색깔채팅:

    trigger:

        OpenColor(player,"채팅")

command /책:

    permission: Book.Get

    trigger:

        set {_gui} to chest inventory with 3 row with name ""

        loop "&c빨간", "&6주황", "&e노랑", "&a초록" and "&b파랑":

            add book named "%loop-value% 색깔채팅북" with lore "&6● &f우클릭시 색깔채팅북이 사용됩니다." and "&6● &f/색깔채팅 에서 추가된 색깔을 적용할수 있습니다." to {_gui}

            add 1 to {_i}

            set slot 8 + {_i} of {_gui} to book named "%loop-value% 색깔닉네임북" with lore "&6● &f우클릭시 색깔닉네임북이 사용됩니다." and "&6● &f/색깔닉네임 에서 추가된 색깔을 적용할수 있습니다."

        set slot 18 of {_gui} to book named "&6한글닉네임" with lore "&6● &f우클릭시 한글닉네임 변경횟수를 1회 획득합니다." and "&6● &f/한글닉네임 명령어로 닉네임을 변경할 수 있습니다."

        open {_gui} to player

command /색깔닉네임:

    trigger:

        OpenColor(player,"닉네임")

command /한글닉네임 [<text>]:

    trigger:

        if arg 1 is not set:

            send "{@a2} /한글닉네임 <변경할닉네임>"

            send "{@a2} /한글닉네임 초기화 - 닉네임을 영어닉네임으로 초기화합니다."

            send "{@a2} 남은 변경횟수 : %{book::nickchange::%player%}%"

            send "{@a2} &c{@l}자 이상 금지"

            send "{@a2} &c닉네임에 한글만 사용가능"

        else if arg 1 is "초기화":

            set player's display name to "%name of player%"

        else if arg-1 doesn't match "[가-힣]*":

            send "{@a2} 닉네임에는 한글만 사용할 수 있습니다."

        else if {@l} <= length of "%arg-1%":

            send "{@a2} 닉네임을 {@l}자 이상으로 설정할 수 없습니다."

        else if {book::nickchange::%player%} > 0:

            set player's display name to arg-1

            send "{@a2} 닉네임을 %arg-1% 으(로) 설정하였습니다."

on chat:

    if {book::colorchat.sel::%player%} is set:

        set {_color} to {book::colorchat.sel::%player%}

        replace "%uncolored {book::colorchat.sel::%player%}%" with "" in {_color}

        set {_format} to chat format

        replace "[message]" with "%{_color}%[message]" in {_format}

        set chat format to "%{_format}%"

    if {book::colornick.sel::%player%} is set:

        set {_color} to {book::colornick.sel::%player%}

        replace "%uncolored {book::colornick.sel::%player%}%" with "" in {_color}

        set {_format} to chat format

        replace "[player]" with "%{_color}%[player]" in {_format}

        set chat format to "%{_format}%"        


-------(스크립트엔 이선이없습니다)-----




command /디스코드:

    trigger:

            message "디스코드 링크" to player


--------------------------------




command /메뉴:

 trigger:

  open chest with 3 rows named "&a메뉴" to player

  set slot 13 of current inventory of player to chest named "&e&l순간이동" with lore "&7클릭시 다른 순간이동 메뉴가 열림"

  

on inventory click:

 if iname contains "&a메뉴":

  if clicked raw slot is 13:

   cancel event

   open chest with 1 rows named "&a순간이동 메뉴" to player

   set slot 4 of current inventory of player to ender chest named "&b&l로비" with lore "&7클릭시 로비(스폰)로 이동됨!"

   set slot 1 of current inventory of player to chest named "&&l상점" with lore "&a클릭시 상점,장비강화실으로 이동!"

   set slot 7 of current inventory of player to iron sword named "&e&l던전" with lore "&7클릭시 반야생서버으로 이동!"

   

on inventory click:

 if iname contains "&8순간이동 메뉴":

  if clicked raw slot is 4:

   cancel event

   execute player command "스폰"

  else if clicked raw slot is 1:

   cancel event

   execute player command "/tp 576.708 86 -479.690"

  else if clicked raw slot is 7:

   cancel event

   execute player command "/mvtp wild"


저도 제가 모른다는것을 잘 알고있으니 악플은 달지 말아주세요..







7개의 댓글

아시는분들 알려주세요..ㅠㅠ

학교가기싫다
2024.01.15

변수에 저장되어있는 수가 너무 클 경우 불러올때 저렇게 됩니다. 못고칩니다.

환타비
2024.01.15

질문 채널이 잘못 되어있습니다 질문계시판으로 옴겨주세용~

환타비
2024.01.16

구문말고 오류 메세지도 같이 올려야 합니당

@환타비

아아 알겠습니다 이따 올려보도록하겠습니다..!

@환타비

https://cdn.discordapp.com/attachments/1111315716432478238/1196481574636621824/message.txt?ex=65b7c94c&is=65a5544c&hm=24c7d6bc3425be691772edb6446893d993ebea83038f2427d80d65080faa48f6& 오류난것을 정리해둔 파일입니다 순서가 안맞을수 있어도 참고 해주시길바랍니다..!

슈퍼레몬
2024.01.17

오류 먼저 정리해보면
디스코드.sk Line3:탭 오류

나머지는 , 말고 and 사용하시거나 구문 불리하시면 될것 같습니다
오류는 3개밖에 없어서...

뉴스 및 창작물
/files/thumbnails/576/775/003/262x150.crop.jpg?20240426232553

아티클

이달의 블록: 단단한 진흙

학교가기싫다

2024-04-26

0

/files/thumbnails/115/774/003/262x150.crop.jpg?20240428135129

업데이트

마인크래프트 1.20.5 정식 업데이트

학교가기싫다

2024-04-24

0

/files/thumbnails/762/770/003/262x150.crop.jpg?20240418073724

레드스톤

T.B.H (고민중독) | 노트블럭 버전 | NoteBlock Cover [한국어 영어 중국어 가사 추가]

노트블럭전문가

2024-04-18

0

/files/thumbnails/218/767/003/262x150.crop.jpg?20240412130213

레드스톤

우리의 꿈 - 원피스 오프닝

노트블럭전문가

2024-04-12

0

/files/thumbnails/505/766/003/262x150.crop.jpg?20240411122306

레드스톤

기동전사 건담 수성의 마녀 | 노트블럭 커버 1

노트블럭전문가

2024-04-11

1