Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on death:
- set {_name} to name of victim
- set {_lv} to {_name} parsed as number
- set {_Exp} to {_lv}*1.37
- add {_Exp} to {exp.%attacker%}
- message "&b%name of victim%を倒した! %{_Exp}%経験値を獲得!" to attacker
- if {exp.%attacker%} is greater than or equal to {needEXP.%attacker%}:
- set {_Lv} to {Lv.%attacker%}
- add 1 to {Lv.%attacker%}
- set {needEXP.%attacker%} to {Lv.%attacker%}*1.08
- message "&8>>&aLVアップ! &8%{_Lv}%>>%{Lv.%attacker%}%" to attacker
- set {exp.%attacker%} to 0
- execute console command "/scoreboard players add %attacker% LEUP 1"
- stop
- every 10 seconds:
- loop all players:
- if {Lv.%loop-player%} is not set:
- execute console command "/resetlv %loop-player%"
- stop
- command /resetlv <player>:
- permission : RPG.op
- trigger:
- set {Lv.%arg-1%} to 1
- set {needEXP.%arg-1%} to 30
- set {exp.%arg-1%} to 0
- stop
- command /status:
- trigger:
- message "&aStats of you"
- message "&aレベル %{Lv.%player%}%"
- message "&b必要XP %{needEXP.%player%}%"
- message "&b蓄積XP %{exp.%player%}%"
- stop
Add Comment
Please, Sign In to add comment