개인 자료란 (JE)

  서버 커뮤니티

Profile 데빌하트 대표칭호 없음

D3VILH4RRT a4b5e1bfdef74b93af06cbd3c8b3f76b

Profile

질문하기 스크립트

상점 스크립트 내에 다음 페이지를 나오게 했는데

2023.12.02 조회 수 27 추천 수 0
이해도 입문자 
게임버전 (JE) 1.20.1 
게임버전 (BE) 관련없음 
스크립트 버전 2.7.2 

상점 스크립트 내에 특정 칸을 눌렸을 때 새로운 GUI 열어 다음 페이지를 나오게 했는데

3페이지 정도 만들면 처음 열리는  GUI에서 2번째 GUI가 열리는 게 아니라  3번째 GUI가 열리고  문제가 발생하는데


options:

    o : of current inventory of player

command /요리사상점:

    trigger:

        open chest with 6 row named "&1&l요리사상점" to player

        set {_slot} to 0

        loop 54 times:

            set slot {_slot} of current inventory of player to black stained glass pane

            add 1 to {_slot}

        set slot 10 of current inventory of player to apple with lore "&b구매가격 : 구매불가" and "&c판매가격 : %{상점.요리사.판매가격::1}%원" and "&6가격 변동 : %{상점.요리사.판매전가격::1}%" and "&e좌클릭 구매/우클릭 판매"

        set slot 48 of current inventory of player to paper named "&e이전 페이지" with lore "이전 페이지로 이동합니다"

        set slot 50 of current inventory of player to paper named "&e다음 페이지" with lore "다음 페이지로 이동합니다"

on inventory click:

    if name of player's current inventory contains "&1&l요리사상점":

        if clicked raw slot is 50:

            open chest with 6 row named "&1&l요리사상점2" to player

            set {_slot} to 0

            loop 54 times:

                set slot {_slot} of current inventory of player to black stained glass pane

                add 1 to {_slot}

            set slot 10 of current inventory of player to {변수::16} with lore "&b구매가격 : 구매불가" and "&c판매가격 : %{상점.요리사.판매가격::24}%원" and "&6가격 변동 : %{상점.요리사.판매전가격::24}%" and "&e좌클릭 구매/우클릭 판매"

            set slot 48 of current inventory of player to paper named "&e이전 페이지" with lore "&6이전 페이지로 이동합니다"

            set slot 50 of current inventory of player to paper named "&e다음 페이지" with lore "&6다음 페이지로 이동합니다"

on inventory click:

    if name of player's current inventory contains "&1&l요리사상점2":

        if clicked raw slot is 50:

            open chest with 6 row named "&1&l요리사상점3" to player

            set {_slot} to 0

            loop 54 times:

                set slot {_slot} of current inventory of player to black stained glass pane

                add 1 to {_slot}

            set slot 10 of current inventory of player to {변수::41} with lore "&b구매가격 : 구매불가" and "&c판매가격 : %{상점.요리사.판매가격::47}%원" and "&6가격 변동 : %{상점.요리사.판매전가격::47}%" and "&e좌클릭 구매/우클릭 판매"

            set slot 48 of current inventory of player to paper named "&e이전 페이지" with lore "&6이전 페이지로 이동합니다"

            set slot 50 of current inventory of player to paper named "&e다음 페이지" with lore "&6다음 페이지로 이동합니다"


그리고 이전 페이지로 넘어 가게 하는 법도 잘 모르겠네요




Warning
댓글이 없습니다.

새로운 댓글을 등록해 주세요!

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