henry900326

Untitled

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