Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /teamgunpvp:
- aliases: /tgp
- permission: skript.admin
- trigger:
- command "/scoreboard teams remove red"
- command "/scoreboard teams remove blue"
- command "/scoreboard teams add red"
- command "/scoreboard teams add blue"
- command "/scoreboard teams option red color red"
- command "/scoreboard teams option blue color blue"
- command "/scoreboard teams option red nametagVisibility hideForOtherTeams"
- command "/scoreboard teams option blue nametagVisibility hideForOtherTeams"
- set {game} to false
- set {start} to false
- set {button} to true
- send "completed" to player
- #==================================================[ 関数 ]==================================================#
- function endgame():
- set {button} to false
- set {game} to false
- disable PvP in "world"
- if {tresult} is "&6&l勝利":
- loop all players:
- if {team.%loop-player%} is "t":
- send title "%{tresult}%" with subtitle "%{tresultsub}%" to loop-player for 5 seconds
- send "%{tresult}%" to loop-player
- if {booster} is true:
- add 200 to {coin.%uuid of loop-player%}
- add 20 to {xp.%uuid of loop-player%}
- add 1 to {win.%uuid of loop-player%}
- send "&a+20xp &6+200coins" to loop-player
- else:
- add 100 to {coin.%uuid of loop-player%}
- add 10 to {xp.%uuid of loop-player%}
- add 1 to {win.%uuid of loop-player%}
- send "&a+10xp &6+100coins" to loop-player
- execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
- if {team.%loop-player%} is "ct":
- send title "%{ctresult}%" with subtitle "%{ctresultsub}%" to loop-player for 5 seconds
- send "%{ctresult}%" to loop-player
- if {booster} is true:
- add 20 to {coin.%uuid of loop-player%}
- add 4 to {xp.%uuid of loop-player%}
- add 1 to {lose.%uuid of loop-player%}
- send "&a+4xp &6+20coins" to loop-player
- else:
- add 10 to {coin.%uuid of loop-player%}
- add 2 to {xp.%uuid of loop-player%}
- add 1 to {lose.%uuid of loop-player%}
- send "&a+2xp &6+10coins" to loop-player
- execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
- if {ctresult} is "&6&l勝利":
- loop all players:
- if {team.%loop-player%} is "t":
- send title "%{tresult}%" with subtitle "%{tresultsub}%" to loop-player for 5 seconds
- send "%{tresult}%" to loop-player
- send "&a+2xp &6+10coins" to loop-player
- if {booster} is true:
- add 20 to {coin.%uuid of loop-player%}
- add 4 to {xp.%uuid of loop-player%}
- add 1 to {lose.%uuid of loop-player%}
- send "&a+4xp &6+20coins" to loop-player
- else:
- add 10 to {coin.%uuid of loop-player%}
- add 2 to {xp.%uuid of loop-player%}
- add 1 to {lose.%uuid of loop-player%}
- send "&a+2xp &6+10coins" to loop-player
- execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
- if {team.%loop-player%} is "ct":
- send title "%{ctresult}%" with subtitle "%{ctresultsub}%" to loop-player for 5 seconds
- send "%{ctresult}%" to loop-player
- if {booster} is true:
- add 200 to {coin.%uuid of loop-player%}
- add 20 to {xp.%uuid of loop-player%}
- add 1 to {win.%uuid of loop-player%}
- send "&a+20xp &6+200coins" to loop-player
- else:
- add 100 to {coin.%uuid of loop-player%}
- add 10 to {xp.%uuid of loop-player%}
- add 1 to {win.%uuid of loop-player%}
- send "&a+10xp &6+100coins" to loop-player
- execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
- wait 6 seconds
- loop all players:
- if {team.%loop-player%} is set:
- close loop-player's inventory
- command "clear %loop-player%"
- command "kill @e[type=Item]"
- command "/scoreboard teams empty red"
- command "/scoreboard teams empty blue"
- give grey dye named "&eゲームに参加する" to loop-player
- teleport the loop-player to {lobby}
- set health of loop-player to max health of loop-player
- set the loop-player's gamemode to adventure
- set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%{prefix.%uuid of loop-player%}%&r%loop-player%&r%{suffix.%uuid of loop-player%}%"
- delete {team.%loop-player%}
- if {mapselector} == 1:
- command "/fill -43 21 -9 -47 21 -5 air"
- command "/fill -11 21 37 -7 21 41 air"
- if {mapselector} == 2:
- command "/fill 183 19 13 179 19 9 air"
- command "/fill 171 22 76 175 22 72 air"
- set {button} to true
- else:
- send "&a試合が終了しました" to loop-player
- function showvs():
- loop all players:
- if {team.%loop-player%} is "t":
- send title " " with subtitle "%{t}% VS %{ct}%" to loop-player for 3 seconds
- execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
- if {team.%loop-player%} is "ct":
- send title " " with subtitle "%{ct}% VS %{t}%" to loop-player for 3 seconds
- execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
- #==================================================[ ゲームスタート ]==================================================#
- on rightclick on wood button:
- if {button} is true:
- {start} is false
- if {game} is false:
- set {start} to true
- loop all players:
- send title "&a5" with subtitle "スタートまで" to loop-player for 2 seconds
- execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:ui.button.click master %loop-player% ~ ~ ~ 1 2"
- wait 1 second
- loop all players:
- send title "&a4" with subtitle "スタートまで" to loop-player for 2 seconds
- execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:ui.button.click master %loop-player% ~ ~ ~ 1 2"
- wait 1 second
- loop all players:
- send title "&a3" with subtitle "スタートまで" to loop-player for 2 seconds
- execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:ui.button.click master %loop-player% ~ ~ ~ 1 2"
- wait 1 second
- loop all players:
- send title "&a2" with subtitle "スタートまで" to loop-player for 2 seconds
- execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:ui.button.click master %loop-player% ~ ~ ~ 1 2"
- wait 1 second
- loop all players:
- send title "&a1" with subtitle "スタートまで" to loop-player for 1 seconds
- execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:ui.button.click master %loop-player% ~ ~ ~ 1 2"
- wait 1 second
- set {gameplayer} to 0
- loop all players:
- if {join.%loop-player%} is true:
- add 1 to {gameplayer}
- if {gameplayer} <= 1:
- broadcast "&c参加人数が足りませんでした"
- wait 1 second
- set {start} to false
- else:
- set {t} to 0
- set {ct} to 0
- set {count} to 120
- set {lobby} to location (49, 5, 10)
- set {cmdlobby} to "49 5 10"
- set {mapselector} to random integer between 1 and 2
- if {mapselector} == 1:
- set {tspawn} to location (-80, 22, 33)
- set {ctspawn} to location (-18, 19, 0)
- if {mapselector} == 2:
- set {tspawn} to location (96, 24, 26)
- set {ctspawn} to location (166, 14, 51)
- set {givebomb} to true
- set {putbomb} to false
- loop all players:
- if {join.%loop-player%} is true:
- if {teamselector} == 0:
- command "/clear %loop-player%"
- if {givebomb} is true:
- command "give %loop-player% minecraft:obsidian 1 0 {display:{Name:""金ブロックの上に置いてください!""},CanPlaceOn:[""minecraft:gold_block""]}"
- set {givebomb} to false
- set {team.%loop-player%} to "t"
- set {teamchat.%loop-player%} to "&c"
- delete {died.%loop-player%}
- delete {mainweapon.%loop-player%}
- add 1 to {t}
- command "/scoreboard teams join red %loop-player%"
- teleport the loop-player to {tspawn}
- if {ak47use.%uuid of loop-player%} is true:
- if {ak47.%uuid of loop-player%} > 0:
- set {mainweapon.%loop-player%} to "ak47"
- command "shot give %loop-player% ak47"
- if {mainweapon.%loop-player%} is not set:
- if {awpuse.%uuid of loop-player%} is true:
- if {awp.%uuid of loop-player%} > 0:
- set {mainweapon.%loop-player%} to "awp"
- command "shot give %loop-player% awp"
- command "shot give %loop-player% glock18"
- give red wool named "&cあなたはテロリストチームです" to loop-player
- set the loop-player's gamemode to adventure
- set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&c%loop-player%"
- send title " " with subtitle "敵を全滅、もしくは爆弾を防衛せよ" to loop-player for 5 seconds
- delete {join.%loop-player%}
- set {teamselector} to 1
- else:
- command "/clear %loop-player%"
- command "give %loop-player% minecraft:diamond_pickaxe 1 0 {display:{Name:""爆弾を破壊してください!""},ench:[{id:32s,lvl:1s}],CanDestroy:[""minecraft:obsidian""]}"
- set {team.%loop-player%} to "ct"
- set {teamchat.%loop-player%} to "&9"
- delete {died.%loop-player%}
- delete {mainweapon.%loop-player%}
- add 1 to {ct}
- command "/scoreboard teams join blue %loop-player%"
- teleport the loop-player to {ctspawn}
- if {m4a4use.%uuid of loop-player%} is true:
- if {m4a4.%uuid of loop-player%} > 0:
- set {mainweapon.%loop-player%} to "m4a4"
- command "shot give %loop-player% m4a4"
- if {mainweapon.%loop-player%} is not set:
- if {awpuse.%uuid of loop-player%} is true:
- if {awp.%uuid of loop-player%} > 0:
- set {mainweapon.%loop-player%} to "awp"
- command "shot give %loop-player% awp"
- command "shot give %loop-player% usp"
- give blue wool named "&9あなたはカウンターテロリストチームです" to loop-player
- set the loop-player's gamemode to adventure
- set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&9%loop-player%"
- send title " " with subtitle "敵を全滅、もしくは爆弾を破壊せよ" to loop-player for 5 seconds
- delete {join.%loop-player%}
- set {teamselector} to 0
- set {game} to true
- broadcast "&cテロリスト%{t}%人 &9カウンターテロリスト%{ct}%人 &a参加中"
- enable PvP
- set {start} to false
- set {button} to true
- else:
- send "&c現在試合中です" to player
- #==================================================[ 死んだ時 ]==================================================#
- on death of player:
- if name of attacker's held item contains "USP":
- set the death message to "%{teamchat.%attacker%}%%attacker% &7--[&aUSP&7]--> %{teamchat.%victim%}%%victim%"
- else if name of attacker's held item contains "Glock-18":
- set the death message to "%{teamchat.%attacker%}%%attacker% &7--[&aGlock-18&7]--> %{teamchat.%victim%}%%victim%"
- else if name of attacker's held item contains "AK-47":
- set the death message to "%{teamchat.%attacker%}%%attacker% &7--[&aAK-47&7]--> %{teamchat.%victim%}%%victim%"
- else if name of attacker's held item contains "M4A4":
- set the death message to "%{teamchat.%attacker%}%%attacker% &7--[&aM4A4&7]--> %{teamchat.%victim%}%%victim%"
- else if name of attacker's held item contains "AWP":
- set the death message to "%{teamchat.%attacker%}%%attacker% &7--[&5AWP&7]--> %{teamchat.%victim%}%%victim%"
- if {game} is true:
- if name of victim's held item contains "AK-47":
- if {mainweapon.%victim%} is "ak47":
- remove 1 from {ak47.%uuid of victim%}
- if name of victim's held item contains "M4A4":
- if {mainweapon.%victim%} is "m4a4":
- remove 1 from {m4a4.%uuid of victim%}
- if name of victim's held item contains "AWP":
- if {mainweapon.%victim%} is "awp":
- remove 1 from {awp.%uuid of victim%}
- set {died.%victim%} to true
- set {deathpoint.%victim%} to location of victim
- force the victim to respawn
- teleport player to {deathpoint.%player%}
- set the player's gamemode to spectator
- remove 1 from {%{team.%victim%}%}
- add 1 to {kill.%uuid of attacker%}
- add 1 to {death.%uuid of victim%}
- if {booster} is true:
- add 6 to {xp.%uuid of attacker%}
- add 60 to {coin.%uuid of attacker%}
- send "&a+6xp &6+60coins" to attacker
- else:
- add 3 to {xp.%uuid of attacker%}
- add 30 to {coin.%uuid of attacker%}
- send "&a+3xp &6+30coins" to attacker
- if {putbomb} is true:
- if {t} is 0:
- set {button} to false
- loop all players:
- if {team.%loop-player%} is "t":
- send title " " with subtitle "味方が全員倒された" to loop-player for 3 seconds
- send "&l味方が全員倒された" to loop-player
- execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
- if {team.%loop-player%} is "ct":
- send title " " with subtitle "敵は全滅した。爆弾を破壊せよ" to loop-player for 3 seconds
- send "&l敵は全滅した。爆弾を破壊せよ" to loop-player
- execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
- else if {ct} is 0:
- set {tresult} to "&6&l勝利"
- set {ctresult} to "&9&l敗北"
- set {tresultsub} to "敵を全員倒した"
- set {ctresultsub} to "味方が全員倒された"
- endgame()
- else:
- showvs()
- else if {t} is 0:
- set {tresult} to "&9&l敗北"
- set {ctresult} to "&6&l勝利"
- set {tresultsub} to "味方が全員倒された"
- set {ctresultsub} to "敵を全員倒した"
- endgame()
- else if {ct} is 0:
- set {tresult} to "&6&l勝利"
- set {ctresult} to "&9&l敗北"
- set {tresultsub} to "敵を全員倒した"
- set {ctresultsub} to "味方が全員倒された"
- endgame()
- else:
- showvs()
- #==================================================[ 爆弾が置かれた時 ]==================================================#
- on place of obsidian:
- if {game} is true:
- set {count} to 40
- set {putbomb} to true
- loop all players:
- if {team.%loop-player%} is "t":
- send "&a&l爆弾が設置された! 40秒間守り切れ!" to loop-player
- send title " " with subtitle "&a爆弾が設置された! 40秒間守り切れ!" to loop-player for 3 seconds
- if {team.%loop-player%} is "ct":
- send "&c&l爆弾が設置された! 40秒以内に破壊せよ!" to loop-player
- send title " " with subtitle "&c爆弾が設置された! 40秒以内に破壊せよ!" to loop-player for 3 seconds
- #==================================================[ 爆弾が壊された時 ]==================================================#
- on break of obsidian:
- if {game} is true:
- set {tresult} to "&9&l敗北"
- set {ctresult} to "&6&l勝利"
- set {tresultsub} to "爆弾が破壊された"
- set {ctresultsub} to "爆弾を破壊した"
- endgame()
- #==================================================[ 残り時間計測 ]==================================================#
- every a second in "world":
- if {game} is true:
- remove 1 from {count}
- if {count} < 0:
- if {putbomb} is true:
- set {tresult} to "&6&l勝利"
- set {ctresult} to "&9&l敗北"
- set {tresultsub} to "時間切れ"
- set {ctresultsub} to "時間切れ"
- endgame()
- else:
- set {tresult} to "&9&l敗北"
- set {ctresult} to "&6&l勝利"
- set {tresultsub} to "時間切れ"
- set {ctresultsub} to "時間切れ"
- endgame()
- loop all players:
- if {team.%loop-player%} is set:
- send action bar "&f(残り時間: %{count}%秒)" to loop-player
- if {booster} is true:
- remove 1 from {boostercount}
- if {boostercount} is 0:
- set {booster} to false
- broadcast "&6------------------------------------"
- broadcast "&c&lブースターの校歌が切れました"
- broadcast "&6------------------------------------"
- #==================================================[ 抜けたとき ]==================================================#
- on quit:
- if {team.%player%} is set:
- delete {team.%player%}
- delete {teamchat.%player%}
- if {died.%player%} is false:
- remove 1 from {%{team.%player%}%}
- command "/scoreboard teams leave %{team.%player%}% %player%"
- if {t} is 0:
- set {tresult} to "&9&l敗北"
- set {ctresult} to "&6&l勝利"
- set {tresultsub} to "味方が全員倒された"
- set {ctresultsub} to "敵を全員倒した"
- endgame()
- else if {blue} is 0:
- set {tresult} to "&6&l勝利"
- set {ctresult} to "&9&l敗北"
- set {tresultsub} to "敵を全員倒した"
- set {ctresultsub} to "味方が全員倒された"
- endgame()
- else:
- showvs()
- #==================================================[ 仕様 ]==================================================#
- on damage of player:
- if {game} is true:
- if {team.%attacker%} == {team.%victim%}:
- cancel event
- on pick up of red wool:
- if {team.%player%} is set:
- cancel event
- on pick up of blue wool:
- if {team.%player%} is set:
- cancel event
- on pick up of iron horse armor:
- if {team.%player%} is set:
- if player have iron horse armor:
- cancel event
- on pick up of gold horse armor:
- if {team.%player%} is set:
- if player have gold horse armor:
- cancel event
- on pick up of obsidian:
- if {team.%player%} is "ct":
- cancel event
- on pick up of diamond pickaxe:
- if {team.%player%} is "red":
- cancel event
- else if player have diamond pickaxe:
- cancel event
- on hunger bar change:
- set the player's food level to 10
- #==================================================[ コマンド ]==================================================#
- command /stats [<offline player>]:
- trigger:
- if arg 1 is not set:
- send "&6-----< &b%player% &6>-----"
- set {killdeath.%uuid of player%} to {kill.%uuid of player%} / {death.%uuid of player%}
- set {winlose.%uuid of player%} to {win.%uuid of player%} / {lose.%uuid of player%}
- send " &alevel: &e%{level.%uuid of player%}%" to player
- send " &axp: &e%{xp.%uuid of player%}%&7/%{needxp.%uuid of player%}%" to player
- send " "
- send " &akill: &e%{kill.%uuid of player%}%" to player
- send " &adeath: &e%{death.%uuid of player%}%" to player
- send " &aK/D: &e%{killdeath.%uuid of player%}%" to player
- send " &awin: &e%{win.%uuid of player%}%" to player
- send " &alose: &e%{lose.%uuid of player%}%" to player
- send " &aW/L: &e%{winlose.%uuid of player%}%" to player
- else:
- send "&6-----< &b%arg 1% &6>-----"
- set {killdeath.%uuid of arg 1%} to {kill.%uuid of arg 1%} / {death.%uuid of arg 1%}
- set {winlose.%uuid of arg 1%} to {win.%uuid of arg 1%} / {lose.%uuid of arg 1%}
- send " &alevel: &e%{level.%uuid of arg 1%}%" to player
- send " &axp: &e%{xp.%uuid of arg 1%}%&7/%{needxp.%uuid of arg 1%}%" to player
- send " "
- send " &akill: &e%{kill.%uuid of arg 1%}%" to player
- send " &adeath: &e%{death.%uuid of arg 1%}%" to player
- send " &aK/D: &e%{killdeath.%uuid of arg 1%}%" to player
- send " &awin: &e%{win.%uuid of arg 1%}%" to player
- send " &alose: &e%{lose.%uuid of arg 1%}%" to player
- send " &aW/L: &e%{winlose.%uuid of arg 1%}%" to player
- #==================================================[ 武器選択 ]==================================================#
- command /buycoin [<number>] [<offline player>]:
- permission: skript.admin
- trigger:
- if arg 1 is 1000:
- add 1000 to {coin.%uuid of arg 2%}
- if arg 1 is 5000:
- add 5000 to {coin.%uuid of arg 2%}
- command /shop [<text>]:
- trigger:
- if arg 1 is "hnfewfbbfwygbb":
- open chest with 4 row named "武器選択、購入" to player
- set slot 31 of player's current inventory to nether star named "&e所持金&6%{coin.%uuid of player%}%&eコイン"
- set slot 10 of player's current inventory to gold horse armor named "&a&lAK-47" with lore "&62700コイン必要" and "&c赤チーム専用" and "&7現在&f%{ak47.%uuid of player%}%&7個所持" and " " and "&eクリックで10個購入"
- if {ak47use.%uuid of player%} is not set:
- set slot 19 of player's current inventory to grey dye named "&cOFF" with lore "&7武器の数が0個だと、ONにしても意味がありません" and " " and "&eクリックでAK-47の使用をON"
- else:
- set slot 19 of player's current inventory to lime dye named "&aON" with lore "&7武器の数が0個だと、ONにしても意味がありません" and " " and "&eクリックでAK-47の使用をOFF"
- set slot 11 of player's current inventory to gold horse armor named "&a&lM4A4" with lore "&63100コイン必要" and "&9青チーム専用" and "&7現在&f%{m4a4.%uuid of player%}%&7個所持" and " " and "&eクリックで10個購入"
- if {m4a4use.%uuid of player%} is not set:
- set slot 20 of player's current inventory to grey dye named "&cOFF" with lore "&7武器の数が0個だと、ONにしても意味がありません" and " " and "&eクリックでM4A4の使用をON"
- else:
- set slot 20 of player's current inventory to lime dye named "&aON" with lore "&7武器の数が0個だと、ONにしても意味がありません" and " " and "&eクリックでM4A4の使用をOFF"
- set slot 12 of player's current inventory to gold horse armor named "&5&lAWP" with lore "&64750コイン必要" and "&7全チーム兼用" and "&7現在&f%{awp.%uuid of player%}%&7個所持" and " " and "&eクリックで10個購入"
- if {awpuse.%uuid of player%} is not set:
- set slot 21 of player's current inventory to grey dye named "&cOFF" with lore "&7武器の数が0個だと、OFFにしても意味がありません" and " " and "&eクリックでAWPの使用をON"
- else:
- set slot 21 of player's current inventory to lime dye named "&aON" with lore "&7武器の数が0個だと、ONにしても意味がありません" and " " and "&eクリックでAWPの使用をOFF"
- command /coin:
- trigger:
- send "&6%{coin.%uuid of player%}%&eコイン"
- every 5 seconds:
- loop all players:
- if {ak47.%uuid of loop-player%} is not set:
- set {ak47.%uuid of loop-player%} to 0
- if {m4a4.%uuid of loop-player%} is not set:
- set {m4a4.%uuid of loop-player%} to 0
- if {awp.%uuid of loop-player%} is not set:
- set {awp.%uuid of loop-player%} to 0
- if {coin.%uuid of loop-player%} is not set:
- set {coin.%uuid of loop-player%} to 0
- on rightclick on villager:
- cancel event
- open chest with 4 row named "武器選択、購入" to player
- set slot 31 of player's current inventory to nether star named "&e所持金&6%{coin.%uuid of player%}%&eコイン"
- set slot 10 of player's current inventory to gold horse armor named "&a&lAK-47" with lore "&62700コイン必要" and "&c赤チーム専用" and "&7現在&f%{ak47.%uuid of player%}%&7個所持" and " " and "&eクリックで10個購入"
- if {ak47use.%uuid of player%} is not set:
- set slot 19 of player's current inventory to grey dye named "&cOFF" with lore "&7武器の数が0個だと、ONにしても意味がありません" and " " and "&eクリックでAK-47の使用をON"
- else:
- set slot 19 of player's current inventory to lime dye named "&aON" with lore "&7武器の数が0個だと、ONにしても意味がありません" and " " and "&eクリックでAK-47の使用をOFF"
- set slot 11 of player's current inventory to gold horse armor named "&a&lM4A4" with lore "&63100コイン必要" and "&9青チーム専用" and "&7現在&f%{m4a4.%uuid of player%}%&7個所持" and " " and "&eクリックで10個購入"
- if {m4a4use.%uuid of player%} is not set:
- set slot 20 of player's current inventory to grey dye named "&cOFF" with lore "&7武器の数が0個だと、ONにしても意味がありません" and " " and "&eクリックでM4A4の使用をON"
- else:
- set slot 20 of player's current inventory to lime dye named "&aON" with lore "&7武器の数が0個だと、ONにしても意味がありません" and " " and "&eクリックでM4A4の使用をOFF"
- set slot 12 of player's current inventory to gold horse armor named "&5&lAWP" with lore "&64750コイン必要" and "&7全チーム兼用" and "&7現在&f%{awp.%uuid of player%}%&7個所持" and " " and "&eクリックで10個購入"
- if {awpuse.%uuid of player%} is not set:
- set slot 21 of player's current inventory to grey dye named "&cOFF" with lore "&7武器の数が0個だと、OFFにしても意味がありません" and " " and "&eクリックでAWPの使用をON"
- else:
- set slot 21 of player's current inventory to lime dye named "&aON" with lore "&7武器の数が0個だと、ONにしても意味がありません" and " " and "&eクリックでAWPの使用をOFF"
- on inventory click:
- if name of player's current inventory contains "武器選択、購入":
- cancel event
- if clicked slot is 10:
- if {coin.%uuid of player%} >= 2700:
- remove 2700 from {coin.%uuid of player%}
- add 10 to {ak47.%uuid of player%}
- send "&aAK-47を10個分購入しました" to player
- make player execute command "/shop hnfewfbbfwygbb"
- else:
- send "&cコインが足りません" to player
- if clicked slot is 11:
- if {coin.%uuid of player%} >= 3100:
- remove 3100 from {coin.%uuid of player%}
- add 10 to {m4a4.%uuid of player%}
- send "&aM4A4を10個分購入しました" to player
- make player execute command "/shop hnfewfbbfwygbb"
- else:
- send "&cコインが足りません" to player
- if clicked slot is 12:
- if {coin.%uuid of player%} >= 4750:
- remove 4750 from {coin.%uuid of player%}
- add 10 to {awp.%uuid of player%}
- send "&aAWPを10個分購入しました" to player
- make player execute command "/shop hnfewfbbfwygbb"
- else:
- send "&cコインが足りません" to player
- if clicked slot is 19:
- if {ak47use.%uuid of player%} is not set:
- set {ak47use.%uuid of player%} to true
- else:
- delete {ak47use.%uuid of player%}
- make player execute command "/shop hnfewfbbfwygbb"
- if clicked slot is 20:
- if {m4a4use.%uuid of player%} is not set:
- set {m4a4use.%uuid of player%} to true
- else:
- delete {m4a4use.%uuid of player%}
- make player execute command "/shop hnfewfbbfwygbb"
- if clicked slot is 21:
- if {awpuse.%uuid of player%} is not set:
- set {awpuse.%uuid of player%} to true
- else:
- delete {awpuse.%uuid of player%}
- make player execute command "/shop hnfewfbbfwygbb"
- #==================================================[ その他 ]==================================================#
- on first join:
- set {kill.%uuid of player%} to 0
- set {death.%uuid of player%} to 0
- set {killdeath.%uuid of player%} to 0
- set {win.%uuid of player%} to 0
- set {lose.%uuid of player%} to 0
- set {winlose.%uuid of player%} to 0
- set {level.%uuid of player%} to 1
- set {xp.%uuid of player%} to 0
- set {needxp.%uuid of player%} to 10
- set {prefix.%uuid of player%} to ""
- set {suffix.%uuid of player%} to ""
- every 3 seconds:
- loop all players:
- if {xp.%uuid of loop-player%} >= {needxp.%uuid of loop-player%}:
- set {xp.%uuid of loop-player%} to {xp.%uuid of loop-player%} - {needxp.%uuid of loop-player%}
- add 1 to {level.%uuid of loop-player%}
- set {needxp.%uuid of loop-player%} to {needxp.%uuid of loop-player%} * 1.5
- send "&b&lレベルアップ!! &a現在のレベル&7: &e%{level.%uuid of loop-player%}%" to loop-player
- set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%{prefix.%uuid of loop-player%}%&r%loop-player%&r%{suffix.%uuid of loop-player%}%"
- on join:
- wait 3 ticks
- set the player's tablist name to "&7[Lv%{level.%uuid of player%}%]&r%{prefix.%uuid of player%}%&r%player%&r%{suffix.%uuid of player%}%"
- set health of player to max health of player
- send "&a▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬" to player
- send " &f&lTeamGunPvP" to player
- send " " to player
- send " &e&l攻撃側と防衛側に分かれ、チームで戦います。" to player
- send " &e&l攻撃側は特定の場所に黒曜石を置き、" to player
- send " &e&lそれを壊されないよう守る必要があります。" to player
- send " &e&l防衛側は黒曜石を置かれないように防衛しましょう。" to player
- send " &e&lもし置かれても、破壊が可能です。" to player
- send " " to player
- send "&a▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬" to player
- wait 5 ticks
- command "/gamemode 2 %player%"
- command "/clear %player%"
- give grey dye named "&eゲームに参加する" to player
- teleport the player to {lobby}
- on chat:
- cancel event
- if {mutelist::*} contains player:
- send "&cあなたはミュートされているため、発言することができません。" to player
- stop
- else if {spam.%player's UUID%} is coloured message:
- send "&6---------------------------" to player
- send "&c&l同じメッセージを送信できません" to player
- send "&6---------------------------" to player
- stop
- else if {team.%player%} is set:
- set {spam.%player's UUID%} to coloured message
- broadcast "&7[Lv%{level.%uuid of player%}%]&r%{prefix.%uuid of player%}%&r%{teamchat.%player%}%%player%&r%{suffix.%uuid of player%}%&e》&r%coloured message%"
- else:
- set {spam.%player's UUID%} to coloured message
- broadcast "&7[Lv%{level.%uuid of player%}%]&r%{prefix.%uuid of player%}%&r%player%&r%{suffix.%uuid of player%}%&e》&r%coloured message%"
- command /chat [<text>] [<offline player>] [<text>]:
- permission: skript.admin
- usage: /chat <prefix|suffix|mute|unmute> <player> <text>
- trigger:
- if arg 1 is "prefix":
- set {prefix.%uuid of arg 2%} to colored arg 3
- send "&b%arg 2%さんのprefixを「&r%{prefix.%arg 2%}%&b」に変更しました。" to player
- stop
- if arg 1 is "suffix":
- set {suffix.%uuid of arg 2%} to colored arg 3
- send "&b%arg 2%さんのsuffixを&r「%{suffix.%arg 2%}%&b」に変更しました。" to player
- stop
- if arg 1 is "deleteprefix":
- if arg 3 is not set:
- set {prefix.%uuid of arg 2%} to ""
- send "&b%arg 2%さんのprefixを削除しました" to player
- stop
- if arg 1 is "deletesuffix":
- if arg 3 is not set:
- set {suffix.%uuid of arg 2%} to ""
- send "&b%arg 2%さんのsuffixを削除しました" to player
- stop
- if arg 1 is "mute":
- if {mutelist::*} contains arg 2:
- send "&c%arg 2%さんはすでにミュートされています。"
- stop
- send "&e%arg 2%さんが%sender%さんにミュートされました。" to ops
- send "&e理由:%coloured arg 3%" to ops
- add arg 2 to {mutelist::*}
- stop
- if arg 1 is "unmute":
- if {mutelist::*} contains arg 2:
- send "&a%arg 2%さんが%sender%さんにミュート解除されました。" to ops
- send "&a理由:%coloured arg 3%" to ops
- remove arg 2 from {mutelist::*}
- stop
- send "&c%arg 2%さんはミュートされていません。" to player
- stop
- command /mutelist [<offline player>]:
- permission: skript.admin
- trigger:
- if arg 1 is not set:
- send "&d次のプレイヤーがミュートされています:"
- send "%{mutelist::*}%"
- stop
- if {mutelist::*} contains arg 1:
- send "&d対象のプレイヤーはミュートされています。"
- stop
- send "&b対象のプレイヤーはミュートされていません。"
- on click:
- if player is holding lime dye named "&cゲームを抜ける":
- remove lime dye named "&cゲームを抜ける" from player
- set {join.%player%} to false
- send "&cゲームを抜けました"
- wait 5 ticks
- give grey dye named "&eゲームに参加する" to player
- on click:
- if player is holding grey dye named "&eゲームに参加する":
- remove grey dye named "&eゲームに参加する" from player
- set {join.%player%} to true
- send "&eゲームに参加しました" to player
- wait 5 ticks
- give lime dye named "&cゲームを抜ける" to player
- command /booster [<text>]:
- trigger:
- if arg 1 is "higrebvrgerbeu":
- set {booster} to true
- set {boostercount} to 1800
- broadcast "&6------------------------------------"
- broadcast "&a&l%player%が30分ブースターを使用しました"
- broadcast "&6------------------------------------"
- command /dye:
- permission: skript.admin
- trigger:
- give grey dye named "&eゲームに参加する" to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement