henry900326

Untitled

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