개인 자료란 (JE)

  서버 커뮤니티

Profile 김잼민군 대표칭호 없음
Profile

질문하기 스크립트

인벤토리 닫을 때 감지

2023.05.20 조회 수 68 추천 수 0
이해도 초보자 
게임버전 (JE) 1.19.3 
게임버전 (BE) 관련없음 
스크립트 버전 Skript 2.6.3 
스크립트 애드온 잘 모름 

on inventory close:

    if inventory close name is "&e거래중입니다...":

        set {_u} to uuid of {거래상대.%uuid of player%}

        if {거래성공::%uuid of player%} is set:

            message "{@a} &a거래가 성공적으로 진행되었습니다."

            delete {거래성공::%uuid of player%}

            give {거래아이템.%{_u}%::*} to player

        else:

            if {거래상대.%uuid of player%} is set:

                message "{@a} &4거래가 중단되었습니다."

                give {거래아이템.%uuid of player%::*} to player

                delete {거래아이템.%uuid of player%::*}

                delete {거래::%player%}

                delete {거래클릭방지::%uuid of player%}

                delete {거래준비::%uuid of player%}

                delete {거래아이템.%uuid of player%::*}

                set {_a} to {거래상대.%uuid of player%}

                delete {거래상대.%uuid of player%}

                wait 0.5 second

                close {_a}'s inventory


이 구문에서  if inventory close name is "&e거래중입니다...": 에서 오류가 나는데 어떻게 고쳐야할지 모르겠습니다..ㅠ

2개의 댓글

Pm08
2023.05.20

if event-inventory's display name contains "&e거래중입니다...":

 하면 될수도..?

김잼민군
2023.05.20

오오오오 성공했습니다!! 감사합니다ㅠㅠ

뉴스 및 창작물
/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