개인 자료란 (JE)

  서버 커뮤니티

Profile dowon 대표칭호 없음
Profile

커뮤니티 소통 잡담하기

마크 1.15.2 수표 플러그인 스크립트인데 맞는지 봐주세요

2020.04.11 조회 수 1196 추천 수 0

options:

    c: &a[ &f수표 &a]

    

ccmmand /수표 {<integer>} {<integer>}

    trigger:

        if arg 1 is not set:

            message ""

            message "{@c} &f/수표 &e[&f돈&e] &c[&f수량&c] &f- 자신의 &e돈&f을 소비하여 &c수표&f를 뽑습니다."

            message ""

            stop

            

        if arg 1 is set:

            if arg 2 is set:

                if {money::%player%} > arg-1*arg-2:

                    if number of air in the player's inventory > 0:

                        if arg 1>= 1000:

                            remove arg-1*arg-2 from (money::%player%)

                            give arg 2 of paper named "(@c) &e수표&f를 &c%arg-2%&f개 뽑았습니다."

                            message ""

                            stop

                            

                        else:

                            message ""

                            message "{@c} &f당신은 &e3000&f원 이하의 &e수표&f는 뽑을 수 없습니다."

                            message ""

                            stop

                        

                    else:

                        message ""    

                        message "{@c} &f당신은 &e인벤토리&f가 부족하여 &e수표&f를 뽑을 수 없습니다."

                        message ""

                        stop

                        

                else:

                    message ""

                    message "{@c} &f당신은 &e돈&f이 부족하여 &e수표&f를 뽑을 수 없습니다."

                    message ""

                    stop

                

on rightclick with paper:

    if payer's tool's name contains "(@c)":

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

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

        remove 1 of player's tool from player's inventory

        add ({_money} parsed as integer) to {money::%player%}

        message ""

        message "{@c} &f당신은 &e수표&f를 사용하여 &c%{_money}%&f원을 얻으셨습니다."

        message ""

        stop

        




2개의 댓글

한태강
2020.04.12

질문은 질문게시판에!

PirmeOptimizerLav.
2020.04.12

쉘스크립트인줄

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