이해도 | 입문자 |
---|---|
게임버전 (JE) | 1.12.2 |
게임버전 (BE) | 관련없음 |
command /경험치권 []:
trigger:
if player is op:
if arg 1 is not set:
send "&7/경험치권 [정수]"
else:
if arg 1 is set:
set {exeint::%player%} to arg 1
give 1 of Enchanted Book named "&d&l경험치권" with lore "&e우클릭을 하면 %{exeint::%player%}%의 경험치가 들어옵니다" and "%{exeint::%player%}%" to player
on rightclick:
if name of player's tool is "&d&l경험치권":
cancel event
set {_경험치} to line 2 of lore of player's tool parsed as integer
add {_경험치} to {경험치::%uuid of player%}
remove 1 of player's tool from player's tool
send "&f&l[ &a&lLV &f&l] 경험치가 %{_경험치}%만큼 지급되었습니다!" to player
이거랑
variables:
{PlayerEXP::%player%} = 1
function getPlayerExp(p: player, exp: integer):
set {_exp} to {PlayerExp::%{_p}%} * {_exp} * {ServerExp}
add {_exp} to {EXP::%{_p}%}
if {EXP::%{_p}%} >= {EXPVAR::%{Level::%{_p}%}%}:
subtract {EXPVAR::%{Level::%{_p}%}%} from {EXP::%{_p}%}
send title "&f[ &6LEVEL UP! &f]" with subtitle "레벨업하셨습니다!" to {_p} for 2 seconds
play sound "ui.toast.challenge_complete" with volume 2 and pitch 1 for {_p}
add 1 to {Level::%{_p}%}
add 3 to {Stat::StatPoint::%{_p}%}
set {_p}'s level to {Level::%{_p}%}
연동이 안될까요..?
도와주실분 구합니다
댓글은 못볼수도 있으니 ㅅㅊ#0728 로 연락해주세요 댓글도 괜찮습니다
댓글이 없습니다.
새로운 댓글을 등록해 주세요!