개인 자료란 (JE)

  서버 커뮤니티

Profile 유리폰타냐 대표칭호 없음

Biwha d38f5b3d670d467ebc8eb0de6b9db3ea

Profile

질문하기 스크립트

스크립트 수정좀 도와주세요

2023.04.27 조회 수 108 추천 수 0
이해도 초보자 
게임버전 (JE) 1.19.3 
게임버전 (BE) 관련없음 
스크립트 버전 2.6.3 

1.12.2 때 지인이 만들어준 스크립트를 1.19.3 에서 쓰려고 하는데 에러가 나서요


구문 수정을 해야하는데 어떻게 수정해야 할지 모르겠습니다.


on inventory click:

if name of player's cursor contains "{@m}":

set {_item} to clicked item

if {_item} is set:


여기는 


name of cursor slot of player is "{@m}":


이렇게 수정하라고 다른분이 알려주셔서 수정하니까 이거 뒤로 다른 것들이 오류가 나서요


on inventory click:

    name of cursor slot of player is "{@m}":

        set {_item} to clicked item

        if {_item} is set:

            if {_item} is air:

                stop

            if player's tool is not {_item}:

                message "강화할 아이템을 손에 들고있어주세요."

                cancel event

                stop

            cancel event

            set {_inv} to amount of lapis lazuli in player's inventory

            set {_lore} to uncolored lore of player's cursor

            set {_lore::*} to {_lore} split by "||"

            loop {_lore::*}:

                if loop-value contains "성공 확률":

                    set {_chance} to GDL(loop-value, "성공 확률")

                    set {_chance} to {_chance} parsed as integer

                if loop-value contains "필요 청금석":

                    set {_lapis} to GDL(loop-value, "필요 청금석")

                    set {_lapis} to {_lapis} parsed as integer

            if {_lapis} > {_inv}:

                message "청금석이 부족합니다."

                stop

            remove {_lapis} of lapis lazuli from player's inventory

            if chance of {_chance}%:

                loop {_lore::*}:

                    if loop-value contains "◈":

                        set {_enchant::*} to loop-value split at ":"

                        loop {_enchant::*}:

                            if loop-value-2 contains "◈":

                                set {_ench.name} to GDL(loop-value-2, "")

                                set {_ench.KR} to loop-value-2

                                set {_ench.name} to Trans_Enchant({_ench.name})

                                

                            if loop-value-2 contains "~":

                                set {_lv} to loop-value-2

                                replace all " " with "" in {_lv}

                                set {_lvall::*} to {_lv} split at "~"

                                loop 2 times:

                                    add 1 to {_a}

                                    set {_lv.%{_a}%} to {_lvall::%{_a}%}

                                    set {_lv.%{_a}%} to {_lv.%{_a}%} parsed as integer

                                delete {_a}

                                set {_ench.lv} to random integer between {_lv.1} and {_lv.2}

                                enchant player's tool with "%{_ench.name}% %{_ench.lv}%" parsed as enchantment type

                                broadcast "&e%player%&d님이 %name of player's cursor%&d를 사용하여 &c%{_ench.KR}% %{_ench.lv}% &d인첸트에 &d성공하셨습니다."

            else:

                send "&6인첸트에 실패하셨습니다."

            set player's cursor to air

이렇게 4개가 오류가 나는데 1.19.3 에 맞춰서 수정혀려면 어떻게 해야 하나요 ? ㅠㅠ 






3개의 댓글

qsef1256
2023.04.28

https://skripthub.net/docs/?id=982

 

오류 내용은 어디 빼먹으셨나요?

유리폰타냐
2023.04.28
@qsef1256

앗 글 수정 했습니다 오류 올렸습니다

qsef1256
2023.04.30

https://skripthub.net/docs/?id=858

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

아티클

이달의 블록: 단단한 진흙

학교가기싫다

2024-04-26

0

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

업데이트

마인크래프트 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