Advertisement
henry900326

Untitled

Jan 28th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 38.64 KB | None | 0 0
  1. Options:
  2. 玩家等級限制: 100
  3. On Chat:
  4. set {_玩家聊天訊息} to message
  5. cancel event
  6. if {玩家資料.%player%::VIP} is set:
  7. broadcast "&e[&a%{幾轉職業::%{玩家資料.%player%::玩家職業}%}%轉&e] &e%{玩家資料.%player%::玩家職業}% &a- &eLv.%{玩家資料.%player%::玩家等級}%&a - &c&l[&6&lV&a&lI&b&lP&5&l]&e%player% &f: &f%{_玩家聊天訊息}%"
  8. stop
  9. broadcast "&e[&a%{幾轉職業::%{玩家資料.%player%::玩家職業}%}%轉&e] &e%{玩家資料.%player%::玩家職業}% &a- &eLv.%{玩家資料.%player%::玩家等級}%&a - &e%player% &f: &f%{_玩家聊天訊息}%"
  10. On join:
  11. if file existance of "plugins/players/%player%.yml" is false:
  12. set join message to "&b// &6歡迎新玩家 &e%player% &6進入了伺服器 &b//"
  13. create file "plugins/players/%player%.yml"
  14. set "玩家等級" to "1" in yaml file "plugins/players/%player%.yml"
  15. set "最大經驗值" to "15" in yaml file "plugins/players/%player%.yml"
  16. set "目前經驗值" to "0" in yaml file "plugins/players/%player%.yml"
  17. set "力量" to "4" in yaml file "plugins/players/%player%.yml"
  18. set "智慧" to "4" in yaml file "plugins/players/%player%.yml"
  19. set "敏捷" to "4" in yaml file "plugins/players/%player%.yml"
  20. set "幸運" to "4" in yaml file "plugins/players/%player%.yml"
  21. set "最大血量" to "20" in yaml file "plugins/players/%player%.yml"
  22. set "MP" to "100" in yaml file "plugins/players/%player%.yml"
  23. set "防禦力" to "0" in yaml file "plugins/players/%player%.yml"
  24. set "物理攻擊力" to "0" in yaml file "plugins/players/%player%.yml"
  25. set "魔法攻擊力" to "0" in yaml file "plugins/players/%player%.yml"
  26. set "血量恢復量" to "10" in yaml file "plugins/players/%player%.yml"
  27. set "魔量恢復量" to "8" in yaml file "plugins/players/%player%.yml"
  28. set "爆擊率" to "5" in yaml file "plugins/players/%player%.yml"
  29. set "爆擊傷害" to "35" in yaml file "plugins/players/%player%.yml"
  30. set "無視防禦" to "0" in yaml file "plugins/players/%player%.yml"
  31. set "總傷害" to "100" in yaml file "plugins/players/%player%.yml"
  32. set "移動速度" to "100" in yaml file "plugins/players/%player%.yml"
  33. set "跳躍力" to "100" in yaml file "plugins/players/%player%.yml"
  34. set "血量吸收量" to "0" in yaml file "plugins/players/%player%.yml"
  35. set "魔量吸收量" to "1" in yaml file "plugins/players/%player%.yml"
  36. set "剩餘屬性點" to "0" in yaml file "plugins/players/%player%.yml"
  37. set "剩餘技能點" to "0" in yaml file "plugins/players/%player%.yml"
  38. set "玩家職業" to "初心者" in yaml file "plugins/players/%player%.yml"
  39. set "經驗卷倍率" to "100" in yaml file "plugins/players/%player%.yml"
  40. set "經驗卷時間" to "0" in yaml file "plugins/players/%player%.yml"
  41. set "VIP" to "無" in yaml file "plugins/players/%player%.yml"
  42. set "VIP時間" to "0" in yaml file "plugins/players/%player%.yml"
  43. set "重生點" to "無" in yaml file "plugins/players/%player%.yml"
  44. set yaml value "技能.魔力打擊" from "plugins/players/%player%.yml" to "0"
  45. set yaml value "技能.自我恢復" from "plugins/players/%player%.yml" to "0"
  46. set yaml value "技能.迅捷之步" from "plugins/players/%player%.yml" to "0"
  47. else:
  48. set join message to "&b// &e%player% &6進入了伺服器 &b//"
  49. set {玩家資料.%player%::玩家等級} to single value "玩家等級" get of "plugins/players/%player%.yml"
  50. set {玩家資料.%player%::目前經驗值} to single value "目前經驗值" get of "plugins/players/%player%.yml"
  51. set {玩家資料.%player%::最大經驗值} to single value "最大經驗值" get of "plugins/players/%player%.yml"
  52. set {玩家資料.%player%::剩餘屬性點} to single value "剩餘屬性點" get of "plugins/players/%player%.yml"
  53. set {玩家資料.%player%::剩餘技能點} to single value "剩餘技能點" get of "plugins/players/%player%.yml"
  54. set {玩家資料.%player%::力量} to single value "力量" get of "plugins/players/%player%.yml"
  55. set {玩家資料.%player%::智慧} to single value "智慧" get of "plugins/players/%player%.yml"
  56. set {玩家資料.%player%::敏捷} to single value "敏捷" get of "plugins/players/%player%.yml"
  57. set {玩家資料.%player%::幸運} to single value "幸運" get of "plugins/players/%player%.yml"
  58. set {玩家資料.%player%::最大血量} to single value "最大血量" get of "plugins/players/%player%.yml"
  59. set {玩家資料.%player%::MP} to single value "MP" get of "plugins/players/%player%.yml"
  60. set {玩家資料.%player%::防禦力} to single value "防禦力" get of "plugins/players/%player%.yml"
  61. set {玩家資料.%player%::物理攻擊力} to single value "物理攻擊力" get of "plugins/players/%player%.yml"
  62. set {玩家資料.%player%::魔法攻擊力} to single value "魔法攻擊力" get of "plugins/players/%player%.yml"
  63. set {玩家資料.%player%::血量恢復量} to single value "血量恢復量" get of "plugins/players/%player%.yml"
  64. set {玩家資料.%player%::魔量恢復量} to single value "魔量恢復量" get of "plugins/players/%player%.yml"
  65. set {玩家資料.%player%::爆擊率} to single value "爆擊率" get of "plugins/players/%player%.yml"
  66. set {玩家資料.%player%::爆擊傷害} to single value "爆擊傷害" get of "plugins/players/%player%.yml"
  67. set {玩家資料.%player%::無視防禦} to single value "無視防禦" get of "plugins/players/%player%.yml"
  68. set {玩家資料.%player%::總傷害} to single value "總傷害" get of "plugins/players/%player%.yml"
  69. set {玩家資料.%player%::移動速度} to single value "移動速度" get of "plugins/players/%player%.yml"
  70. set {玩家資料.%player%::跳躍力} to single value "跳躍力" get of "plugins/players/%player%.yml"
  71. set {玩家資料.%player%::血量吸收量} to single value "血量吸收量" get of "plugins/players/%player%.yml"
  72. set {玩家資料.%player%::魔量吸收量} to single value "魔量吸收量" get of "plugins/players/%player%.yml"
  73. set {玩家資料.%player%::經驗卷倍率} to single value "經驗卷倍率" get of "plugins/players/%player%.yml"
  74. set {玩家資料.%player%::經驗卷時間} to single value "經驗卷時間" get of "plugins/players/%player%.yml"
  75. set {玩家資料.%player%::VIP時間} to single value "VIP時間" get of "plugins/players/%player%.yml"
  76. set {技能.%player%::魔力打擊} to yaml value "技能.魔力打擊" from "plugins/players/%player%.yml"
  77. set {技能.%player%::自我恢復} to yaml value "技能.自我恢復" from "plugins/players/%player%.yml"
  78. set {技能.%player%::迅捷之步} to yaml value "技能.迅捷之步" from "plugins/players/%player%.yml"
  79. loop {玩家資料.%player%::*}:
  80. set {_pass} to 0
  81. if loop-index is "VIP時間":
  82. if loop-value is "永久":
  83. set {_pass} to 1
  84. if {_pass} is 0:
  85. set {玩家資料.%player%::%loop-index%} to {玩家資料.%player%::%loop-index%} parsed as integer
  86. set {玩家資料.%player%::玩家職業} to single value "玩家職業" get of "plugins/players/%player%.yml"
  87. set {玩家資料.%player%::VIP} to single value "VIP" get of "plugins/players/%player%.yml"
  88. if {玩家資料.%player%::VIP} is "無":
  89. delete {玩家資料.%player%::VIP}
  90. set {玩家資料.%player%::重生點} to single value "重生點" get of "plugins/players/%player%.yml"
  91.  
  92. command /resetlv [<player>]:
  93. trigger:
  94. player is an op
  95. create file "plugins/players/%arg%.yml"
  96. set "玩家等級" to "1" in yaml file "plugins/players/%arg%.yml"
  97. set "最大經驗值" to "15" in yaml file "plugins/players/%arg%.yml"
  98. set "目前經驗值" to "0" in yaml file "plugins/players/%arg%.yml"
  99. set "力量" to "4" in yaml file "plugins/players/%arg%.yml"
  100. set "智慧" to "4" in yaml file "plugins/players/%arg%.yml"
  101. set "敏捷" to "4" in yaml file "plugins/players/%arg%.yml"
  102. set "幸運" to "4" in yaml file "plugins/players/%arg%.yml"
  103. set "最大血量" to "20" in yaml file "plugins/players/%arg%.yml"
  104. set "MP" to "100" in yaml file "plugins/players/%arg%.yml"
  105. set "防禦力" to "0" in yaml file "plugins/players/%arg%.yml"
  106. set "物理攻擊力" to "0" in yaml file "plugins/players/%arg%.yml"
  107. set "魔法攻擊力" to "0" in yaml file "plugins/players/%arg%.yml"
  108. set "血量恢復量" to "10" in yaml file "plugins/players/%arg%.yml"
  109. set "魔量恢復量" to "8" in yaml file "plugins/players/%arg%.yml"
  110. set "爆擊率" to "5" in yaml file "plugins/players/%arg%.yml"
  111. set "爆擊傷害" to "35" in yaml file "plugins/players/%arg%.yml"
  112. set "無視防禦" to "0" in yaml file "plugins/players/%arg%.yml"
  113. set "總傷害" to "100" in yaml file "plugins/players/%arg%.yml"
  114. set "移動速度" to "100" in yaml file "plugins/players/%arg%.yml"
  115. set "跳躍力" to "100" in yaml file "plugins/players/%arg%.yml"
  116. set "血量吸收量" to "0" in yaml file "plugins/players/%arg%.yml"
  117. set "魔量吸收量" to "1" in yaml file "plugins/players/%arg%.yml"
  118. set "剩餘屬性點" to "0" in yaml file "plugins/players/%arg%.yml"
  119. set "剩餘技能點" to "0" in yaml file "plugins/players/%arg%.yml"
  120. set "玩家職業" to "初心者" in yaml file "plugins/players/%arg%.yml"
  121. set "經驗卷倍率" to "100" in yaml file "plugins/players/%arg%.yml"
  122. set "經驗卷時間" to "0" in yaml file "plugins/players/%arg%.yml"
  123. set "VIP" to "無" in yaml file "plugins/players/%arg%.yml"
  124. set "VIP時間" to "0" in yaml file "plugins/players/%arg%.yml"
  125. set "重生點" to "無" in yaml file "plugins/players/%arg%.yml"
  126. set yaml value "技能.魔力打擊" from "plugins/players/%arg%.yml" to "0"
  127. set yaml value "技能.自我恢復" from "plugins/players/%arg%.yml" to "0"
  128. set yaml value "技能.迅捷之步" from "plugins/players/%arg%.yml" to "0"
  129. set {玩家資料.%arg%::玩家等級} to single value "玩家等級" get of "plugins/players/%arg%.yml"
  130. set {玩家資料.%arg%::目前經驗值} to single value "目前經驗值" get of "plugins/players/%arg%.yml"
  131. set {玩家資料.%arg%::最大經驗值} to single value "最大經驗值" get of "plugins/players/%arg%.yml"
  132. set {玩家資料.%arg%::剩餘屬性點} to single value "剩餘屬性點" get of "plugins/players/%arg%.yml"
  133. set {玩家資料.%arg%::剩餘技能點} to single value "剩餘技能點" get of "plugins/players/%arg%.yml"
  134. set {玩家資料.%arg%::力量} to single value "力量" get of "plugins/players/%arg%.yml"
  135. set {玩家資料.%arg%::智慧} to single value "智慧" get of "plugins/players/%arg%.yml"
  136. set {玩家資料.%arg%::敏捷} to single value "敏捷" get of "plugins/players/%arg%.yml"
  137. set {玩家資料.%arg%::幸運} to single value "幸運" get of "plugins/players/%arg%.yml"
  138. set {玩家資料.%arg%::最大血量} to single value "最大血量" get of "plugins/players/%arg%.yml"
  139. set {玩家資料.%arg%::MP} to single value "MP" get of "plugins/players/%arg%.yml"
  140. set {玩家資料.%arg%::防禦力} to single value "防禦力" get of "plugins/players/%arg%.yml"
  141. set {玩家資料.%arg%::物理攻擊力} to single value "物理攻擊力" get of "plugins/players/%arg%.yml"
  142. set {玩家資料.%arg%::魔法攻擊力} to single value "魔法攻擊力" get of "plugins/players/%arg%.yml"
  143. set {玩家資料.%arg%::血量恢復量} to single value "血量恢復量" get of "plugins/players/%arg%.yml"
  144. set {玩家資料.%arg%::魔量恢復量} to single value "魔量恢復量" get of "plugins/players/%arg%.yml"
  145. set {玩家資料.%arg%::爆擊率} to single value "爆擊率" get of "plugins/players/%arg%.yml"
  146. set {玩家資料.%arg%::爆擊傷害} to single value "爆擊傷害" get of "plugins/players/%arg%.yml"
  147. set {玩家資料.%arg%::無視防禦} to single value "無視防禦" get of "plugins/players/%arg%.yml"
  148. set {玩家資料.%arg%::總傷害} to single value "總傷害" get of "plugins/players/%arg%.yml"
  149. set {玩家資料.%arg%::移動速度} to single value "移動速度" get of "plugins/players/%arg%.yml"
  150. set {玩家資料.%arg%::跳躍力} to single value "跳躍力" get of "plugins/players/%arg%.yml"
  151. set {玩家資料.%arg%::血量吸收量} to single value "血量吸收量" get of "plugins/players/%arg%.yml"
  152. set {玩家資料.%arg%::魔量吸收量} to single value "魔量吸收量" get of "plugins/players/%arg%.yml"
  153. set {玩家資料.%arg%::經驗卷倍率} to single value "經驗卷倍率" get of "plugins/players/%arg%.yml"
  154. set {玩家資料.%arg%::經驗卷時間} to single value "經驗卷時間" get of "plugins/players/%arg%.yml"
  155. set {玩家資料.%arg%::VIP時間} to single value "VIP時間" get of "plugins/players/%arg%.yml"
  156. set {技能.%arg%::魔力打擊} to yaml value "技能.魔力打擊" from "plugins/players/%arg%.yml"
  157. set {技能.%arg%::自我恢復} to yaml value "技能.自我恢復" from "plugins/players/%arg%.yml"
  158. set {技能.%arg%::迅捷之步} to yaml value "技能.迅捷之步" from "plugins/players/%arg%.yml"
  159.  
  160. on command:
  161. command is "testattack"
  162. send "%{玩家資料.%player%::物理攻擊力}%" to player
  163. on quit:
  164. set quit message to "&b// &e%player% &6離開了伺服器 &b//"
  165. if {玩家資料.%player%::*} is set:
  166. loop {玩家資料.%player%::*}:
  167. set "%loop-index%" to "%loop-value%" in yaml file "plugins/players/%player%.yml"
  168. delete {玩家資料.%player%::*}
  169. delete {技能加速.%player%}
  170. on command:
  171. command is "boomlvl"
  172. cancel event
  173. delete {玩家資料.%player%::*}
  174. delete app "plugins\players\%player%.yml"
  175. kick player due to "Disconneted."
  176. every 15 minutes:
  177. loop all players:
  178. loop {玩家資料.%loop-player%::*}:
  179. set "%loop-index%" to "%loop-value-2%" in yaml file "plugins/players/%loop-player%.yml"
  180. send "&b// &a資料備份成功 . &b//" to all players
  181. command /updateHp <number>:
  182. permission: op
  183. trigger:
  184. set "最大血量" to "%arg-1%" in yaml file "plugins/players/%player%.yml"
  185. set {玩家資料.%player%::最大血量} to arg-1
  186. command /expget <text> <number>:
  187. permission: op.oao
  188. trigger:
  189. if {玩家資料.%arg-1%::目前經驗值} is set:
  190. add arg-2 to {玩家資料.%arg-1%::目前經驗值}
  191. send "&b【系統】 &a&l完成了任務,獲取了經驗值 &f%arg-2% &a。" to arg-1 parsed as player
  192. command /spawn:
  193. trigger:
  194. teleport player to {玩家資料.%player%::重生點}
  195. send "&6已傳送至&a重生點&6。"
  196. on damage:
  197. if attacker is a player:
  198. set {_lore::*} to uncolored lore of attacker's tool split at "||"
  199. loop {_lore::*}:
  200. if {_lore::%loop-index%} contain "物理攻擊力 -":
  201. replace all "物理攻擊力" , "-" and " " with "" in {_lore::%loop-index%}
  202. set {_lore::%loop-index%} to {_lore::%loop-index%} parsed as integer
  203. set {_武器攻擊力} to {_lore::%loop-index%}
  204. if {_lore::%loop-index%} contain "技能" or "法杖" or "弓":
  205. stop
  206. set {_STRATK} to floor({玩家資料.%attacker%::力量} * 0.5)
  207. set {_DEXATK} to floor({玩家資料.%attacker%::敏捷} * 0.5)
  208. set {_INTATK} to floor({玩家資料.%attacker%::智慧} * 0.6)
  209. set {_LUKATK} to floor({玩家資料.%attacker%::幸運} * 0.7)
  210. set {_PHYSICDMG} to {玩家資料.%attacker%::物理攻擊力}
  211. add {_STRATK} + {_DEXATK} + {_LUKATK} to {_PHYSICDMG}
  212. set damage to ({_PHYSICDMG} + {_武器攻擊力})/2
  213. if difference between {冷卻.%attacker%::MP恢復} and now is more than or equal to 1 second:
  214. delete {冷卻.%attacker%::MP恢復}
  215. if {冷卻.%attacker%::MP恢復} is set:
  216. stop
  217. add {玩家資料.%attacker%::魔量吸收量} to {玩家MP.%attacker%}
  218. set {_math} to 0.99 * {玩家MP.%attacker%} / {玩家資料.%attacker%::MP}
  219. if {_math} is more than or equal to 1:
  220. set {_math} to 0.99
  221. set {玩家MP.%attacker%} to {玩家資料.%attacker%::MP}
  222. set level progress of the attacker to {_math}
  223. set attacker's level to {玩家MP.%attacker%}
  224. set {冷卻.%attacker%::MP恢復} to now
  225. stop
  226. on death:
  227. remove all 1 xp from drops
  228. command /stat [<player>] [<text>] [<number>]:
  229. permission: op.oao
  230. trigger:
  231. if arg-1 isn't set:
  232. send "&c違法操作"
  233. stop trigger
  234. set {_arg=1} to player
  235. if arg-1 is set:
  236. set {_arg=1} to arg-1
  237. if {玩家資料.%{_arg=1}%::*} is set:
  238. if arg-3 is set:
  239. if arg-2 is "power":
  240. set {_w.%arg-3%} to arg-3
  241. if {玩家資料.%{_arg=1}%::剩餘屬性點} is more than or equal to {_w.%arg-3%}:
  242. add arg-3 to {玩家資料.%{_arg=1}%::力量}
  243. set {_w.%arg-3%} to {_w.%arg-3%} * -1
  244. add {_w.%arg-3%} to {玩家資料.%{_arg=1}%::剩餘屬性點}
  245. stop trigger
  246. if arg-2 is "speed":
  247. set {_w.%arg-3%} to arg-3
  248. if {玩家資料.%{_arg=1}%::剩餘屬性點} is more than or equal to {_w.%arg-3%}:
  249. add arg-3 to {玩家資料.%{_arg=1}%::敏捷}
  250. set {_w.%arg-3%} to {_w.%arg-3%} * -1
  251. add {_w.%arg-3%} to {玩家資料.%{_arg=1}%::剩餘屬性點}
  252. stop trigger
  253. if arg-2 is "clever":
  254. set {_w.%arg-3%} to arg-3
  255. if {玩家資料.%{_arg=1}%::剩餘屬性點} is more than or equal to {_w.%arg-3%}:
  256. add arg-3 to {玩家資料.%{_arg=1}%::智慧}
  257. set {_w.%arg-3%} to {_w.%arg-3%} * -1
  258. add {_w.%arg-3%} to {玩家資料.%{_arg=1}%::剩餘屬性點}
  259. stop trigger
  260. if arg-2 is "lucky":
  261. set {_w.%arg-3%} to arg-3
  262. if {玩家資料.%{_arg=1}%::剩餘屬性點} is more than or equal to {_w.%arg-3%}:
  263. add arg-3 to {玩家資料.%{_arg=1}%::幸運}
  264. set {_w.%arg-3%} to {_w.%arg-3%} * -1
  265. add {_w.%arg-3%} to {玩家資料.%{_arg=1}%::剩餘屬性點}
  266. stop trigger
  267. send "&c屬性點不足" to player-arg
  268. command /stats:
  269. trigger:
  270. open chest with 3 row named "&9&l 文靜之潭&6&l配點介面" to player
  271. if inventory name of player's current inventory contains "配點介面":
  272. loop 9 times:
  273. set slot (loop-number - 1) of player's current inventory to 1 of black stained glass pane named "&7"
  274. loop 5 times:
  275. set slot (9 + (loop-number - 1) * 2) of player's current inventory to 1 of black stained glass pane named "&7"
  276. set slot (18 + (loop-number - 1) * 2) of player's current inventory to 1 of black stained glass pane named "&7"
  277. set slot 10 of player's current inventory to diamond sword named "&6《增加力量屬性一點》" with lore "&E目前力量 &f[ &6%{玩家資料.%player%::力量}% &f]"
  278. set slot 12 of player's current inventory to enchanted book named "&b《增加智慧屬性一點》" with lore "&e目前智慧 &f[ &b%{玩家資料.%player%::智慧}% &f]"
  279. set slot 14 of player's current inventory to golden boots named "&a《增加敏捷屬性一點》" with lore "&e目前敏捷 &f[ &a%{玩家資料.%player%::敏捷}% &f]"
  280. set slot 16 of player's current inventory to lily pads named "&2《增加幸運屬性一點》" with lore "&e目前幸運 &f[ &2%{玩家資料.%player%::幸運}% &f]"
  281. set slot 19 of player's current inventory to 1 of red stained glass pane named "&7"
  282. set slot 21 of player's current inventory to 1 of light green stained glass pane named "&7"
  283. set slot 23 of player's current inventory to 1 of light blue stained glass pane named "&7"
  284. set slot 25 of player's current inventory to 1 of yellow stained glass pane named "&7"
  285. on inventory click:
  286. if inventory name of player's current inventory contains "配點介面":
  287. if name of clicked item is "&7":
  288. cancel event
  289. stop
  290. on mor.inventory click:
  291. if inventory name of player's current inventory contains "配點介面":
  292. if name of event-item contains "力量" or "智慧" or "敏捷" or "幸運":
  293. close player's inventory
  294. wait 1 ticks
  295. if name of event-item contains "力量":
  296. execute command "stat %player% power 1"
  297. if name of event-item contains "敏捷":
  298. execute command "stat %player% speed 1"
  299. if name of event-item contains "智慧":
  300. execute command "stat %player% clever 1"
  301. if name of event-item contains "幸運":
  302. execute command "stat %player% lucky 1"
  303. wait 1 ticks
  304. make player execute command "stats"
  305. on rightclick:
  306. if name of player's held item contains "屬性重置卷":
  307. set {_amount} to amount of player's held item
  308. set amount of player's held item to {_amount}-1
  309. set "力量" to "4" in yaml file "plugins/players/%player%.yml"
  310. set "智慧" to "4" in yaml file "plugins/players/%player%.yml"
  311. set "敏捷" to "4" in yaml file "plugins/players/%player%.yml"
  312. set "幸運" to "4" in yaml file "plugins/players/%player%.yml"
  313. set {玩家資料.%player%::力量} to 4
  314. set {玩家資料.%player%::智慧} to 4
  315. set {玩家資料.%player%::敏捷} to 4
  316. set {玩家資料.%player%::幸運} to 4
  317. set {_屬性點} to ({玩家資料.%player%::玩家等級}-1)*5
  318. set "剩餘屬性點" to "%{_屬性點}%" in yaml file "plugins/players/%player%.yml"
  319. set {玩家資料.%player%::剩餘屬性點} to {_屬性點}
  320. stop
  321. every 1 minutes:
  322. loop {玩家資料::*}:
  323. if {玩家資料.%loop-index%::VIP時間} is set:
  324. remove 1 from {玩家資料.%loop-index%::VIP時間}
  325. if {玩家資料.%loop-index%::VIP時間} is smaller than or equal to 0:
  326. delete {玩家資料.%loop-index%::VIP}
  327. delete {玩家資料.%loop-index%::VIP時間}
  328. set {_vip} to loop-index parsed as player
  329. send "特權會員已過期。" to {_vip}
  330. command /vip [<text>] [<number>] [<text>]:
  331. permission: op.oao
  332. trigger:
  333. if {玩家資料.%arg-1%::玩家等級} is set:
  334. if {玩家資料.%arg-1%::VIP} is set:
  335. delete {玩家資料.%arg-1%::VIP}
  336. send "特權會員已過期。" to arg-1 parsed as player
  337. send "已關閉該玩家特權會員。"
  338. stop
  339. if arg-2 is set:
  340. if arg-3 isn't set:
  341. set {玩家資料.%arg-1%::VIP時間} to 60 * arg-2
  342. else if arg-3 is "小時":
  343. set {玩家資料.%arg-1%::VIP時間} to 60 * arg-2
  344. else if arg-3 is "分鐘":
  345. set {玩家資料.%arg-1%::VIP時間} to arg-2
  346. else if arg-3 contains "天":
  347. set {玩家資料.%arg-1%::VIP時間} to 60 * arg-2 * 24
  348. set {_內容} to floor({玩家資料.%arg-1%::VIP時間} / 60)
  349. if {_內容} is equal to 0:
  350. set {_內容} to "%{玩家資料.%arg-1%::VIP時間}%分鐘"
  351. else if {_內容} is more than or equal to 1:
  352. set {_內容} to "%floor({玩家資料.%arg-1%::VIP時間} / 60)%小時"
  353. else:
  354. set {_內容} to "%floor({玩家資料.%arg-1%::VIP時間} / 60 / 24)%天"
  355. send "特權會員已開啟。%{_內容}%" to arg-1 parsed as player
  356. else:
  357. send "永久特權會員已開啟。" to arg-1 parsed as player
  358. set {玩家資料.%arg-1%::VIP} to now
  359. send "已開啟該玩家特權會員。"
  360. stop
  361. send "該玩家不存在"
  362. on any movement:
  363. set player's walk speed to 0.2 * ({玩家資料.%player%::移動速度}+{技能加速.%player%})/100
  364. # set player's level to {玩家資料.%player%::玩家等級}
  365. if {玩家資料.%player%::玩家職業} is "初心者":
  366. set {_幾轉} to 10
  367. else if {幾轉玩家職業::%{玩家資料.%player%::玩家職業}%} is 1:
  368. set {_幾轉} to 30
  369. else if {幾轉玩家職業::%{玩家資料.%player%::玩家職業}%} is 2:
  370. set {_幾轉} to 60
  371. else if {幾轉玩家職業::%{玩家資料.%player%::玩家職業}%} is 3:
  372. set {_幾轉} to {@玩家等級限制}
  373. if {玩家資料.%player%::玩家等級} is more than or equal to {_幾轉}:
  374. #set player's level to {_幾轉}
  375. if {玩家資料.%player%::目前經驗值} is more than or equal to {玩家資料.%player%::最大經驗值}:
  376. #set level progress of the player to 0.99
  377. set {玩家資料.%player%::目前經驗值} to {玩家資料.%player%::最大經驗值}
  378. if {玩家資料.%player%::玩家等級} is more than or equal to 101:
  379. set {玩家資料.%player%::玩家等級} to 100
  380. set {玩家資料.%player%::最大經驗值} to 999999999
  381. #else:
  382. #set level progress of the player to {玩家資料.%player%::目前經驗值} / {玩家資料.%player%::最大經驗值} * 0.99
  383. stop
  384. # else:
  385. # set {_check} to {玩家資料.%player%::目前經驗值} / {玩家資料.%player%::最大經驗值}
  386. # if {_check} is smaller than or equal to 0.99:
  387. # set level progress of the player to {玩家資料.%player%::目前經驗值} / {玩家資料.%player%::最大經驗值} * 0.99
  388. # else:
  389. # set level progress of the player to 0.99
  390. if {玩家資料.%player%::目前經驗值} is more than or equal to {玩家資料.%player%::最大經驗值}:
  391. if {玩家資料.%player%::玩家等級} is more than or equal to 1:
  392. set {_clv} to 1.6
  393. if {玩家資料.%player%::玩家等級} is more than or equal to 10:
  394. set {_clv} to 1.4
  395. if {玩家資料.%player%::玩家等級} is more than or equal to 15:
  396. set {_clv} to 1.2
  397. if {玩家資料.%player%::玩家等級} is more than or equal to 31:
  398. set {_clv} to 1.1
  399. if {玩家資料.%player%::玩家等級} is more than or equal to 52:
  400. set {_clv} to 1.05
  401. set {玩家資料.%player%::最大經驗值} to round( {_clv} * ({玩家資料.%player%::最大經驗值}))
  402. set {玩家資料.%player%::目前經驗值} to round( {玩家資料.%player%::目前經驗值} ) - {玩家資料.%player%::最大經驗值}
  403. if {玩家資料.%player%::目前經驗值} is smaller than or equal to 0:
  404. set {玩家資料.%player%::目前經驗值} to 0
  405. if {玩家資料.%player%::玩家等級} is more than or equal to {_幾轉}:
  406. #set player's level to {_幾轉}
  407. if {玩家資料.%player%::目前經驗值} is more than or equal to {玩家資料.%player%::最大經驗值}:
  408. #set level progress of the player to 0.99
  409. set {玩家資料.%player%::目前經驗值} to {玩家資料.%player%::最大經驗值}
  410. set {玩家資料.%player%::玩家等級} to {玩家資料.%player%::玩家等級} + 1
  411. set {玩家資料.%player%::剩餘屬性點} to {玩家資料.%player%::剩餘屬性點} + 5
  412. if {玩家資料.%player%::目前經驗值} is smaller than or equal to {玩家資料.%player%::最大經驗值}:
  413. execute player command "showshowshow"
  414. on damage:
  415. attacker is a player
  416. set victim's damage delay to 0.01 second
  417. on join:
  418. set {_maxmp} to {玩家資料.%player%::MP}
  419. set {玩家MP.%player%} to 0
  420. while {玩家MP.%player%} is smaller than or equal to {玩家資料.%player%::MP}:
  421. wait 5 seconds
  422. set {_check} to {玩家資料.%player%::最大血量}
  423. add ({玩家資料.%player%::力量} * 5) to {_check}
  424. add ({玩家資料.%player%::智慧} * 3) to {_check}
  425. add ({玩家資料.%player%::敏捷} * 4) to {_check}
  426. add ({玩家資料.%player%::幸運} * 3) to {_check}
  427. heal player by {玩家資料.%player%::血量恢復量} * 0.5 / (player's max health + {_check}) * player's max health
  428. add {玩家資料.%player%::魔量恢復量} to {玩家MP.%player%}
  429. if {玩家MP.%player%} is larger than {玩家資料.%player%::MP}:
  430. set {玩家MP.%player%} to {玩家資料.%player%::MP}
  431. set {_math} to 0.99 * {玩家MP.%player%} / {玩家資料.%player%::MP}
  432. set player's level to {玩家MP.%player%}
  433. if {_math} is more than or equal to 1:
  434. set {_math} to 0.99
  435. set {玩家MP.%player%} to {玩家資料.%player%::MP}
  436. set level progress of the player to {_math}
  437. if player isn't online:
  438. stop
  439. on quit:
  440. delete {玩家MP.%player%}
  441. command /spelltest:
  442. trigger:
  443. if {玩家MP.%player%} is larger or equal to 20:
  444. send "&cBANG!" to player
  445. remove 20 from {玩家MP.%player%}
  446. set {_math} to 0.99 * {玩家MP.%player%} / {玩家資料.%player%::MP}
  447. if {_math} is more than or equal to 1:
  448. set {_math} to 0.99
  449. set level progress of the player to {_math}
  450. set player's level to {玩家MP.%player%}
  451. else:
  452. send "&4魔力不足!" to player
  453. stop
  454. on command:
  455. command is "showshowshow"
  456. cancel event
  457. drawWings style 11, particle1 "totem", speed 0, XYZ 0, 0, 0, particle2 "lava", particle3 "fireworkspark", center player, id "%player%show", rainbowMode false, flapSpeed 1, flapRange 1, angle 120, height 3, space 0.4, visibleRange 30, tps 0, second 1
  458. set {_loop.%player%} to a random integer between 10 and 14
  459. loop {_loop.%player%} times:
  460. wait 2 tick
  461. add 1 to {_notesound.%player%}
  462. if {_notesound.%player%} > 3:
  463. set {_notesound.%player%} to 1
  464. if {_notesound.%player%} = 1:
  465. play "ENTITY_PLAYER_LEVELUP" to player with volume 1 and pitch 2
  466. if {_notesound.%player%} = 2:
  467. play "ENTITY_PLAYER_LEVELUP" to player with volume 1 and pitch 1
  468. if {_notesound.%player%} = 3:
  469. play "ENTITY_PLAYER_LEVELUP" to player with volume 1 and pitch 0
  470. wait 1.5 seconds
  471. stopeffect id "%player%show"
  472. on damage:
  473. if attacker is victim:
  474. cancel event
  475. stop
  476. #請看死亡復活
  477. command /lv [<text>]:
  478. trigger:
  479. set {_player} to player
  480. if arg-1 is set:
  481. set {_pass} to 0
  482. set {_player} to arg-1 parsed as offlineplayer
  483. if {_player} is online:
  484. set {_pass} to 1
  485. if file existance of "plugins/players/%arg-1%.yml" is false:
  486. set {_player} to player
  487. else:
  488. if {_pass} is 0:
  489. clear {_玩家資料.%{_player}%::*}
  490. set {_玩家資料.%{_player}%::玩家等級} to single value "玩家等級" get of "plugins/players/%{_player}%.yml"
  491. set {_玩家資料.%{_player}%::目前經驗值} to single value "目前經驗值" get of "plugins/players/%{_player}%.yml"
  492. set {_玩家資料.%{_player}%::最大經驗值} to single value "最大經驗值" get of "plugins/players/%{_player}%.yml"
  493. set {_玩家資料.%{_player}%::剩餘屬性點} to single value "剩餘屬性點" get of "plugins/players/%{_player}%.yml"
  494. set {_玩家資料.%{_player}%::剩餘技能點} to single value "剩餘技能點" get of "plugins/players/%{_player}%.yml"
  495. set {_玩家資料.%{_player}%::力量} to single value "力量" get of "plugins/players/%{_player}%.yml"
  496. set {_玩家資料.%{_player}%::智慧} to single value "智慧" get of "plugins/players/%{_player}%.yml"
  497. set {_玩家資料.%{_player}%::敏捷} to single value "敏捷" get of "plugins/players/%{_player}%.yml"
  498. set {_玩家資料.%{_player}%::幸運} to single value "幸運" get of "plugins/players/%{_player}%.yml"
  499. set {_玩家資料.%{_player}%::最大血量} to single value "最大血量" get of "plugins/players/%{_player}%.yml"
  500. set {_玩家資料.%{_player}%::MP} to single value "MP" get of "plugins/players/%{_player}%.yml"
  501. set {_玩家資料.%{_player}%::防禦力} to single value "防禦力" get of "plugins/players/%{_player}%.yml"
  502. set {_玩家資料.%{_player}%::物理攻擊力} to single value "物理攻擊力" get of "plugins/players/%{_player}%.yml"
  503. set {_玩家資料.%{_player}%::魔法攻擊力} to single value "魔法攻擊力" get of "plugins/players/%{_player}%.yml"
  504. set {_玩家資料.%{_player}%::血量恢復量} to single value "血量恢復量" get of "plugins/players/%{_player}%.yml"
  505. set {_玩家資料.%{_player}%::魔量恢復量} to single value "魔量恢復量" get of "plugins/players/%{_player}%.yml"
  506. set {_玩家資料.%{_player}%::爆擊率} to single value "爆擊率" get of "plugins/players/%{_player}%.yml"
  507. set {_玩家資料.%{_player}%::爆擊傷害} to single value "爆擊傷害" get of "plugins/players/%{_player}%.yml"
  508. set {_玩家資料.%{_player}%::無視防禦} to single value "無視防禦" get of "plugins/players/%{_player}%.yml"
  509. set {_玩家資料.%{_player}%::總傷害} to single value "總傷害" get of "plugins/players/%{_player}%.yml"
  510. set {_玩家資料.%{_player}%::移動速度} to single value "移動速度" get of "plugins/players/%{_player}%.yml"
  511. set {_玩家資料.%{_player}%::跳躍力} to single value "跳躍力" get of "plugins/players/%{_player}%.yml"
  512. set {_玩家資料.%{_player}%::血量吸收量} to single value "血量吸收量" get of "plugins/players/%{_player}%.yml"
  513. set {_玩家資料.%{_player}%::魔量吸收量} to single value "魔量吸收量" get of "plugins/players/%{_player}%.yml"
  514. set {_玩家資料.%{_player}%::經驗卷倍率} to single value "經驗卷倍率" get of "plugins/players/%{_player}%.yml"
  515. set {_玩家資料.%{_player}%::經驗卷時間} to single value "經驗卷時間" get of "plugins/players/%{_player}%.yml"
  516. set {_玩家資料.%{_player}%::VIP時間} to single value "VIP時間" get of "plugins/players/%{_player}%.yml"
  517. loop {_玩家資料.%{_player}%::*}:
  518. set {_pass} to 0
  519. if loop-index is "VIP時間":
  520. if loop-value is "永久":
  521. set {_pass} to 1
  522. if {_pass} is 0:
  523. set {_玩家資料.%{_player}%::%loop-index%} to {_玩家資料.%{_player}%::%loop-index%} parsed as integer
  524. set {_玩家資料.%{_player}%::玩家職業} to single value "玩家職業" get of "plugins/players/%{_player}%.yml"
  525. set {_玩家資料.%{_player}%::VIP} to single value "VIP" get of "plugins/players/%{_player}%.yml"
  526. if {_玩家資料.%{_player}%::VIP} isn't "無":
  527. set {_VIP} to "&c&lV&e&lI&9&lP"
  528. if {_玩家資料.%{_player}%::VIP時間} isn't "永久":
  529. set {_GG} to floor({_玩家資料.%{_player}%::VIP時間} / 60)
  530. if {_GG} is equal to 0:
  531. set {_GG} to "(%{_玩家資料.%{_player}%::VIP時間}%分鐘)"
  532. else if {_GG} is more than or equal to 1:
  533. set {_GG} to "(%floor({_玩家資料.%{_player}%::VIP時間} / 60)%小時)"
  534. else:
  535. set {_GG} to "(%floor({_玩家資料.%{_player}%::VIP時間} / 60 / 24)%天)"
  536. else:
  537. set {_GG} to "(永久)"
  538. else:
  539. set {_VIP} to "&f無"
  540. set {_GG} to ""
  541. send "&6●=--------=《&c&l%{_player}% &4角色資料&6》=--------=●"
  542. send "&e名稱: &9%{_player}% &eVIP: &9%{_GG}%%{_VIP}%"
  543. send "&e職業: &b%{_玩家資料.%{_player}%::玩家職業}%"
  544. send "&e等級: &6%{_玩家資料.%{_player}%::玩家等級}% &8&3(&a%round({_玩家資料.%{_player}%::目前經驗值})%&3/&a%{_玩家資料.%{_player}%::最大經驗值}%&3)"
  545. set {_check} to {_玩家資料.%{_player}%::最大血量}
  546. add ({_玩家資料.%{_player}%::力量} * 5) to {_check}
  547. add ({_玩家資料.%{_player}%::智慧} * 3) to {_check}
  548. add ({_玩家資料.%{_player}%::敏捷} * 4) to {_check}
  549. add ({_玩家資料.%{_player}%::幸運} * 2) to {_check}
  550. send "&e生命值: &c%{_check}% &e魔力值: &6%{_玩家資料.%{_player}%::MP}%"
  551. send "&e力量: &f[ &6%{_玩家資料.%{_player}%::力量}% &f] &e智慧: &f[ &b%{_玩家資料.%{_player}%::智慧}% &f] "
  552. send "&e敏捷: &f[ &a%{_玩家資料.%{_player}%::敏捷}% &f] &e幸運: &f[ &2%{_玩家資料.%{_player}%::幸運}% &f] "
  553. send "&6●=--------=&c----------------------------&6=--------=●"
  554. send "&e防禦力: &6%{_玩家資料.%{_player}%::防禦力}% "
  555. set {_STRATK} to {_玩家資料.%{_player}%::力量} * 0.5
  556. set {_DEXATK} to {_玩家資料.%{_player}%::敏捷} * 0.5
  557. set {_INTATK} to {_玩家資料.%{_player}%::智慧} * 0.6
  558. set {_LUKATK} to {_玩家資料.%{_player}%::幸運} * 0.7
  559. set {_PHYSICDMG} to {_玩家資料.%{_player}%::物理攻擊力}
  560. set {_MAGICDMG} to {_玩家資料.%{_player}%::魔法攻擊力}
  561. add {_STRATK} + {_DEXATK} + {_LUKATK} to {_PHYSICDMG}
  562. add {_INTATK} to {_MAGICDMG}
  563. send "&e物理攻擊力: &c%{_PHYSICDMG}% &e魔法攻擊力: &b%{_MAGICDMG}% "
  564. send "&e血量恢復量: &c%{_玩家資料.%{_player}%::血量恢復量}% &e魔量恢復量: &b%{_玩家資料.%{_player}%::魔量恢復量}%"
  565. send "&e血量吸收量: &c%{_玩家資料.%{_player}%::血量吸收量}% &e魔量吸收量: &b%{_玩家資料.%{_player}%::魔量吸收量}% "
  566. send "&e爆擊率: &2%{_玩家資料.%{_player}%::爆擊率}%&f%% &e爆擊傷害: &2%{_玩家資料.%{_player}%::爆擊傷害}%&f%% "
  567. send "&e無視防禦: &5%{_玩家資料.%{_player}%::無視防禦}%&f%% &e總傷害: &5%{_玩家資料.%{_player}%::總傷害}%&f%% "
  568. send "&e移動速度: &a%{_玩家資料.%{_player}%::移動速度}%&f%% &e跳躍力: &a%{_玩家資料.%{_player}%::跳躍力}%&f%% "
  569. send "&6●=--------=&c----------------------------&6=--------=●"
  570. stop
  571. if {玩家資料.%{_player}%::VIP} isn't "無":
  572. set {_VIP} to "&c&lV&e&lI&9&lP"
  573. if {玩家資料.%{_player}%::VIP時間} isn't "永久":
  574. set {_GG} to floor({玩家資料.%{_player}%::VIP時間} / 60)
  575. if {_GG} is equal to 0:
  576. set {_GG} to "(%{玩家資料.%{_player}%::VIP時間}%分鐘)"
  577. else if {_GG} is more than or equal to 1:
  578. set {_GG} to "(%floor({玩家資料.%{_player}%::VIP時間} / 60)%小時)"
  579. else:
  580. set {_GG} to "(%floor({玩家資料.%{_player}%::VIP時間} / 60 / 24)%天)"
  581. else:
  582. set {_GG} to "(永久)"
  583. else:
  584. set {_VIP} to "&f無"
  585. set {_GG} to ""
  586. send "&6●=--------=《&c&l%{_player}% &4角色資料&6》=--------=●"
  587. send "&e名稱: &9%{_player}% &eVIP: &9%{_GG}%%{_VIP}%"
  588. send "&e職業: &b%{玩家資料.%{_player}%::玩家職業}%"
  589. send "&e等級: &6%{玩家資料.%{_player}%::玩家等級}% &8&3(&a%round({玩家資料.%{_player}%::目前經驗值})%&3/&a%{玩家資料.%{_player}%::最大經驗值}%&3)"
  590. set {_check} to {玩家資料.%{_player}%::最大血量}
  591. add ({玩家資料.%{_player}%::力量} * 5) to {_check}
  592. add ({玩家資料.%{_player}%::智慧} * 3) to {_check}
  593. add ({玩家資料.%{_player}%::敏捷} * 4) to {_check}
  594. add ({玩家資料.%{_player}%::幸運} * 3) to {_check}
  595. send "&e生命值: &c%{_check}% &e魔力值: &6%{玩家資料.%{_player}%::MP}%"
  596. send "&e力量: &f[ &6%{玩家資料.%{_player}%::力量}% &f] &e智慧: &f[ &b%{玩家資料.%{_player}%::智慧}% &f] "
  597. send "&e敏捷: &f[ &a%{玩家資料.%{_player}%::敏捷}% &f] &e幸運: &f[ &2%{玩家資料.%{_player}%::幸運}% &f] "
  598. if {_player} is executor:
  599. send "&e剩餘屬性點: &f%{玩家資料.%{_player}%::剩餘屬性點}%"
  600. send "&e剩餘技能點: &f%{玩家資料.%{_player}%::剩餘技能點}%"
  601. send "&6●=--------=&c----------------------------&6=--------=●"
  602. send "&e防禦力: &6%{玩家資料.%{_player}%::防禦力}% "
  603. set {_STRATK} to floor({玩家資料.%{_player}%::力量} * 0.5)
  604. set {_DEXATK} to floor({玩家資料.%{_player}%::敏捷} * 0.5)
  605. set {_INTATK} to floor({玩家資料.%{_player}%::智慧} * 0.6)
  606. set {_LUKATK} to floor({玩家資料.%{_player}%::幸運} * 0.7)
  607. set {_PHYSICDMG} to {玩家資料.%{_player}%::物理攻擊力}
  608. set {_MAGICDMG} to {玩家資料.%{_player}%::魔法攻擊力}
  609. add {_STRATK} + {_DEXATK} + {_LUKATK} to {_PHYSICDMG}
  610. add {_INTATK} to {_MAGICDMG}
  611. send "&e物理攻擊力: &c%{_PHYSICDMG}% &e魔法攻擊力: &b%{_MAGICDMG}% "
  612. send "&e血量恢復量: &c%{玩家資料.%{_player}%::血量恢復量}% &e魔量恢復量: &b%{玩家資料.%{_player}%::魔量恢復量}%"
  613. send "&e血量吸收量: &c%{玩家資料.%{_player}%::血量吸收量}% &e魔量吸收量: &b%{玩家資料.%{_player}%::魔量吸收量}%"
  614. send "&e爆擊率: &6%{玩家資料.%{_player}%::爆擊率}%&6%% &e爆擊傷害: &6%{玩家資料.%{_player}%::爆擊傷害}%&6%%"
  615. send "&e無視防禦: &d%{玩家資料.%{_player}%::無視防禦}%&d%% &e總傷害: &d%{玩家資料.%{_player}%::總傷害}%&d%%"
  616. send "&e移動速度: &a%{玩家資料.%{_player}%::移動速度}%&a%% &e跳躍力: &a%{玩家資料.%{_player}%::跳躍力}%&a%%"
  617. send "&6●=--------=&c----------------------------&6=--------=●"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement