개인 자료란 (JE)

  서버 커뮤니티

Profile 현뚜 대표칭호 없음
Profile

질문하기 플러그인

스크립트 인게임 깨짐 현상

2020.04.30 조회 수 116 추천 수 0

15d2ae6858351a6578ac23bd25d2bfa5.png

command /수표발행 [<integer>] [<integer>]:

    trigger:

        if {돈.%uuid of player%} is set:

            message "/수표발행 [가격] [갯수]"

        else:

            if arg 2 is not set:

                subtract arg 1 from {돈.%uuid of player%}

                give player 1 of paper named "&6%arg 1%원 수표"

                message "%arg 1%원 수표를 1장 발행했다"

            else:

                if {돈.%uuid of player%} >= arg 1*arg 2:

                    subtract arg 1*arg 2 from {돈.%uuid of player%}

                    give player arg 2 of paper named "&6%arg 1%원 수표"

                    message "%arg 1%원 수표를 %arg 2%장 발행했어요!"


on right click with paper:

    if name of player's tool contains "수표":

        if lore of player's tool contains " ":

            set {_name} to player's tool

            set {_money} to uncolored name of player's tool

            set {_man::*} to uncolored lore of player's tool

            wait 1 tick

            replace all " " and "원" and "수표" with "" in {_money}

            wait 1 tick

            replace all " " and "발행자" and ":" with "" in {_man::2}

            add {_money} parsed as integer to {돈.%uuid of player%}

            remove 1 of {_name} from player's inventory

            wait 1 tick

            message "%{_money}%원 수표를 사용해따!"


on join:

    if {돈.%player%} is not set:

        set {돈.%player%} to 10000


command /돈:

    trigger:

        message "당신은 현재 %{돈.%uuid of player%}%원 밖에 없어요 거지쉑 ㅋㅋ루삥뿡빵뽕"


command /돈송금 [<integer>] [<offlineplayer>] :

    trigger:

        if {돈.%uuid of player%} > arg 1:

            subtract arg 1 from {돈.%uuid of player%}

            add arg 1 to {돈.%uuid of arg 2%}

            message "%arg 2% 님이게 %arg 1%원을 보냈습니다."

            message "%player%님으로 부터 %arg 1%원을 받았습니다. 오이시!" to arg 2

이런 스크립트를 만들어서 작동 확인 했는데 item lore 만 지웠더니 갑자기 다 깨지네요ㅠㅠ
give player 1 of paper named "&6%arg 1%원 수표" <- 여기에 원래 lore 를 붙여 놨다가 그냥 때버렸는데 이러네요

2개의 댓글

현뚜
2020.04.30

제발 살려줘요 ㅠㅠ 몇시간을 썼는데 힝

oiso2019
2020.05.05

인코딩이 UTF-8 인지 확인해보시고 그래도 문제가 있다면 버킷 때문이니 다시 받아보시길 권장합니다

뉴스 및 창작물
/files/thumbnails/712/796/003/262x150.crop.jpg?20240525085438

레드스톤

마인크래프트 노트블록으로 만든 『 봄을 고하다 (春を告げる) 』

Sonttukk

2024-05-25

0

/files/thumbnails/268/789/003/262x150.crop.jpg?20240515192032

레드스톤

벌레먹은 돌 빠르게 제거하는 법

GlassesFilm

2024-05-15

0

/files/thumbnails/797/788/003/262x150.crop.jpg?20240515090924

건축

마인크래프트로 구현한 카르카손 보드게임

Warak

2024-05-15

1

/files/thumbnails/487/784/003/262x150.crop.jpg?20240508233607

모드

Windows Borderless 모드에서 악성코드 발견 3

학교가기싫다

2024-05-08

1

/files/thumbnails/384/778/003/262x150.crop.jpg?20240512002324

업데이트

마인크래프트 자바 에디션 스냅샷 24w18a

학교가기싫다

2024-05-06

0