henry900326

Untitled

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