이해도 | 초보자 |
---|---|
게임버전 (JE) | 1.12.2 |
게임버전 (BE) | 1.12.x |
스크립트 버전 | 2.6.4 |
스크립트 애드온 | skrayfall |
스코어보드 스크립트를 짜봤는데
#스코어보드 스크립트
every 1 seconds:
delete {rangking::*}
loop all players:
set {ranking::%{%loop-player%.돈}%} to loop-player
set {_n} to 0
loop {rangking::*}:
add 1 to {_n}
if {_n} is size of {rangking::*}:
set {_Top1} to loop-value
set {_Top1Value} to loop-index
set {_size} to size of {rangking::*} - 1
if {_n} is {_size}:
set {_Top} to loop-value
set {_Top2Value} to loop-index
set {_size} to size of {rangking::*} - 2
if {_n} is {_size}:
set {_Top3} to loop-value
set {_Top3Value} to loop-index
loop all players:
if {스코어보드.%loop-player%} is true:
wipe loop-player's sidebar
set name of sidebar of loop-player to " &l&8[ &l&aSoobak Server &l&8]"
set {_Top1Value} to {_Top1Value} parsed as number
set {_Top2Value} to {_Top2Value} parsed as number
set {_Top3Value} to {_Top3Value} parsed as number
set score "&l====================" in sidebar of loop-player to 17
set score "&l&7> &l&b닉네임" in sidebar of loop-player to 16
set score "- %loop-player%" in sidebar of loop-player to 15
set score " " in sidebar of loop-player to 14
set score "&l&7> &l&b보유한 돈" in sidebar of loop-player to 13
set score "- %{%loop-player%.돈}%원" in sidebar of loop-player to 12
set score "" in sidebar of loop-player to 11
set score "&l&7> &l&b현재 접속자 수" in sidebar of loop-player to 10
set score "- &e%number of all players%&f / 100" in sidebar of loop-player to 9
set score " " in sidebar of loop-player to 8
set score "&l&7> &l&b현재 랭킹" in sidebar of loop-player to 6
set score "&aTop 1 : %{_Top1}%" in sidebar of loop-player to {_Top1Value}
set score "&aTop 2 : %{_Top2}%" in sidebar of loop-player to {_Top2Value}
set score "&aTop 3 : %{_Top3}%" in sidebar of loop-player to {_Top3Value}
구문에서 every 1 seconds 때문에 cmd에서 플레이어가 서버에 들어왔을때 1초마다 이 문구가 무한으로 뜨더군요.
어떤식으로 해결해야할지 모르겠어서 질문드립니다,..
댓글이 없습니다.
새로운 댓글을 등록해 주세요!