Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on join:
- if {player.other.joined::%player%} is not set:
- set {player.other.joined::%player%} to false
- if {player.other.joined::%player%} is false:
- set {player.other.joined::%player%} to true
- command "..firstjoinevent %player%"
- command /..refje <player>:
- trigger:
- set {player.other.joined::%player%} to false
- on chat:
- if {player.opt.chatsendcancel::%player%} is true:
- cancel event
- message "&cError &7>> &c現在メッセージの送信を禁止されています"
- stop
- loop all players:
- {player.opt.chatloadcancel::%loop-player%} is true
- remove loop-player from chat recipients
- every tick:
- loop all players:
- if {player.prm.hp::%loop-player%} is not set:
- set {player.prm.hp::%loop-player%} to 10
- if {player.prm.mp::%loop-player%} is not set:
- set {player.prm.mp::%loop-player%} to 3
- if {player.stat.hp::%loop-player%} is not set:
- set {player.stat.hp::%loop-player%} to 10
- if {player.stat.mp::%loop-player%} is not set:
- set {player.stat.mp::%loop-player%} to 3
- if {player.stat.hp::%loop-player%} > {player.prm.hp::%loop-player%}:
- set {player.stat.hp::%loop-player%} to {player.prm.hp::%loop-player%}
- if {player.stat.mp::%loop-player%} > {player.prm.mp::%loop-player%}:
- set {player.stat.mp::%loop-player%} to {player.prm.mp::%loop-player%}
- if {player.prm.level::%loop-player%} is not set:
- set {player.prm.level::%loop-player%} to 1
- if {player.set.lvup::%loop-player%} is not set:
- set {player.set.lvup::%loop-player%} to 20
- if {player.set.lvup::%loop-player%} <= {player.stat.exp::%loop-player%}:
- remove {player.set.lvup::%loop-player%} from {player.stat.exp::%loop-player%}
- add 1 to {player.prm.level::%loop-player%}
- set {_lvupup} to ceil({player.prm.level::%loop-player%}/5)*5+5
- set {player.set.lvup::%loop-player%} to {player.set.lvup::%loop-player%}+{_lvupup}
- set {_getpp} to ceil(3+{player.prm.level::%loop-player%}/30)
- if {_getpp} > 100:
- set {_getpp} to 100
- add {_getpp} to {player.stat.pp::%loop-player%}
- add 1 to {player.stat.sp::%loop-player%}
- message "&c&l* &e&lLEVEL UP: &6&l%{player.prm.level::%loop-player%}% &c&l*" to loop-player
- message "&cGet: &6%{_getpp}%&cPP" to loop-player
- message "&bGet: &61&bSP" to loop-player
- message "&7Next LevelUp: &6%{player.set.lvup::%loop-player%}%&7EXP" to loop-player
- command /help-u [<text>]:
- aliases: /h
- trigger:
- if arg 1 is not set:
- message "&7&l=== &e&lUltima Help &7&l==="
- message "&2/h stat &7>> &6ステータスについて"
- if arg 1 is "stat":
- message "&7&l=== &a&lステータスについて &7&l==="
- message "&4PP &7>> &4ParametersPoint(成長点) &7... &4STR,VIT,AGI,INT,LUCに振り分け可能なポイントです。"
- message ""
- message "&bHP &7>> &bHealthPoint(体力量) &7... &bダメージによって減少し、0になると死亡します。"
- message "&1PP振り分け不可 &7計算式 &n(STR^1.3+VIT^2)/2+10 (小数点以下切り捨て)"
- message "&aMP &7>> &aMagicPoint(魔力量) &7... &aスキルの行使に使用します。マイナスになるとダメージを受け始めます。"
- message "&1PP振り分け不可 &7計算式 &n(LUC^1.2+INT^1.8)/2+3 (小数点以下切り捨て)"
- message "&eAVO &7>> &eAvoidance(回避) &7... &e相手からの攻撃の回避率(攻撃失敗させる)に影響します。"
- message "&1PP振り分け不可 &7計算式 &n(INT^1.1+AGI^1.5)/2+3 (小数点以下切り捨て)"
- message ""
- message "&cSTR &7>> &cStrength(攻撃力) &7... &c相手への物理攻撃ダメージに影響します。"
- message "&5PP振り分け可能 &7HPに小影響"
- message "&dVIT &7>> &dVitality(生命力) &7... &d回復スキルの効果量などに影響します。"
- message "&5PP振り分け可能 &7HPに大影響"
- message "&6AGI &7>> &6AGI(敏捷性) &7... &6移動速度などに影響します。"
- message "&5PP振り分け可能 &7AVOに大影響"
- message "&9INT &7>> &9Intelligence(知力) &7... &9相手への魔法攻撃ダメージに影響します。"
- message "&5PP振り分け可能 &7MPに大影響 AVOに小影響"
- message "&2LUC &7>> &2Luck(幸運) &7... &2クリティカル成功率などに影響します。"
- message "&5PP振り分け可能 &7MPに小影響"
- command /nowpp:
- trigger:
- message "&9残りPP&7:&6%{player.stat.pp::%player%}%"
- command /..nowpp [<player>]:
- permission: ultima.nowpp
- trigger:
- set {_p} to arg 1
- if arg 1 is not set:
- set {_p} to player
- message "&9残りPP&7:&6%{player.stat.pp::%{_p}%}%" to {_p}
- command /..firstjoinevent <player>:
- permission: ultima.firstjoinevent
- trigger:
- clear arg 1's inventory
- teleport arg 1 to location (100033.5, 108, 100030.5)
- command "spawnpoint %arg 1% 100000 102 99991"
- set gamemode of arg 1 to adventure
- set {player.opt.chatloadcancel::%arg 1%} to true
- set {player.opt.chatsendcancel::%arg 1%} to true
- loop 40 times:
- message "" to arg 1
- wait a tick
- wait 2 second
- message "&7>> &cあなたが、新しい来訪者ね?" to arg 1
- wait 3 second
- message "&7>> &c喜んで迎え入れましょう――" to arg 1
- wait 3 second
- message "&7>> &cようこそ &4""Ultima"" &cへ" to arg 1
- wait 5 tick
- set gamemode of arg 1 to spectator
- wait 10 tick
- set {_y} to 108
- set {_y!} to 0.6
- command "teleport %arg 1% ~ ~ ~ 90 0"
- loop 30 times:
- remove 0.02 from {_y!}
- add {_y!} to {_y}
- teleport arg 1 to location (100033.5, {_y}, 100030.5)
- wait a tick
- set {player.opt.chatloadcancel::%arg 1%} to false
- set {player.opt.chatsendcancel::%arg 1%} to false
- loop 45 times:
- teleport arg 1 to location (100033.5, {_y}, 100030.5)
- wait a tick
- command "teleport %arg 1% 100000 102 99991 ~ ~"
- set gamemode of arg 1 to adventure
- clear {player.set.next::%arg 1%}
- command "..tutorial %arg 1% 1"
- command /..tutorial <player> <number> [<number>]:
- permission: ultima.tutorial
- trigger:
- if arg 2 is 1:
- message "&e案内人 &7>>"
- message "&7>> &aこんにちは、%arg 1%&aさん" to arg 1
- message "&7>> &aこれから事前設定とチュートリアルを開始します" to arg 1
- message "&7>> &aこのチュートリアルは基本的に&6/next&aで進めます" to arg 1
- message "&7>> &aでは、早速&6/next&aしてみましょう!" to arg 1
- set {player.set.next::%arg 1%} to "tutorial.1"
- if arg 2 is 2:
- message "&e案内人 &7>>"
- message "&7>> &aそんな感じですね!" to arg 1
- message "&7>> &aではまず事前設定から始めます" to arg 1
- message "&7>> &b・ストーリーパートを見ますか?" to arg 1
- message "&7>> &6/next 0 &eで見る &6/next 1 &eで見ない" to arg 1
- message "&7>> &aストーリーパートでは物語が綴られていきます" to arg 1
- message "&7>> &a見なくてもゲームの進行には影響ありません" to arg 1
- message "&7>> &aストーリーパートは数十秒から数分かかります" to arg 1
- set {player.set.next::%arg 1%} to "tutorial.2"
- if arg 2 is 3:
- message "&e案内人 &7>>"
- if arg 3 is 0:
- set {player.opt.playstory::%arg 1%} to true
- message "&7>> &b「見る」に設定しました!"
- if arg 3 is 1:
- set {player.opt.playstory::%arg 1%} to false
- message "&7>> &b「見ない」に設定しました!"
- message "&7>> &aこの設定は後から変更できます!"
- set {player.set.next::%arg 1%} to "tutorial.3"
- command /next [<number>]:
- trigger:
- if {player.set.next::%player%} is "tutorial.1":
- command "..tutorial %player% 2"
- if {player.set.next::%player%} is "tutorial.2":
- if arg 1 is 0:
- command "..tutorial %player% 2 0"
- else if arg 1 is 1:
- command "..tutorial %player% 2 1"
- else:
- message "&7>> &c/next の後に数字を指定してください"
- command /status:
- trigger:
- message ""
- message "&3&l&o[ S T A T U S ]"
- message "&6&lLevel&7: &6%{player.prm.level::%player%}% &a&lEXP&7: &a%{player.stat.exp::%player%}%&7/&a%{player.set.lvup::%player%}%"
- message "&b&lHP&7:&b%{player.stat.hp::%player%}%&7/&b%{player.prm.hp::%player%}%"
- message "&a&lMP&7:&a%{player.stat.mp::%player%}%&7/&a%{player.prm.mp::%player%}%"
- message "&e&lAVO&7:&e%{player.prm.avo::%player%}% &c&lSTR&7:&c%{player.prm.str::%player%}% &d&lVIT&7:&d%{player.prm.vit::%player%}%"
- message "&6&lAGI&7:&6%{player.prm.agi::%player%}% &9&lINT&7:&9%{player.prm.int::%player%}% &2&lLUC&7:&2%{player.prm.luc::%player%}%"
- message ""
- command /..status [<player>]:
- permission: ultima.status
- trigger:
- set {_p} to arg 1
- if arg 1 is not set:
- set {_p} to player
- message "" to {_p}
- message "&3&l&o[ S T A T U S ]" to {_p}
- message "&6&lLevel&7: &6%{player.prm.level::%{_p}%}% &a&lEXP&7: &a%{player.stat.exp::%{_p}%}%&7/&a%{player.set.lvup::%{_p}%}%" to {_p}
- message "&b&lHP&7:&b%{player.stat.hp::%{_p}%}%&7/&b%{player.prm.hp::%{_p}%}%" to {_p}
- message "&a&lMP&7:&a%{player.stat.mp::%{_p}%}%&7/&a%{player.prm.mp::%{_p}%}%" to {_p}
- message "&e&lAVO&7:&e%{player.prm.avo::%{_p}%}% &c&lSTR&7:&c%{player.prm.str::%{_p}%}% &d&lVIT&7:&d%{player.prm.vit::%{_p}%}%" to {_p}
- message "&6&lAGI&7:&6%{player.prm.agi::%{_p}%}% &9&lINT&7:&9%{player.prm.int::%{_p}%}% &2&lLUC&7:&2%{player.prm.luc::%{_p}%}%" to {_p}
- message "" to {_p}
- command /..statusreset [<player>]:
- permission: ultima.statusreset
- trigger:
- set {_p} to arg 1
- if arg 1 is not set:
- set {_p} to player
- set {player.prm.level::%{_p}%} to 1
- set {player.prm.hp::%{_p}%} to 10
- set {player.prm.mp::%{_p}%} to 3
- set {player.prm.avo::%{_p}%} to 3
- set {player.prm.str::%{_p}%} to 0
- set {player.prm.vit::%{_p}%} to 0
- set {player.prm.agi::%{_p}%} to 0
- set {player.prm.int::%{_p}%} to 0
- set {player.prm.luc::%{_p}%} to 0
- set {player.stat.pp::%{_p}%} to 10
- set {player.stat.exp::%{_p}%} to 0
- set {player.stat.sp::%{_p}%} to 0
- set {player.set.lvup::%{_p}%} to 20
- command "/alm %{_p}%"
- command /allotment [<player>]:
- aliases: /alm
- trigger:
- set {_p} to arg 1
- if arg 1 is not set:
- set {_p} to player
- wait a tick
- open chest with 2 rows named "&6&lStatus" to {_p}
- wait a tick
- format slot 2 of {_p} with wool:14 named "&c&lSTR" with lore "&cStrength / 攻撃力 &7にPPを割り振る" to run "..allotment str %{_p}%"
- format slot 3 of {_p} with wool:2 named "&d&lVIT" with lore "&dVitality / 生命力 &7にPPを割り振る" to run "..allotment vit %{_p}%"
- format slot 4 of {_p} with wool:1 named "&6&lAGI" with lore "&6Agility / 俊敏性 &7にPPを割り振る" to run "..allotment agi %{_p}%"
- format slot 5 of {_p} with wool:9 named "&9&lINT" with lore "&9IntelliGence / 知力 &7にPPを割り振る" to run "..allotment int %{_p}%"
- format slot 6 of {_p} with wool:13 named "&2&lLUC" with lore "&2Luck / 幸運 &7にPPを割り振る" to run "..allotment luc %{_p}%"
- format slot 9 of {_p} with diamond named "&6&l残りPP量を確認" to run "..nowpp %{_p}%"
- format slot 12 of {_p} with wool:3 named "&b&lHP" with lore "&bHealthPoint / 体力||&7(STR^1.3+VIT^2)/2+10" to be unstealable
- format slot 13 of {_p} with wool:5 named "&a&lMP" with lore "&aMagicPoint / 魔力||&7(LUC^1.2+INT^1.8)/2+3" to be unstealable
- format slot 14 of {_p} with wool:4 named "&e&lAVO" with lore "&bAvoidance / 回避||&7(INT^1.1+AGI^1.5)/2+3" to be unstealable
- format slot 17 of {_p} with nether_star named "&3&lステータスを表示" to run "..status %{_p}%"
- command /..allotment <text> [<player>]:
- permission: ultima.allotment
- trigger:
- set {_p} to arg 2
- if arg 2 is not set:
- set {_p} to player
- if {player.stat.pp::%{_p}%} < 1:
- message "&3[STATUS] &cPPが足りません" to {_p}
- stop
- if arg 1 is "str":
- remove 1 from {player.stat.pp::%{_p}%}
- add 1 to {player.prm.str::%{_p}%}
- message "&3[STATUS] &c攻撃力&7に1ポイント割り振りました&c(計%{player.prm.str::%{_p}%}%ポイント)" to {_p}
- if arg 1 is "vit":
- remove 1 from {player.stat.pp::%{_p}%}
- add 1 to {player.prm.vit::%{_p}%}
- message "&3[STATUS] &d生命力&7に1ポイント割り振りました&d(計%{player.prm.vit::%{_p}%}%ポイント)" to {_p}
- if arg 1 is "agi":
- remove 1 from {player.stat.pp::%{_p}%}
- add 1 to {player.prm.agi::%{_p}%}
- message "&3[STATUS] &6俊敏性&7に1ポイント割り振りました&6(計%{player.prm.agi::%{_p}%}%ポイント)" to {_p}
- if arg 1 is "int":
- remove 1 from {player.stat.pp::%{_p}%}
- add 1 to {player.prm.int::%{_p}%}
- message "&3[STATUS] &9知力&7に1ポイント割り振りました&9(計%{player.prm.int::%{_p}%}%ポイント)" to {_p}
- if arg 1 is "luc":
- remove 1 from {player.stat.pp::%{_p}%}
- add 1 to {player.prm.luc::%{_p}%}
- message "&3[STATUS] &2幸運&7に1ポイント割り振りました&2(計%{player.prm.luc::%{_p}%}%ポイント)" to {_p}
- command "..calc3stat %{_p}%"
- command /..calc3stat [<player>]:
- permission: ultima.calc3stat
- trigger:
- set {_p} to arg 1
- if arg 1 is not set:
- set {_p} to player
- set {player.prm.hp::%{_p}%} to {player.prm.str::%{_p}%}^1.3+{player.prm.vit::%{_p}%}^2
- set {player.prm.hp::%{_p}%} to ceil({player.prm.hp::%{_p}%}/2)
- add 10 to {player.prm.hp::%{_p}%}
- set {player.prm.mp::%{_p}%} to {player.prm.luc::%{_p}%}^1.2+{player.prm.int::%{_p}%}^1.8
- set {player.prm.mp::%{_p}%} to ceil({player.prm.mp::%{_p}%}/2)
- add 3 to {player.prm.mp::%{_p}%}
- set {player.prm.avo::%{_p}%} to {player.prm.int::%{_p}%}^1.1+{player.prm.agi::%{_p}%}^1.5
- set {player.prm.avo::%{_p}%} to ceil({player.prm.avo::%{_p}%}/2)
- add 3 to {player.prm.avo::%{_p}%}
- command /..giveexp <player> <number>:
- permission: ultima.giveexp
- trigger:
- message "&aGet: &6%arg 2%&aEXP" to arg 1
- add arg 2 to {player.stat.exp::%arg 1%}
- command /..givelti <player> <number>:
- permission: ultima.giveexp
- trigger:
- message "&eGet: &6%arg 2%&eLti" to arg 1
- add arg 2 to {player.stat.lti::%arg 1%}
Add Comment
Please, Sign In to add comment