henry900326

Untitled

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