henry900326

Untitled

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