Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /nlo.int [<text>] [<text>] [<text>] [<text>]:
- permission: skript.admin
- trigger:
- if arg 1 is set:
- if arg 2 is set:
- if arg 3 is set:
- if arg 4 is not set:
- message "&c引数が足りません"
- message "&9/nlo.int <NLO Name> &6[x] [y] [z]"
- stop
- set {nlo.x::%arg 1%} to round(arg 2 parsed as number)
- set {nlo.y::%arg 1%} to round(arg 3 parsed as number)
- set {nlo.z::%arg 1%} to round(arg 4 parsed as number)
- set {nlo.loc::%arg 1%} to location ({nlo.x::%arg 1%}, {nlo.y::%arg 1%}, {nlo.z::%arg 1%})
- message "&aNLO名'%arg 1%'に座標を設定しました&d(%{nlo.x::%arg 1%}%, %{nlo.y::%arg 1%}%, %{nlo.z::%arg 1%}%)"
- else:
- set {_arg2} to arg 2 parsed as player
- if {_arg2} is online:
- set {nlo.x::%arg 1%} to round({_arg2}'s x-coordinate)
- set {nlo.y::%arg 1%} to round({_arg2}'s y-coordinate)
- set {nlo.z::%arg 1%} to round({_arg2}'s z-coordinate)
- set {nlo.loc::%arg 1%} to location ({nlo.x::%arg 1%}, {nlo.y::%arg 1%}, {nlo.z::%arg 1%})
- message "&aNLO名'%arg 1%'に座標を設定しました&d(%{nlo.x::%arg 1%}%, %{nlo.y::%arg 1%}%, %{nlo.z::%arg 1%}%)"
- else:
- message "&cそのプレイヤーはオフラインです"
- else:
- set {nlo.x::%arg 1%} to round(player's x-coordinate)
- set {nlo.y::%arg 1%} to round(player's y-coordinate)
- set {nlo.z::%arg 1%} to round(player's z-coordinate)
- set {nlo.loc::%arg 1%} to location ({nlo.x::%arg 1%}, {nlo.y::%arg 1%}, {nlo.z::%arg 1%})
- message "&aNLO名'%arg 1%'に座標を設定しました&d(%{nlo.x::%arg 1%}%, %{nlo.y::%arg 1%}%, %{nlo.z::%arg 1%}%)"
- else:
- message "&c引数が足りません"
- message "&9/nlo.int &6<NLO Name> &9[Player]"
- message "&9/nlo.int &6<NLO Name> &9[x] [y] [z]"
- command /nlo.set [<text>] [<text>] [<text>] [<text>]:
- permission: skript.admin
- trigger:
- if arg 1 is set:
- if arg 2 is set:
- if arg 3 is set:
- if arg 4 is not set:
- message "&c引数が足りません"
- message "&9/nlo.set <NLO Name> &6[x] [y] [z]"
- stop
- set {nlo.x::%arg 1%} to round(arg 2 parsed as number)+0.5
- set {nlo.y::%arg 1%} to round(arg 3 parsed as number)+0.5
- set {nlo.z::%arg 1%} to round(arg 4 parsed as number)+0.5
- set {nlo.loc::%arg 1%} to location ({nlo.x::%arg 1%}, {nlo.y::%arg 1%}, {nlo.z::%arg 1%})
- message "&aNLO名'%arg 1%'に座標を設定しました&d(%{nlo.x::%arg 1%}%, %{nlo.y::%arg 1%}%, %{nlo.z::%arg 1%}%)"
- else:
- set {_arg2} to arg 2 parsed as player
- if {_arg2} is online:
- set {nlo.x::%arg 1%} to round({_arg2}'s x-coordinate)+0.5
- set {nlo.y::%arg 1%} to round({_arg2}'s y-coordinate)+0.5
- set {nlo.z::%arg 1%} to round({_arg2}'s z-coordinate)+0.5
- set {nlo.loc::%arg 1%} to location ({nlo.x::%arg 1%}, {nlo.y::%arg 1%}, {nlo.z::%arg 1%})
- message "&aNLO名'%arg 1%'に座標を設定しました&d(%{nlo.x::%arg 1%}%, %{nlo.y::%arg 1%}%, %{nlo.z::%arg 1%}%)"
- else:
- message "&cそのプレイヤーはオフラインです"
- else:
- set {nlo.x::%arg 1%} to round(player's x-coordinate)+0.5
- set {nlo.y::%arg 1%} to round(player's y-coordinate)+0.5
- set {nlo.z::%arg 1%} to round(player's z-coordinate)+0.5
- set {nlo.loc::%arg 1%} to location ({nlo.x::%arg 1%}, {nlo.y::%arg 1%}, {nlo.z::%arg 1%})
- message "&aNLO名'%arg 1%'に座標を設定しました&d(%{nlo.x::%arg 1%}%, %{nlo.y::%arg 1%}%, %{nlo.z::%arg 1%}%)"
- else:
- message "&c引数が足りません"
- message "&9/nlo.set &6<NLO Name> &9[Player]"
- message "&9/nlo.set &6<NLO Name> &9[x] [y] [z]"
- command /nlo.dub [<text>] [<text>] [<text>] [<text>]:
- permission: skript.admin
- trigger:
- if arg 1 is set:
- if arg 2 is set:
- if arg 3 is set:
- if arg 4 is not set:
- message "&c引数が足りません"
- message "&9/nlo.dub <NLO Name> &6[x] [y] [z]"
- stop
- set {nlo.x::%arg 1%} to arg 2 parsed as number
- set {nlo.y::%arg 1%} to arg 3 parsed as number
- set {nlo.z::%arg 1%} to arg 4 parsed as number
- set {nlo.loc::%arg 1%} to location ({nlo.x::%arg 1%}, {nlo.y::%arg 1%}, {nlo.z::%arg 1%})
- message "&aNLO名'%arg 1%'に座標を設定しました&d(%{nlo.x::%arg 1%}%, %{nlo.y::%arg 1%}%, %{nlo.z::%arg 1%}%)"
- else:
- set {_arg2} to arg 2 parsed as player
- if {_arg2} is online:
- set {nlo.x::%arg 1%} to {_arg2}'s x-coordinate
- set {nlo.y::%arg 1%} to {_arg2}'s y-coordinate
- set {nlo.z::%arg 1%} to {_arg2}'s z-coordinate
- set {nlo.loc::%arg 1%} to location ({nlo.x::%arg 1%}, {nlo.y::%arg 1%}, {nlo.z::%arg 1%})
- message "&aNLO名'%arg 1%'に座標を設定しました&d(%{nlo.x::%arg 1%}%, %{nlo.y::%arg 1%}%, %{nlo.z::%arg 1%}%)"
- else:
- message "&cそのプレイヤーはオフラインです"
- else:
- set {nlo.x::%arg 1%} to player's x-coordinate
- set {nlo.y::%arg 1%} to player's y-coordinate
- set {nlo.z::%arg 1%} to player's z-coordinate
- set {nlo.loc::%arg 1%} to location ({nlo.x::%arg 1%}, {nlo.y::%arg 1%}, {nlo.z::%arg 1%})
- message "&aNLO名'%arg 1%'に座標を設定しました&d(%{nlo.x::%arg 1%}%, %{nlo.y::%arg 1%}%, %{nlo.z::%arg 1%}%)"
- else:
- message "&c引数が足りません"
- message "&9/nlo.dub &6<NLO Name> &9[Player]"
- message "&9/nlo.dub &6<NLO Name> &9[x] [y] [z]"
- command /nlo.clear [<text>]:
- permission: skript.admin
- trigger:
- if arg 1 is set:
- clear {nlo.x::%arg 1%}
- clear {nlo.y::%arg 1%}
- clear {nlo.z::%arg 1%}
- clear {nlo.loc::%arg 1%}
- message "&aNLO名'%arg 1%'を初期化しました"
- else:
- message "&c引数が足りません"
- message "&9/nlo.set &6<NLO Name>"
- command /nlo.tp [<text>] [<player>]:
- permission: skript.admin
- trigger:
- if arg 1 is not set:
- message "&c引数が足りません"
- message "&9/nlo.tp &6<NLO Name> &9[player]"
- set {_player} to arg 2
- if arg 2 is not set:
- set {_player} to player
- teleport {_player} to location of {nlo.loc::%arg 1%}
- message "&aテレポートしました"
Advertisement
Add Comment
Please, Sign In to add comment