Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /pkjoin:
- trigger:
- if {gamekojosen} is not set:
- if {pokerplayer::*} contains player:
- send "&8《&4&lP&0&lo&4&lk&0&le&4&lr&8》&c既に参加しています。"
- else:
- add player to {joined::*}
- add player to {pokerplayer::*}
- set {spawn::*} to {setspawn::*}
- set {_spawn} to random string of {spawn::*}
- teleport player to {_spawn}
- remove {_spawn} from {spawn::*}
- broadcast "&8《&4&lP&0&lo&4&lk&0&le&4&lr&8》&a%player%&bさんが参加。現在&e%size of {joined::*}%&b人。"
- if size of {joined::*} = 2:
- loop {joined::*}:
- broadcast "&8《&4&lP&0&lo&4&lk&0&le&4&lr&8》&a10秒後にゲームを開始します。" to loop-value
- wait 5 second
- loop {joined::*}:
- broadcast "&8《&4&lP&0&lo&4&lk&0&le&4&lr&8》&a5秒後にゲームを開始します。" to loop-value
- wait 1 second
- loop {joined::*}:
- broadcast "&8《&4&lP&0&lo&4&lk&0&le&4&lr&8》&a4秒後にゲームを開始します。" to loop-value
- wait 1 second
- loop {joined::*}:
- broadcast "&8《&4&lP&0&lo&4&lk&0&le&4&lr&8》&a3秒後にゲームを開始します。" to loop-value
- wait 1 second
- loop {joined::*}:
- broadcast "&8《&4&lP&0&lo&4&lk&0&le&4&lr&8》&a2秒後にゲームを開始します。" to loop-value
- wait 1 second
- loop {joined::*}:
- broadcast "&8《&4&lP&0&lo&4&lk&0&le&4&lr&8》&a1秒後にゲームを開始します。" to loop-value
- wait 1 second
- set {gamekojosen} to true
- gamestart()
- else:
- send "&8《&4&lP&0&lo&4&lk&0&le&4&lr&8》&c現在ゲームが始まっています。"
- function gamestart()
- function gameend()
- loop {joined::*}:
- set {a} to 13
- set {b} to 0
- set {g} to 5
- set {h} to 0
- while {a} > {b}:
- add 1 to {b}
- set {bh} to {b}
- set {ch} to {b} + 1
- set {dh} to {b} + 2
- set {eh} to {b} + 3
- set {fh} to {b} + 4
- while {g} > {h}:
- add 1 to {h}
- if {center.%{h}%.%{bh}%h} is true:
- set {hand.%{bh}%h.%loop-value%} to true
- if {center.%{h}%.%{ch}%h} is true:
- set {hand.%{ch}%h.%loop-value%} to true
- if {center.%{h}%.%{dh}%h} is true:
- set {hand.%{dh}%h.%loop-value%} to true
- if {center.%{h}%.%{eh}%h} is true:
- set {hand.%{eh}%h.%loop-value%} to true
- if {center.%{h}%.%{fh}%h} is true:
- set {hand.%{fh}%h.%loop-value%} to true
- if {mycards.1.
- set {a} to 13
- set {b} to 0
- set {g} to 5
- set {h} to 0
- while {a} > {b}:
- add 1 to {b}
- set {bs} to {b}
- set {cs} to {b} + 1
- set {ds} to {b} + 2
- set {es} to {b} + 3
- set {fs} to {b} + 4
- while {g} > {h}:
- add 1 to {h}
- if {center.%{h}%.%{bs}%s} is true:
- set {hand.%{bs}%s.%loop-value%} to true
- if {center.%{h}%.%{cs}%s} is true:
- set {hand.%{cs}%s.%loop-value%} to true
- if {center.%{h}%.%{ds}%s} is true:
- set {hand.%{ds}%s.%loop-value%} to true
- if {center.%{h}%.%{es}%s} is true:
- set {hand.%{es}%s.%loop-value%} to true
- if {center.%{h}%.%{fs}%s} is true:
- set {hand.%{fs}%s.%loop-value%} to true
- every second:
- if {game} is true:
- command /setspawn:
- permission: admin
- trigger:
- add arg to {setspawn::*}
- send "&a現在%size of {setspawn::*}%個セット"
Add Comment
Please, Sign In to add comment