개인 자료란 (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/308/815/003/262x150.crop.jpg?20240617084353

레드스톤

[피아노커버] 디스코드 - QWER

노트블럭전문가

2024-06-17

0

/files/thumbnails/932/812/003/262x150.crop.jpg?20240616121638

업데이트

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

학교가기싫다

2024-06-14

1

/files/thumbnails/308/805/003/262x150.crop.jpg?20240605201646

레드스톤

[노트블럭 커버] 팬서비스/mona 【 HoneyWorks 】

노트블럭전문가

2024-06-05

0

/files/thumbnails/288/791/003/262x150.crop.jpg?20240602150002

아티클

《까다로운 시련》 업데이트 날짜 공개 및 정보

학교가기싫다

2024-06-02

0

/files/thumbnails/841/773/003/262x150.crop.jpg?20240526120908

레드스톤

마인크래프트 노트블록버전 『 봄을 고하다 (春を告げる) 』 [더블옥타브 버전]

노트블럭전문가

2024-05-26

0