개인 자료란 (JE)

  서버 커뮤니티

Profile anjkisdfgo 대표칭호 없음
Profile

질문하기 스크립트

물고기를 낚을때 10%확률로 추가 물고기를 낚는 구문을 넣고싶어요

2024.03.13 조회 수 99 추천 수 0
이해도 초보자 
게임버전 (JE) 1.20.1 
게임버전 (BE) 관련없음 
스크립트 버전 2.8.3 

on fishing:

    if {직업.%player%} is "어부 2차":

    if fishing state is CAUGHT_FISH:

    set {raw cod} to ItemsAdder.getCustomItem("coin:godeung")

    set {raw cod} to ItemsAdder.getCustomItem("coin:galchi")

    set {raw cod} to ItemsAdder.getCustomItem("coin:myulchi")

    set {raw cod} to ItemsAdder.getCustomItem("coin:junguri")

    set {raw cod} to ItemsAdder.getCustomItem("coin:domi")

    set {raw cod} to ItemsAdder.getCustomItem("coin:chungu")

    set {raw cod} to ItemsAdder.getCustomItem("coin:uruck")

    set {raw cod} to ItemsAdder.getCustomItem("coin:songu")

    set {_int} to random integer between 1 and 100

    if {_int} is between 1 and 8:

        set item of fishing caught entity to ItemsAdder.getCustomItem("coin:godeung") named "&3고등어"

    if {_int} is between 9 and 16:

        set item of fishing caught entity to ItemsAdder.getCustomItem("coin:galchi") named "&3갈치"

    if {_int} is between 17 and 24:

        set item of fishing caught entity to ItemsAdder.getCustomItem("coin:myulchi") named "&3멸치"

    if {_int} is between 25 and 32:

        set item of fishing caught entity to ItemsAdder.getCustomItem("coin:junguri") named "&3정어리"

    if {_int} is between 33 and 40:

        set item of fishing caught entity to ItemsAdder.getCustomItem("coin:domi") named "&3도미"

    if {_int} is between 41 and 48:

        set item of fishing caught entity to ItemsAdder.getCustomItem("coin:chungu") named "&3청어"

    if {_int} is between 49 and 56:

        set item of fishing caught entity to ItemsAdder.getCustomItem("coin:uruck") named "&3우럭"

    if {_int} is between 57 and 64:

        set item of fishing caught entity to ItemsAdder.getCustomItem("coin:songu") named "&3송어"

    if {_int} is between 65 and 76:

        set item of fishing caught entity to cod

    if {_int} is between 77 and 84:

        set item of fishing caught entity to salmon

    if {_int} is between 85 and 93:

        set item of fishing caught entity to tropical fish

    if {_int} is between 94 and 100:

        set item of fishing caught entity to pufferfish


무슨 구문을 어디에 써야할까요

Warning
댓글이 없습니다.

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

뉴스 및 창작물
/files/thumbnails/150/925/003/262x150.crop.jpg?20241123005717

건축

응답하라 1988 ?

팀뉴일리시

2024-11-23

3

/files/thumbnails/761/908/003/262x150.crop.jpg?20241025153749

건축

서울 숭례문(崇禮門) 5

KHC

2024-10-25

2

/files/thumbnails/578/899/003/262x150.crop.jpg?20241010142350

건축

경주 월정교 1

KHC

2024-10-10

2

/files/thumbnails/219/899/003/262x150.crop.jpg?20241009200950

건축

송전탑+도시 2

dbasd12

2024-10-09

2

/files/thumbnails/246/898/003/262x150.crop.jpg?20241008102328

레드스톤

단다단 - 오토노케(オトノケ) | 마인크래프트 노트블럭 커버

노트블럭전문가

2024-10-08

1