Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {joinbonus} = 50
- {escapebonus} = 500
- command /start:
- executable by: console
- trigger:
- loop all players:
- if {ready.%loop-player%} is 1:
- set {game.%loop-player%} to 1
- set {score1.%loop-player%} to 0
- set {score2.%loop-player%} to 0
- set {score3.%loop-player%} to 0
- set {score5.%loop-player%} to 0
- set {ready.%loop-player%} to 0
- else:
- set {join.%loop-player%} to 0
- on death:
- victim is a player:
- attacker is a player:
- add 20 to {exp.%player%}
- send "&9》 &6PlayerKillBonus &e&l《&e30円 &7& &d20EXP&e&l》"
- add 30 to {money.%player%}
- execute console command "effect %attacker% 6 10 10"
- command /end:
- executable by: console
- trigger:
- loop all players:
- if {game.%loop-player%} is 1:
- set {score1.%loop-player%} to 0
- set {score2.%loop-player%} to 0
- set {score3.%loop-player%} to 0
- set {score5.%loop-player%} to 0
- set {game.%loop-player%} to 0
- if {game.%loop-player%} is 2:
- set {score1.%loop-player%} to 0
- set {score2.%loop-player%} to 0
- set {score3.%loop-player%} to 0
- set {score5.%loop-player%} to 0
- set {game.%loop-player%} to 0
- command /bullet:
- executable by: console
- trigger:
- loop all players:
- if {game.%loop-player%} is 1:
- loop {bullet.%loop-player%} times:
- give 1 gold_nugget named "&eAmmo" to the loop-player
- on damage:
- victim is a player:
- attacker is a player:
- if {game.%attacker%} is 2:
- add 25 to {score2.%attacker%}
- on damage:
- victim is a player:
- if {game.%victim%} is 2:
- if victim's health - final damage is less than or equal to 3:
- execute console command "gamemode 3 %victim%"
- show a title from "&d&l再生中....." and subtitle "&6&l5秒後に復活します。" to victim for 5 seconds and 10 ticks fade in and 15 ticks fadeout
- execute console command "scoreboard players tag %victim% add restart"
- execute console command "effect %victim% 12 100000 10"
- execute console command "effect %victim% 10 3 50"
- broadcast "&4&lDead &6&l》&a%victim%"
- execute console command "title %victim% times 20 100 20"
- execute console command "effect %victim% 15 6 10"
- wait 5 seconds
- execute console command "gamemode 2 %victim%"
- execute console command "scoreboard players tag %victim% add zombiedeath"
- on damage:
- victim is a player:
- if victim's health - final damage is less than or equal to 9:
- if {game.%victim%} is 1:
- set {game.%victim%} to 2
- show a title from "&2&lあなたは感染しました!" and subtitle "&6&l人間共を感染させろ...!" to victim for 5 seconds and 10 ticks fade in and 15 ticks fadeout
- execute console command "scoreboard players set %victim% zombie 1"
- execute console command "scoreboard players set %victim% human 0"
- execute console command "scoreboard teams leave human %victim%"
- execute console command "scoreboard teams join zombie %victim%"
- execute console command "nte player %victim% prefix &c-*Zombie*-"
- execute console command "clear %victim%"
- execute console command "effect %victim% 15 5 1"
- execute console command "effect %victim% 2 5 100"
- execute console command "effect %victim% 18 5 100"
- execute console command "scoreboard players set %victim% damage 0"
- execute console command "scoreboard players tag %victim% add zombie"
- broadcast "&9&lInfected &c&l》&4&l☣ &l》&a%victim%"
- command /hoge <player> <number>:
- permission: sk.hoge
- trigger:
- if number-arg is not number:
- send "&c/hoge <player> <number>" to player
- if player-arg is not player:
- send "&c/hoge <player> <number>" to player
- else:
- set {_player2} to arg-1
- add number-arg to {score3.%{_player2}%}
- command /level <player> <number>:
- permission: sk.level
- trigger:
- if number-arg is not number:
- send "&c/hoge <player> <number>" to player
- if player-arg is not player:
- send "&c/hoge <player> <number>" to player
- else:
- set {_player3} to arg-1
- set {level.%{_player3}%} to number-arg
- send "&9》 &eレベルを&e&l%{level.%player%}%&eにセット。"
- command /money <player> <number>:
- permission: sk.money
- trigger:
- if number-arg is not number:
- send "&c/hoge <player> <number>" to player
- if player-arg is not player:
- send "&c/hoge <player> <number>" to player
- else:
- set {_player4} to arg-1
- set {money.%{_player4}%} to number-arg
- send "&9》 &e所持金を&e&l%{money.%player%}%&eにセット。"
- execute console command "scoreboard players set %{_player4}% money number-arg"
- every 1 second in "world":
- loop all players:
- if {game.%loop-player%} is 1:
- add 1 to {score1.%loop-player%}
- command /first:
- permission: sk.first
- trigger:
- if {game.%player%} is 1:
- set {game.%player%} to 2
- show a title from "&2&lあなたは感染しました!" and subtitle "&6&l人間共を感染させろ...!" to player for 5 seconds and 10 ticks fade in and 15 ticks fadeout
- execute console command "scoreboard players set %player% zombie 1"
- execute console command "scoreboard players set %player% human 0"
- execute console command "scoreboard teams leave human %player%"
- execute console command "scoreboard teams join zombie %player%"
- execute console command "nte player %player% prefix &c-*Zombie*-"
- execute console command "clear %player%"
- execute console command "effect %player% 15 5 1"
- execute console command "effect %player% 10 10 10"
- execute console command "effect %player% 2 5 100"
- execute console command "effect %player% 18 5 100"
- execute console command "scoreboard players set %player% damage 0"
- execute console command "scoreboard players tag %player% add first"
- execute console command "order"
- broadcast "&9&lInfected &c&l》&4&l☣ &c&l》&a%player%"
- command /out:
- permission: sk.out
- trigger:
- set {game.%player%} to 0
- set {ready.%player%} to 0
- execute console command "scoreboard players set %player% human 0"
- execute console command "scoreboard players set %player% zombie 0"
- execute console command "scoreboard players set %player% join 0"
- execute console command "nte player %player% prefix &f"
- execute console command "scoreboard teams leave zombie %player%"
- execute console command "scoreboard teams human zombie %player%"
- execute console command "scoreboard players tag %player% remove escape"
- execute console command "gamemode 2 %player%"
- execute console command "title %player% times 20 100 20"
- command /totyuu:
- permission: sk.totyuu
- trigger:
- set {game.%player%} to 2
- execute console command "scoreboard players set %player% zombie 1"
- execute console command "scoreboard teams join zombie %player%"
- execute console command "nte player %player% prefix &c-*Zombie*-"
- send "&9》 &7ゲームに途中参加します...."
- execute console command "effect %player% 15 5 100"
- execute console command "effect %player% 2 5 100"
- execute console command "effect %player% 18 5 100"
- execute console command "clear %player%"
- execute console command "scoreboard players tag %player% add zombie"
- execute console command "effect %player% 12 10000 1"
- command /damage:
- permission: sk.damage
- trigger:
- if {game.%player%} is 2:
- add 25 to {score2.%player%}
- command /total:
- executable by: console
- trigger:
- loop all players:
- if {game.%loop-player%} is 1:
- set {score5.%loop-player%} to {score1.%loop-player%} + {score3.%loop-player%} + {joinbonus} + {escapebonus}
- wait 1 seconds
- send "&4&l&m-----*-------------------------*-----" to loop-player
- send " " to loop-player
- send " &c&l戦闘報酬 " to loop-player
- send " " to loop-player
- send " &6参加ボーナス &e%{joinbonus}%&e円 " to loop-player
- send " &6防衛ボーナス &e%{score3.%loop-player%}%&e円 " to loop-player
- send " &6脱出ボーナス &e%{escapebonus}%&e円 " to loop-player
- send " &6生存ボーナス &e%{score1.%loop-player%}%&e円 " to loop-player
- send " " to loop-player
- send " &6合計 &e%{score5.%loop-player%}%&e円 " to loop-player
- send " " to loop-player
- send "&4&l&m-----*-------------------------*-----" to loop-player
- add {score5.%loop-player%} to {money.%loop-player%}
- add {score5.%loop-player%} to {exp.%loop-player%}
- add 2 to {zpoint.%loop-player%}
- add 1 to {seizon.%loop-player%}
- add 1 to {rseizon.%loop-player%}
- execute console command "scoreboard players add %loop-player% money %{score5.%loop-player%}%"
- if {game.%loop-player%} is 2:
- set {score5.%loop-player%} to {score1.%loop-player%} + {score2.%loop-player%} + {score3.%loop-player%} + {joinbonus}
- wait 1 seconds
- send "&4&l&m-----*-------------------------*-----" to loop-player
- send " " to loop-player
- send " &c&l戦闘報酬 " to loop-player
- send " " to loop-player
- send " &6参加賞 &e%{joinbonus}%&e円 " to loop-player
- send " &6防衛ボーナス &e%{score3.%loop-player%}%&e円 " to loop-player
- send " &6感染ボーナス &e%{score2.%loop-player%}%&e円 " to loop-player
- send " &6生存ボーナス &e%{score1.%loop-player%}%&e円 " to loop-player
- send " " to loop-player
- send " &6合計 &e%{score5.%loop-player%}%&e円 " to loop-player
- send " " to loop-player
- send "&4&l&m-----*-------------------------*-----" to loop-player
- add {score5.%loop-player%} to {exp.%loop-player%}
- add {score5.%loop-player%} to {money.%loop-player%}
- add 1 to {zpoint.%loop-player%}
- set {rseizon.%loop-player%} to 0
- execute console command "scoreboard players add %loop-player% money %{score5.%loop-player%}%"
- else:
- set {score5.%loop-player%} to 0
- every 1 second in "world":
- loop all players:
- if {exp.%loop-player%} is greater than or equal to {exp2.%loop-player%}:
- add 1 to {level.%loop-player%}
- add {exp3.%loop-player%} to {exp2.%loop-player%}
- add 20 to {exp3.%loop-player%}
- set {exp.%loop-player%} to 0
- execute console command "scoreboard players add %loop-player% level 1"
- broadcast "&9》&c&l%loop-player% &c&lis Level UP! &eレベル&e&l%{level.%loop-player%}%&eになりました!"
- loop all players:
- if {level.%loop-player%} is between 0 and 5:
- set {bullet2.%loop-player%} to 140
- if {level.%loop-player%} is between 6 and 10:
- set {bullet2.%loop-player%} to 160
- if {level.%loop-player%} is between 11 and 15:
- set {bullet2.%loop-player%} to 180
- if {level.%loop-player%} is between 16 and 20:
- set {bullet2.%loop-player%} to 200
- if {level.%loop-player%} is between 21 and 25:
- set {bullet2.%loop-player%} to 220
- if {level.%loop-player%} is between 26 and 30:
- set {bullet2.%loop-player%} to 240
- if {level.%loop-player%} is between 31 and 35:
- set {bullet2.%loop-player%} to 260
- if {level.%loop-player%} is between 36 and 40:
- set {bullet2.%loop-player%} to 280
- if {level.%loop-player%} is between 41 and 45:
- set {bullet2.%loop-player%} to 300
- if {level.%loop-player%} is between 46 and 50:
- set {bullet2.%loop-player%} to 320
- if {level.%loop-player%} is between 51 and 55:
- set {bullet2.%loop-player%} to 340
- if {level.%loop-player%} is between 56 and 5:
- set {bullet2.%loop-player%} to 360
- if {level.%loop-player%} is between 61 and 65:
- set {bullet2.%loop-player%} to 380
- if {level.%loop-player%} is between 66 and 70:
- set {bullet2.%loop-player%} to 400
- if {level.%loop-player%} is between 71 and 75:
- set {bullet2.%loop-player%} to 420
- if {level.%loop-player%} is between 76 and 80:
- set {bullet2.%loop-player%} to 440
- if {level.%loop-player%} is between 81 and 85:
- set {bullet2.%loop-player%} to 460
- if {level.%loop-player%} is between 86 and 90:
- set {bullet2.%loop-player%} to 480
- if {level.%loop-player%} is between 91 and 96:
- set {bullet2.%loop-player%} to 500
- command /status [<offline player>]:
- trigger:
- if arg-1 is not set:
- message "&6&m&l-----*-------------------------------*-----"
- message " &6&lStatus"
- message "&6&l・ &eLevel: &6%{level.%player%}%&7Lv"
- message "&6&l・ &e次のレベルまで: &6%{exp.%player%}%&7/&6%{exp2.%player%}%"
- message "&6&l・ &e所持Zpoint: &6%{zpoint.%player%}%&7Point"
- message "&6&l・ &e所持弾数: &6%{bullet.%player%}%&7/&7&6%{bullet2.%player%}%&7発"
- message "&6&l・ &e所持金: &6%{money.%player%}%&7円"
- message "&6&l・ &e生存回数: &6%{seizon.%player%}%&7回"
- message "&6&m&l----*---------------------------------*-----"
- else:
- if player have permission "stats.others.sk":
- set {_player} to arg-1
- wait 1 tick
- if {_player} has played on this server before:
- message "&6&m-----*-------------------------------*-----"
- message " &6&lStatus"
- message "&6&l・ &ePlayer: &6&l%{_player}%"
- message "&6&l・ &eLevel: &6%{level.%{_player}%}%&7Lv"
- message "&6&l・ &e次のレベルまで: &6%{exp.%{_player}%}%&7/&6%{exp2.%{_player}%}%"
- message "&6&l・ &e所持Zpoint: &6%{zpoint.%{_player}%}%&7Point"
- message "&6&l・ &e所持弾数: &6%{bullet.%{_player}%}%&7/&6%{bullet2.%{_player}%}%&7発"
- message "&6&l・ &e所持金: &6%{money.%{_player}%}%&7円"
- message "&6&l・ &e生存回数: &6%{seizon.%{_player}%}%&7回"
- message "&6&m----*---------------------------------*-----"
- else:
- message "&c登録されていないプレイヤー名です"
- else:
- message "&c登録されていないプレイヤー名です"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement