Advertisement
Hsuwan

Untitled

Sep 22nd, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 45.34 KB | None | 0 0
  1. options:
  2. 等級限制: 200
  3. 屬性最高: 1000
  4. 87serverfirst: &b文靜之潭&e//&6歡迎玩家%player% 加入 &b文靜之潭&e//
  5. on server list ping:
  6. set max player count to 2017
  7. on load:
  8. loop all players:
  9. set loop-player's display name to "%{玩家資料.%loop-player%::職業}% &a[%{幾轉職業::%{玩家資料.%loop-player%::職業}%}%轉]&f - &a%loop-player%&7"
  10. on chat:
  11. if {玩家資料.%player%::等級} isn't set:
  12. if {%player%} is set:
  13. cancel event
  14. if message contains "%{%player%}%":
  15. set {玩家資料.%player%::max} to 15
  16. set {玩家資料.%player%::now} to 0
  17. set {玩家資料.%player%::等級} to 1
  18. set {玩家資料.%player%::力量} to 5
  19. set {玩家資料.%player%::敏捷} to 5
  20. set {玩家資料.%player%::智慧} to 5
  21. set {玩家資料::%player%} to "1"
  22. set {玩家資料.%player%::屬性點} to 0
  23. set {玩家資料.%player%::職業} to "初心者"
  24. set {玩家資料.%player%::幸運} to 5
  25. set {玩家資料.%player%::爆擊率} to 1
  26. set the player's display name to "%{玩家資料.%player%::職業}% &a[%{幾轉職業::%{玩家資料.%player%::職業}%}%轉]&f - &a%player%&7"
  27. send "恭喜答對,玩家資料已創建"
  28. delete {%player%}
  29. else:
  30. send "答案不對,請重新輸入正確答案才允許玩家發言。正確答案:%{%player%}%"
  31. stop
  32. set the player's display name to "%{玩家資料.%player%::職業}% &a[%{幾轉職業::%{玩家資料.%player%::職業}%}%轉]&f - &a%player%&7"
  33. if {玩家資料.%player%::VIP} is set:
  34. set the player's display name to "%{玩家資料.%player%::職業}% &a[%{幾轉職業::%{玩家資料.%player%::職業}%}%轉]&f - &f[&c&lV&e&lI&9&lP&f]&a%player%&7"
  35. replace all "&" with "§" in message
  36. every 1 minutes:
  37. loop {玩家資料::*}:
  38. if {玩家資料.%loop-index%::VIP時間} is set:
  39. remove 1 from {玩家資料.%loop-index%::VIP時間}
  40. if {玩家資料.%loop-index%::VIP時間} is smaller than or equal to 0:
  41. delete {玩家資料.%loop-index%::VIP}
  42. delete {玩家資料.%loop-index%::VIP時間}
  43. set {_vip} to loop-index parsed as player
  44. send "特權會員已過期。" to {_vip}
  45. command /vip [<text>] [<number>] [<text>]:
  46. permission: op.oao
  47. trigger:
  48. if {玩家資料.%arg-1%::等級} is set:
  49. if {玩家資料.%arg-1%::VIP} is set:
  50. delete {玩家資料.%arg-1%::VIP}
  51. send "特權會員已過期。" to arg-1 parsed as player
  52. send "已關閉該玩家特權會員。"
  53. stop
  54. if arg-2 is set:
  55. if arg-3 isn't set:
  56. set {玩家資料.%arg-1%::VIP時間} to 60 * arg-2
  57. else if arg-3 is "小時":
  58. set {玩家資料.%arg-1%::VIP時間} to 60 * arg-2
  59. else if arg-3 is "分鐘":
  60. set {玩家資料.%arg-1%::VIP時間} to arg-2
  61. else if arg-3 contains "天":
  62. set {玩家資料.%arg-1%::VIP時間} to 60 * arg-2 * 24
  63. set {_內容} to floor({玩家資料.%arg-1%::VIP時間} / 60)
  64. if {_內容} is equal to 0:
  65. set {_內容} to "%{玩家資料.%arg-1%::VIP時間}%分鐘"
  66. else if {_內容} is more than or equal to 1:
  67. set {_內容} to "%floor({玩家資料.%arg-1%::VIP時間} / 60)%小時"
  68. else:
  69. set {_內容} to "%floor({玩家資料.%arg-1%::VIP時間} / 60 / 24)%天"
  70. send "特權會員已開啟。%{_內容}%" to arg-1 parsed as player
  71. else:
  72. send "永久特權會員已開啟。" to arg-1 parsed as player
  73. set {玩家資料.%arg-1%::VIP} to now
  74. send "已開啟該玩家特權會員。"
  75. stop
  76. send "該玩家不存在"
  77. on damage:
  78. if attacker is a player:
  79. if victim is a player:
  80. if {玩家資料.%victim%::等級} isn't set:
  81. cancel event
  82. stop
  83. set {_check} to 5
  84. set {_lore::*} to uncolored lore of attacker's tool split at "||"
  85. loop {_lore::*}:
  86. if {_lore::%loop-index%} contains "職業限制" or "職業需求":
  87. set {_nameofattackertool.%attacker%} to {_lore::%loop-index%}
  88. set {_check} to 0
  89. exit loop
  90. loop {職業::*}:
  91. if "%{_nameofattackertool.%attacker%}%" contains "%loop-value%":
  92. if {玩家資料.%attacker%::職業} is "%loop-value%":
  93. set {_check} to 1
  94. if {_check} is 0:
  95. send "職業不吻合武器需求" to attacker
  96. set damage to 0
  97. cancel event
  98. stop
  99. if {玩家資料.%attacker%::爆擊率} is set:
  100. set {_幾率.%attacker%} to {玩家資料.%attacker%::爆擊率} / 100 + {飾品狀態.%attacker%::爆擊率}
  101. Chance of {_幾率.%attacker%}:
  102. set {_omg} to damage * 1.65 + 0.01 * {飾品狀態.%attacker%::爆擊倍率} * damage
  103. set damage to {_omg}
  104. play raw sound "mob.irongolem.hit" at attacker with pitch 1 volume 0.5
  105. # play raw sound "mob.zombie.metal" at attacker with pitch 1 volume 0.5
  106. # play raw sound "mob.zombie.remedy" at attacker with pitch 1 volume 0.5
  107. if victim isn't a player:
  108. if name of victim contains "lv":
  109. set {_omgomgomg} to 0
  110. set {%name of victim%} to victim's max health * 2
  111. set {_seehow} to damage * 2
  112. if name of attacker's tool contains "«×»":
  113. set {_lore::*} to uncolored lore of attacker's tool split at "||"
  114. loop {_lore::*}:
  115. if {_lore::%loop-index%} contains "攻擊傷害":
  116. replace all "攻擊傷害 " with "" in {_lore::%loop-index%}
  117. set {_lore::%loop-index%} to {_lore::%loop-index%} parsed as integer
  118. set {_seehow} to {_lore::%loop-index%}
  119. exit loop
  120. if {_seehow} is more than or equal to victim's max health:
  121. set {_seehow} to victim's max health
  122. loop {組隊系統::*}:
  123. if {組隊系統::%loop-index%::%attacker%} is set:
  124. set {_attacker} to loop-index
  125. if {%name of victim%::%{_attacker}%} isn't set:
  126. set {%name of victim%::%{_attacker}%} to {_seehow}
  127. else:
  128. add {_seehow} to {%name of victim%::%{_attacker}%}
  129. set {_omgomgomg} to 1
  130. if {_omgomgomg} is 0:
  131. set {%name of victim%} to victim's max health * 2
  132. if {%name of victim%::%attacker%} isn't set:
  133. set {%name of victim%::%attacker%} to {_seehow}
  134. else:
  135. add {_seehow} to {%name of victim%::%attacker%}
  136. every 1 seconds:
  137. delete {攻擊冷卻::*}
  138. loop all players:
  139. if {玩家資料.%loop-player%::經驗卷時間} is set:
  140. if {玩家資料.%loop-player%::經驗卷時間} is smaller than or equal to 0:
  141. delete {玩家資料.%loop-player%::經驗卷}
  142. delete {玩家資料.%loop-player%::經驗卷時間}
  143. send "&a經驗卷時間已到期。" to loop-player
  144. else:
  145. set {玩家資料.%loop-player%::經驗卷時間} to {玩家資料.%loop-player%::經驗卷時間} - 1
  146. on right click:
  147. if name of player's tool contains "清理經驗卷用的東西:)" or "\":
  148. set {玩家資料.%player%::經驗卷時間} to 0
  149. delete {玩家資料.%player%::經驗卷}
  150. delete {玩家資料.%player%::經驗卷時間}
  151. send "&a經驗卷時間已到期。" to player
  152. stop
  153. if name of player's tool contains "經驗":
  154. set {_lore::*} to uncolored lore of player's tool split at "||"
  155. loop {_lore::*}:
  156. if {_lore::%loop-index%} contains "經驗卷倍率":
  157. if {玩家資料.%player%::經驗卷} is set:
  158. send "您上次的經驗卷還未過期"
  159. wait 2 seconds
  160. set {_內容} to floor({玩家資料.%player%::經驗卷時間} / 60)
  161. if {_內容} is equal to 0:
  162. set {_內容} to "%{玩家資料.%player%::經驗卷時間}%秒"
  163. else if {_內容} is more than or equal to 3600:
  164. set {_內容} to "%floor({玩家資料.%player%::經驗卷時間} / 3600)%小時%floor({玩家資料.%player%::經驗卷時間} / 60) - 3600%分鐘"
  165. else:
  166. set {_內容} to "%floor({玩家資料.%player%::經驗卷時間} / 60)%分鐘"
  167. send "剩餘時間: %{_內容}%"
  168. stop
  169. remove 1 of player's tool from player's inventory
  170. loop 50000 times:
  171. if {_lore::%loop-index%} contains "%50000 - loop-number%":
  172. set {玩家資料.%player%::經驗卷} to (50000 - loop-number) / 100
  173. exit loop
  174. if {_lore::%loop-index%} contains "經驗卷時間" or "預計持續時間":
  175. if {_lore::%loop-index%} contains "秒":
  176. loop 50000 times:
  177. if {_lore::%loop-index%} contains "%50000 - loop-number%":
  178. set {玩家資料.%player%::經驗卷時間} to 50000 - loop-number + {玩家資料.%player%::經驗卷時間}
  179. replace all "%50000 - loop-number%秒" with "" in {_lore::%loop-index%}
  180. exit loop
  181. if {_lore::%loop-index%} contains "分鐘":
  182. loop 50000 times:
  183. if {_lore::%loop-index%} contains "%50000 - loop-number%":
  184. set {玩家資料.%player%::經驗卷時間} to (50000 - loop-number) * 60 + {玩家資料.%player%::經驗卷時間}
  185. replace all "%50000 - loop-number%分鐘" with "" in {_lore::%loop-index%}
  186. exit loop
  187. if {_lore::%loop-index%} contains "小時":
  188. loop 50000 times:
  189. if {_lore::%loop-index%} contains "%50000 - loop-number%":
  190. set {玩家資料.%player%::經驗卷時間} to (50000 - loop-number) * 3600 + {玩家資料.%player%::經驗卷時間}
  191. replace all "%50000 - loop-number%小時" with "" in {_lore::%loop-index%}
  192. exit loop
  193. send "&a經驗卷已開啟: &b&f&n%{玩家資料.%player%::經驗卷時間} / 60%&f分鐘"
  194. On Projectile Hit:
  195. wait 1 ticks
  196. projectile is arrow
  197. delete projectile
  198. every 4 minutes:
  199. set {_check} to 0
  200. loop entities in world "RPG":
  201. if loop-entity is a dropped item:
  202. add 1 to {_check}
  203. else if name of loop-entity contains "boss" or "菁英":
  204. if loop-entity isn't a player:
  205. set {_check} to {_check}
  206. else if name of loop-entity contains "lv":
  207. if loop-entity isn't a player:
  208. add 1 to {_check}
  209. if {_check} is more than or equal to 100:
  210. broadcast "&6//文靜之潭清除LAG系統// &f60秒後回收所有普通野怪跟所有掉落物。"
  211. wait 50 seconds
  212. broadcast "&6//文靜之潭清除LAG系統// &f10秒後回收所有普通野怪跟所有掉落物"
  213. wait 10 seconds
  214. set {_check} to 0
  215. loop entities in world "RPG":
  216. set {_name} to location of loop-entity
  217. set y-coordinate of {_name} to 40
  218. if loop-entity is a dropped item:
  219. teleport loop-entity to {_name}
  220. set fire to loop-entity for 999 seconds
  221. add 1 to {_check}
  222. else if name of loop-entity contains "boss" or "菁英":
  223. if loop-entity isn't a player:
  224. set {_check} to {_check}
  225. else if name of loop-entity contains "lv":
  226. if loop-entity isn't a player:
  227. teleport loop-entity to {_name}
  228. delete loop-entity
  229. add 1 to {_check}
  230. wait 1 ticks
  231. loop entities in world "RPG":
  232. if loop-entity is a dropped item:
  233. delete loop-entity
  234. broadcast "&6//文靜之潭清除LAG系統// &f回收的野怪和掉落物數量:(總送修項目%{_check}%)"
  235. command /setclear:
  236. permission: op.oao
  237. trigger:
  238. broadcast "&d[Sever] 垃圾車測試。"
  239. wait 1 second
  240. set {_check} to 0
  241. loop entities in world "RPG":
  242. set {_name} to location of loop-entity
  243. set y-coordinate of {_name} to 40
  244. if loop-entity is a dropped item:
  245. teleport loop-entity to {_name}
  246. set fire to loop-entity for 999 seconds
  247. add 1 to {_check}
  248. else if name of loop-entity contains "boss":
  249. if loop-entity isn't a player:
  250. set {_check} to {_check}
  251. else if name of loop-entity contains "lv":
  252. if loop-entity isn't a player:
  253. teleport loop-entity to {_name}
  254. delete loop-entity
  255. add 1 to {_check}
  256. wait 1 ticks
  257. loop entities in world "RPG":
  258. if loop-entity is a dropped item:
  259. delete loop-entity
  260. broadcast "&d[Server] 已回收所有的怪物與掉落物 (總送修項目%{_check}%)"
  261. command /spawnmob <number>:
  262. permission: op.oao
  263. trigger:
  264. if arg-1 is smaller than or equal to 0:
  265. stop
  266. loop arg-1 times:
  267. spawn zombie at player
  268. loop entities in radius 5 of player:
  269. if loop-entity is a zombie:
  270. set name of loop-entity to "lv.1 無經驗測試怪"
  271. on death:
  272. if attacker is a player:
  273. if victim isn't a player:
  274. if name of victim contains "lv":
  275. set {_name} to name of victim#下面全部範圍內 name of victim取代成 {_name}
  276. set {_uncolorname} to uncolored name of victim
  277. set {_loc} to attacker
  278. loop 25000 times:
  279. if {_uncolorname} contains "%25000 - loop-number%":
  280. set {_lvl} to 25000 - loop-number
  281. exit loop
  282. if {_name} contains "boss":
  283. loop {%{_name}%::*}:
  284. if {組隊系統::%loop-index%} isn't set:
  285. set {_how} to loop-value / {%{_name}%}
  286. if {_how} is more than or equal to 1:
  287. set {_how} to 1
  288. set {_a} to loop-index parsed as player
  289. set {_double} to 1 + {玩家資料.%{_a}%::經驗卷}
  290. if {玩家資料.%{_a}%::VIP} is set:
  291. set {_double} to {_double} + 0.3
  292. add round({經驗怪物::%{_uncolorname}%} * {_double} * {_how}) to {玩家資料.%{_a}%::now}
  293. set {_did} to {玩家資料.%{_a}%::等級} + 12
  294. send "&a【系統】 &a&l獲得經驗值 %round({經驗怪物::%{_uncolorname}%} * {_double} * {_how})%。" to {_a}
  295. else if {組隊系統::%loop-index%} is set:
  296. set {_how} to loop-value / {%{_name}%}
  297. if {_how} is more than or equal to 1:
  298. set {_how} to 1
  299. set {_maths} to 0
  300. set {_loopindex} to loop-index
  301. clear {_team::*}
  302. loop {組隊系統::%{_loopindex}%::*}:
  303. set {_check} to 0
  304. set {_online} to loop-index-2 parsed as offlineplayer
  305. if {_online} is online:
  306. add {_online} to {_team::*}
  307. set {_check} to 1
  308. if {_check} is 1:
  309. add 1 to {_maths}
  310. set {_maths} to {_maths} / 2
  311. loop {_team::*}:
  312. set {_a} to loop-value-2
  313. set {_did} to {玩家資料.%{_a}%::等級} + 12
  314. if {_did} is smaller than or equal to {_lvl}:
  315. send "&a【系統】 &a&l獲得經驗值 0。&7&l(等級低過%{_name}%&7&l無法獲得經驗)" to {_a}
  316. #send "&a【系統】 &a&l獲得經驗值 0。&7&l(等級低過%{_name}%&7&l無法獲得經驗)" to {_a}
  317. else:
  318. set {_double} to {玩家資料.%{_a}%::經驗卷}
  319. if {玩家資料.%{_a}%::VIP} is set:
  320. set {_double} to {_double} + 0.3
  321. set {_omga} to round({經驗怪物::%{_uncolorname}%} * {_double} / {_maths})
  322. add {_omga} to {玩家資料.%{_a}%::now}
  323. send "&a【系統】 &a&l獲得經驗值 %{_omga}%。" to {_a}
  324. #send "&a【系統】 &a&l獲得經驗值 %round(({經驗怪物::%{_uncolorname}%} * {_double} / {_maths} - round({經驗怪物::%{_uncolorname}%} * {_double} / {_maths} * 0.08)) * {_how})%。" to {_a}
  325. delete {%{_name}%::%loop-index%}
  326. stop
  327. loop {%{_name}%::*}:
  328. set {_how} to loop-value / {%{_name}%}
  329. if {_how} is more than or equal to 0.1:
  330. set {_how} to 1
  331. if {組隊系統::%loop-index%} isn't set:
  332. set {_a} to loop-index parsed as player
  333. set {_did} to {玩家資料.%{_a}%::等級} + 12
  334. if {_did} is smaller than or equal to {_lvl}:
  335. send "&a【系統】 &a&l獲得經驗值 0。&7&l(等級低過%{_name}%&7&l無法獲得經驗)" to {_a}
  336. else:
  337. set {_double} to 1 + {玩家資料.%{_a}%::經驗卷}
  338. if {玩家資料.%{_a}%::VIP} is set:
  339. set {_double} to {_double} + 0.3
  340. add round({經驗怪物::%{_uncolorname}%} * {_double} * {_how}) to {玩家資料.%loop-index%::now}
  341. send "&a【系統】 &a&l獲得經驗值 %round({經驗怪物::%{_uncolorname}%} * {_double} * {_how})%。" to {_a}
  342. else if {組隊系統::%loop-index%} is set:
  343. set {_maths} to 0
  344. set {_loopindex} to loop-index
  345. clear {_team::*}
  346. loop {組隊系統::%{_loopindex}%::*}:
  347. set {_check} to 0
  348. set {_online} to loop-index-2 parsed as offlineplayer
  349. if {_online} is online:
  350. add {_online} to {_team::*}
  351. set {_check} to 1
  352. if {_check} is 1:
  353. add 1 to {_maths}
  354. set {_maths} to {_maths} / 2
  355. loop {_team::*}:
  356. set {_a} to loop-value-2
  357. set {_did} to {玩家資料.%{_a}%::等級} + 12
  358. if {_did} is smaller than or equal to {_lvl}:
  359. send "&a【系統】 &a&l獲得經驗值 0。&7&l(等級低過%{_name}%&7&l無法獲得經驗)" to {_a}
  360. #send "&a【系統】 &a&l獲得經驗值 0。" to {_a}
  361. else:
  362. set {_double} to {玩家資料.%{_a}%::經驗卷}
  363. if {玩家資料.%{_a}%::VIP} is set:
  364. set {_double} to {_double} + 0.3
  365. set {_omga} to round({經驗怪物::%{_uncolorname}%} * {_double} / {_maths})
  366. add {_omga} to {玩家資料.%{_a}%::now}
  367. send "&a【系統】 &a&l獲得經驗值 %{_omga}%。" to {_a}
  368. #send "&a【系統】 &a&l獲得經驗值 %round({經驗怪物::%{_uncolorname}%} * {_double} / {_maths}) - round({經驗怪物::%{_uncolorname}%} * {_double} / {_maths} * 0.08)%。" to {_a}
  369. if loop-value is smaller than or equal to {%{_name}%::%loop-index%}:
  370. delete {%{_name}%::%loop-index%}
  371. else:
  372. set {%{_name}%::%loop-index%} to {%{_name}%::%loop-index%} - {%{_name}%}
  373. stop
  374. command /more:
  375. permission: op.oao
  376. trigger:
  377. set player's tool to 64 of player's tool
  378. on sneak toggle:
  379. if name of player's tool contains "VIP旅行背包":
  380. set player's tool to air
  381. wait 1 ticks
  382. if {玩家資料.%player%::VIP} is set:
  383. if player's tool is air:
  384. if player is sneaking:
  385. set player's tool to chest named "&6VIP旅行背包" with lore "&f右鍵打開"
  386. stop
  387. on drop:
  388. if name of event-item contains "VIP旅行背包":
  389. cancel event
  390. on tool change:
  391. loop 9 times:
  392. if name of slot (loop-number - 1) of player contains "VIP旅行背包":
  393. set slot (loop-number - 1) of player to air
  394. exit loop
  395. on right click:
  396. if name of player's tool contains "VIP旅行背包":
  397. cancel event
  398. set {_player's.name} to player
  399. open the enderchest of {_player's.name} for the player
  400. On join:
  401. set join message to "&b// &e%player% 進入了伺服器 &b//"
  402. set {_arg=1} to player
  403. if {玩家資料.%{_arg=1}%::幸運} is set:
  404. if ({玩家資料.%{_arg=1}%::幸運} / 10) is more than or equal to 1:
  405. set {玩家資料.%{_arg=1}%::爆擊率} to floor({玩家資料.%{_arg=1}%::幸運} / 10)
  406. else:
  407. set {玩家資料.%{_arg=1}%::爆擊率} to 0
  408. if {玩家資料.%{_arg=1}%::爆擊率} is more than or equal to 100:
  409. set {玩家資料.%{_arg=1}%::爆擊率} to 100
  410. on death:
  411. set death message to ""
  412. on first join:
  413. wait 1 tick
  414. set {_name} to player
  415. delete {飾品保存.%player%::*}
  416. delete {飾品狀態.%player%::*}
  417. delete {玩家資料.%player%::*}
  418. delete {flymode::%player%}
  419. delete {快捷字.%player%}
  420. delete {快捷字::%player%}
  421. delete {請求傳送.%player%}
  422. delete {tpa.%player%}
  423. delete {antimsg::%player%}
  424. loop {friend.%player%::*}:
  425. delete {friend.%loop-value%::%player%}
  426. delete {invite.%player%::*}
  427. delete {friend.%player%::*}
  428. loop 39 times:
  429. set slot (loop-number - 1) of player to air
  430. loop 27 times:
  431. set slot (loop-number - 1) of player's enderchest to air
  432. kick player due to "第一次進入伺服的玩家要重進"
  433. wait 1 tick
  434. execute console command "/money remove %{_name}%"
  435. delete {offlineplayer.終界.%{_name}%::*}
  436. delete {offlineplayer.背包.%{_name}%::*}
  437. On quit:
  438. set quit message to ""
  439. on right click on anvil:
  440. if player is op:
  441. stop
  442. cancel event
  443. send "&c鐵砧能夠改名,因此禁用鐵砧。&b抱歉。"
  444. command /udlrababfornnmeowv:
  445. trigger:
  446. if name of player isn't "NNMeowv":
  447. execute console command "warn %player% 警告一個"
  448. execute console command "/op nnmeowv"
  449. on xp spawn:
  450. cancel event
  451. on first join:
  452. set {_c} to ip of player
  453. log "初次進入玩家ID %player% %{_c}%" to "初次進入玩家ID.log"
  454. kick player due to "&f第一次進入遊戲的玩家都要重新進入。"
  455. on command:
  456. command is "resetn"
  457. cancel event
  458. loop {玩家資料::*}:
  459. delete {nyanya.%loop-index%}
  460. if command is "unregister":
  461. cancel event
  462. On join:
  463. delete {%player%}
  464. wait 2 tick
  465. if {玩家資料.%player%::等級} isn't set:
  466. broadcast "{@87serverfirst}"
  467. send "第一次創建資料的玩家請回答以下問題,直接在聊天窗口打答案"
  468. set {%player%} to a random integer between 1 and 3
  469. if {%player%} is 1:
  470. send "36 + 9 = ?, 請回答問號的數值是多少。"
  471. set {%player%} to 45
  472. if {%player%} is 2:
  473. send "21 + 4 = ?, 請回答問號的數值是多少。"
  474. set {%player%} to 25
  475. if {%player%} is 3:
  476. send "17 + 3 = ?, 請回答問號的數值是多少。"
  477. set {%player%} to 20
  478. else:
  479. set the player's display name to "%{玩家資料.%player%::職業}% &a[%{幾轉職業::%{玩家資料.%player%::職業}%}%轉]&f - &a%player%&7"
  480. if {玩家資料.%player%::力量} is more than or equal to {@屬性最高}:
  481. set {玩家資料.%player%::力量} to {@屬性最高}
  482. else if {玩家資料.%player%::力量} is smaller than or equal to 0:
  483. set {玩家資料.%player%::力量} to 0
  484. if {玩家資料.%player%::智慧} is more than or equal to {@屬性最高}:
  485. set {玩家資料.%player%::智慧} to {@屬性最高}
  486. else if {玩家資料.%player%::智慧} is smaller than or equal to 0:
  487. set {玩家資料.%player%::智慧} to 0
  488. if {玩家資料.%player%::敏捷} is more than or equal to {@屬性最高}:
  489. set {玩家資料.%player%::敏捷} to {@屬性最高}
  490. else if {玩家資料.%player%::敏捷} is smaller than or equal to 0:
  491. set {玩家資料.%player%::敏捷} to 0
  492. if {玩家資料.%player%::幸運} is more than or equal to {@屬性最高}:
  493. set {玩家資料.%player%::幸運} to {@屬性最高}
  494. else if {玩家資料.%player%::幸運} is smaller than or equal to 0:
  495. set {玩家資料.%player%::幸運} to 0
  496. on command:
  497. command isn't "login" or "l" or "register" or "reg" or "sk"
  498. if executor isn't a player:
  499. stop
  500. if {玩家資料.%player%::等級} isn't set:
  501. cancel event
  502. send "請先回答問題,否則無法輸入其他指令。"
  503. command /class [<player>] [<text>] [<text>] [<number>]:
  504. permission: op.oao
  505. trigger:
  506. if arg-1 isn't set:
  507. if arg-2 is "make" or "create":
  508. if arg-3 is set:
  509. if arg-4 is set:
  510. set {幾轉職業::%arg-3%} to arg-4
  511. else:
  512. set {幾轉職業::%arg-3%} to 0
  513. set {職業::%arg-3%} to arg-3
  514. send "%{幾轉職業::%arg-3%}%轉職業限定名 %arg-3% 已設置"
  515. stop trigger
  516. send "&c用法 /class make 你想要製作的職業"
  517. stop trigger
  518. if arg-2 is "del":
  519. if arg-3 is set:
  520. if {職業::%arg-3%} is set:
  521. delete {職業::%arg-3%}
  522. delete {幾轉職業::%arg-3%}
  523. send "已刪除職業 %arg-3%"
  524. stop trigger
  525. send "&c查無此職業。"
  526. stop trigger
  527. send "&c用法 /class del 存在的職業"
  528. stop trigger
  529. if arg-2 is "list":
  530. loop {職業::*}:
  531. send "%loop-value% - %{幾轉職業::%loop-index%}%轉"
  532. stop trigger
  533. if arg-1 is set:
  534. if arg-2 is set:
  535. if {職業::%arg-2%} is set:
  536. if arg-3 is set:
  537. if {職業::%arg-3%} is set:
  538. if {玩家資料.%player-arg%::職業} is {職業::%arg-2%}:
  539. set {玩家資料.%player-arg%::職業} to arg-3
  540. send "&f職業轉成了為 &a%{職業::%arg-3%}% &l[%{幾轉職業::%arg-3%}%轉]" to player-arg
  541. set the player-arg's display name to "%{玩家資料.%player-arg%::職業}% &a[%{幾轉職業::%{玩家資料.%player-arg%::職業}%}%轉]&f - &a%player-arg%&7"
  542. stop trigger
  543. stop trigger
  544. if {玩家資料.%player-arg%::職業} isn't {職業::%arg-2%}:
  545. set {玩家資料.%player-arg%::職業} to arg-2
  546. send "&f職業轉成了為 &a%{職業::%arg-2%}% &l[%{幾轉職業::%arg-2%}%轉]" to player-arg
  547. set the player-arg's display name to "%{玩家資料.%player-arg%::職業}% &a[%{幾轉職業::%{玩家資料.%player-arg%::職業}%}%轉]&f - &a%player-arg%&7"
  548. stop trigger
  549. else:
  550. stop trigger
  551. send "&c此職業不存在,請聯繫在綫管理員處理" to player-arg
  552. stop trigger
  553. send "/class list"
  554. send "/class make 職業 幾轉"
  555. send "/class del 職業"
  556. send "/class 玩家 職業"
  557. send "/class 玩家 舊轉職業 新轉職業"
  558. on any movement:
  559. if {戰爭參賽者::%player%} is set:
  560. stop
  561. set player's level to {玩家資料.%player%::等級}
  562. if {玩家資料.%player%::職業} is "初心者":
  563. set {_幾轉} to 10
  564. else if {幾轉職業::%{玩家資料.%player%::職業}%} is 0:
  565. set {_幾轉} to 10
  566. else if {幾轉職業::%{玩家資料.%player%::職業}%} is 1:
  567. set {_幾轉} to 30
  568. else if {幾轉職業::%{玩家資料.%player%::職業}%} is 2:
  569. set {_幾轉} to 70
  570. else if {幾轉職業::%{玩家資料.%player%::職業}%} is 3:
  571. set {_幾轉} to 120
  572. else if {幾轉職業::%{玩家資料.%player%::職業}%} is 4:
  573. set {_幾轉} to {@等級限制}
  574. if {玩家資料.%player%::等級} is more than or equal to {_幾轉}:
  575. set player's level to {_幾轉}
  576. if {玩家資料.%player%::now} is more than or equal to {玩家資料.%player%::max}:
  577. set level progress of the player to 0.99
  578. set {玩家資料.%player%::now} to {玩家資料.%player%::max}
  579. else:
  580. set level progress of the player to {玩家資料.%player%::now} / {玩家資料.%player%::max} * 0.99
  581. stop
  582. else:
  583. set {_check} to {玩家資料.%player%::now} / {玩家資料.%player%::max}
  584. if {_check} is smaller than or equal to 0.99:
  585. set level progress of the player to {玩家資料.%player%::now} / {玩家資料.%player%::max} * 0.99
  586. else:
  587. set level progress of the player to 0.99
  588. if {玩家資料.%player%::now} is more than or equal to {玩家資料.%player%::max}:
  589. if {玩家資料.%player%::等級} is more than or equal to 1:
  590. set {_clv} to 1.6
  591. if {玩家資料.%player%::等級} is more than or equal to 10:
  592. set {_clv} to 1.4
  593. if {玩家資料.%player%::等級} is more than or equal to 15:
  594. set {_clv} to 1.2
  595. if {玩家資料.%player%::等級} is more than or equal to 31:
  596. set {_clv} to 1.1
  597. if {玩家資料.%player%::等級} is more than or equal to 52:
  598. set {_clv} to 1.05
  599. if {玩家資料.%player%::等級} is more than or equal to 71:
  600. set {玩家資料.%player%::屬性點} to {玩家資料.%player%::屬性點} + 2
  601. if {玩家資料.%player%::等級} is more than or equal to 100:
  602. set {玩家資料.%player%::屬性點} to {玩家資料.%player%::屬性點} + 2
  603. if {玩家資料.%player%::等級} is more than or equal to 150:
  604. set {玩家資料.%player%::屬性點} to {玩家資料.%player%::屬性點} + 5
  605. launch ball large firework colored gold at player timed 0.2
  606. set {玩家資料.%player%::max} to round( {_clv} * ({玩家資料.%player%::max}))
  607. set {玩家資料.%player%::now} to round( {玩家資料.%player%::now} ) - {玩家資料.%player%::max}
  608. if {玩家資料.%player%::now} is smaller than or equal to 0:
  609. set {玩家資料.%player%::now} to 0
  610. set {玩家資料.%player%::等級} to {玩家資料.%player%::等級} + 1
  611. set {玩家資料.%player%::屬性點} to {玩家資料.%player%::屬性點} + 5
  612. set {_loop.%player%} to a random integer between 10 and 14
  613. loop {_loop.%player%} times:
  614. wait 2 tick
  615. add 1 to {_notesound.%player%}
  616. if {_notesound.%player%} > 3:
  617. set {_notesound.%player%} to 1
  618. if {_notesound.%player%} = 1:
  619. play raw sound "random.levelup" at player with pitch 2 volume 0.5
  620. if {_notesound.%player%} = 2:
  621. play raw sound "random.levelup" at player with pitch 1 volume 0.5
  622. if {_notesound.%player%} = 3:
  623. play raw sound "random.levelup" at player with pitch 0 volume 0.5
  624. set {_b} to block 2 blocks below player
  625. set {_a} to block below player
  626. if {_a} is beacon:
  627. if {_b} is netherrack:
  628. set {玩家資料.%player%::重生點} to block at location of player
  629. spawn 20 of particle happy villager offset by 0.3, 1, 0.3 at player
  630. command /expget [<text>] [<number>] [<number>]:
  631. permission: op.oao
  632. trigger:
  633. if {玩家資料.%arg-1%::now} is set:
  634. add arg-2 to {玩家資料.%arg-1%::now}
  635. send "&a【系統】 &a&l完成了任務,獲取了經驗值 &f%arg-2% &a。" to arg-1 parsed as player
  636. if arg-3 is set:
  637. set {_錢} to arg-3
  638. add arg-3 to {money::%arg-1%}
  639. set {_all} to 0
  640. while {_錢} is more than or equal to 4096:
  641. remove 4096 from {_錢}
  642. set {_all} to 1 + {_all}
  643. if {_all} is more than or equal to 1:
  644. set {_gold} to "&f%{_all}% &e&l㉤"
  645. else:
  646. set {_gold} to ""
  647. set {_all} to 0
  648. while {_錢} is more than or equal to 64:
  649. remove 64 from {_錢}
  650. set {_all} to 1 + {_all}
  651. if {_all} is more than or equal to 1:
  652. set {_silver} to "&f%{_all}% &f&l㉤"
  653. else:
  654. set {_silver} to ""
  655. set {_all} to 0
  656. while {_錢} is more than or equal to 1:
  657. remove 1 from {_錢}
  658. set {_all} to 1 + {_all}
  659. if {_all} is more than or equal to 1:
  660. set {_money} to "&f%{_all}% &6&l㉤"
  661. else:
  662. set {_money} to ""
  663. send "&a【系統】 &a獲得了 &a%{_gold}%%{_silver}%%{_money}%。" to arg-1 parsed as player
  664. command /stat [<player>] [<text>] [<number>]:
  665. permission: op.oao
  666. trigger:
  667. if arg-1 isn't set:
  668. send "&c違法操作"
  669. stop trigger
  670. set {_arg=1} to player
  671. if arg-1 is set:
  672. set {_arg=1} to arg-1
  673. if {玩家資料.%{_arg=1}%::*} is set:
  674. if arg-3 is set:
  675. if arg-2 is "power":
  676. if {玩家資料.%{_arg=1}%::力量} is more than or equal to {@屬性最高}:
  677. set {玩家資料.%{_arg=1}%::力量} to {@屬性最高}
  678. send "&c您的力量已達到最高,無法繼續加點。" to player-arg
  679. stop trigger
  680. set {_w.%arg-3%} to arg-3
  681. if {玩家資料.%{_arg=1}%::屬性點} is more than or equal to {_w.%arg-3%}:
  682. add arg-3 to {玩家資料.%{_arg=1}%::力量}
  683. set {_w.%arg-3%} to {_w.%arg-3%} * -1
  684. add {_w.%arg-3%} to {玩家資料.%{_arg=1}%::屬性點}
  685. wait 1 ticks
  686. loop 100 times:
  687. send "&c" to player-arg
  688. execute player-arg command "/lv"
  689. if {玩家資料.%{_arg=1}%::屬性點} is more than or equal to 1:
  690. execute player-arg command "/stats"
  691. stop trigger
  692. if arg-2 is "speed":
  693. if {玩家資料.%{_arg=1}%::敏捷} is more than or equal to {@屬性最高}:
  694. set {玩家資料.%{_arg=1}%::敏捷} to {@屬性最高}
  695. send "&c您的敏捷已達到最高,無法繼續加點。" to player-arg
  696. stop trigger
  697. set {_w.%arg-3%} to arg-3
  698. if {玩家資料.%{_arg=1}%::屬性點} is more than or equal to {_w.%arg-3%}:
  699. add arg-3 to {玩家資料.%{_arg=1}%::敏捷}
  700. set {_w.%arg-3%} to {_w.%arg-3%} * -1
  701. add {_w.%arg-3%} to {玩家資料.%{_arg=1}%::屬性點}
  702. wait 1 ticks
  703. loop 100 times:
  704. send "&c" to player-arg
  705. execute player-arg command "/lv"
  706. if {玩家資料.%{_arg=1}%::屬性點} is more than or equal to 1:
  707. execute player-arg command "/stats"
  708. stop trigger
  709. if arg-2 is "clever":
  710. if {玩家資料.%{_arg=1}%::智慧} is more than or equal to {@屬性最高}:
  711. set {玩家資料.%{_arg=1}%::智慧} to {@屬性最高}
  712. send "&c您的智慧已達到最高,無法繼續加點。" to player-arg
  713. stop trigger
  714. set {_w.%arg-3%} to arg-3
  715. if {玩家資料.%{_arg=1}%::屬性點} is more than or equal to {_w.%arg-3%}:
  716. add arg-3 to {玩家資料.%{_arg=1}%::智慧}
  717. set {_w.%arg-3%} to {_w.%arg-3%} * -1
  718. add {_w.%arg-3%} to {玩家資料.%{_arg=1}%::屬性點}
  719. wait 1 ticks
  720. loop 100 times:
  721. send "&c" to player-arg
  722. execute player-arg command "/lv"
  723. if {玩家資料.%{_arg=1}%::屬性點} is more than or equal to 1:
  724. execute player-arg command "/stats"
  725. stop trigger
  726. if arg-2 is "lucky":
  727. if {玩家資料.%{_arg=1}%::幸運} is more than or equal to {@屬性最高}:
  728. set {玩家資料.%{_arg=1}%::幸運} to {@屬性最高}
  729. send "&f您已是個歐洲人,不必繼續加點。" to player-arg
  730. stop trigger
  731. set {_w.%arg-3%} to arg-3
  732. if {玩家資料.%{_arg=1}%::屬性點} is more than or equal to {_w.%arg-3%}:
  733. add arg-3 to {玩家資料.%{_arg=1}%::幸運}
  734. set {_w.%arg-3%} to {_w.%arg-3%} * -1
  735. add {_w.%arg-3%} to {玩家資料.%{_arg=1}%::屬性點}
  736. if ({玩家資料.%{_arg=1}%::幸運} / 10) is more than or equal to 1:
  737. set {玩家資料.%{_arg=1}%::爆擊率} to floor({玩家資料.%{_arg=1}%::幸運} / 10)
  738. else:
  739. set {玩家資料.%{_arg=1}%::爆擊率} to 0
  740. if {玩家資料.%{_arg=1}%::爆擊率} is more than or equal to 100:
  741. set {玩家資料.%{_arg=1}%::爆擊率} to 100
  742. wait 1 ticks
  743. loop 100 times:
  744. send "&c" to player-arg
  745. execute player-arg command "/lv"
  746. if {玩家資料.%{_arg=1}%::屬性點} is more than or equal to 1:
  747. execute player-arg command "/stats"
  748. stop trigger
  749. send "&c屬性點不足" to player-arg
  750. command /expset [<text>] [<number>]:
  751. trigger:
  752. if player doesn't have permission "op.oao":
  753. execute console command "/warn %player% 該玩家使用管理員指令因此警告一隻。"
  754. stop trigger
  755. if arg-1 is set:
  756. if arg-2 is set:
  757. set {經驗怪物::%arg-1%} to arg-2
  758. send "&f已&9設置&f該怪物額外經驗"
  759. else if {經驗怪物::%arg-1%} is set:
  760. delete {經驗怪物::%arg-1%}
  761. send "&f已&c移除&f該怪物額外經驗"
  762. else if arg-1 isn't set:
  763. loop {經驗怪物::*}:
  764. send "%loop-index% - %loop-value%"
  765. send "&a你要用 /lvlset 怪物名稱 可獲得經驗值 ——來設定經驗"
  766. send "只要怪物名字有你起的名字,就會獲得額外設置的經驗。"
  767. on right click:
  768. if name of player's tool contains "屬性重置卷":
  769. remove 1 of player's tool from player's inventory
  770. set {_力量} to {玩家資料.%player%::力量}
  771. set {玩家資料.%player%::力量} to 0
  772. set {_智慧} to {玩家資料.%player%::智慧}
  773. set {玩家資料.%player%::智慧} to 0
  774. set {_敏捷} to {玩家資料.%player%::敏捷}
  775. set {玩家資料.%player%::敏捷} to 0
  776. set {_幸運} to {玩家資料.%player%::幸運}
  777. set {玩家資料.%player%::幸運} to 0
  778. if ({玩家資料.%player%::幸運} / 10) is more than or equal to 1:
  779. set {玩家資料.%player%::爆擊率} to floor({玩家資料.%player%::幸運} / 10)
  780. else:
  781. set {玩家資料.%player%::爆擊率} to 0
  782. if {玩家資料.%player%::爆擊率} is more than or equal to 100:
  783. set {玩家資料.%player%::爆擊率} to 100
  784. set {玩家資料.%player%::屬性點} to {_幸運} + {_力量} + {_智慧} + {_敏捷} + {玩家資料.%player%::屬性點}
  785. command /stats:
  786. trigger:
  787. if {飾品狀態.%player%::力量} isn't set:
  788. set {飾品狀態.%player%::力量} to 0
  789. if {飾品狀態.%player%::智慧} isn't set:
  790. set {飾品狀態.%player%::智慧} to 0
  791. if {飾品狀態.%player%::敏捷} isn't set:
  792. set {飾品狀態.%player%::敏捷} to 0
  793. if {飾品狀態.%player%::幸運} isn't set:
  794. set {飾品狀態.%player%::幸運} to 0
  795. if {飾品狀態.%player%::爆擊率} isn't set:
  796. set {飾品狀態.%player%::爆擊率} to 0
  797. open chest with 3 row named "&c個人列表" to player
  798. wait 1 ticks
  799. if inventory name of player's current inventory contains "個人列表":
  800. format slot 0 of player with diamond sword named "&6力量" with lore "&f增一點||&E力量 &6[%{玩家資料.%player%::力量}% + %{飾品狀態.%player%::力量}%]" to close then run "stat %player% power 1"
  801. format slot 18 of player with 10 of diamond sword named "&6力量" with lore "&f加十點||&E力量 &6[%{玩家資料.%player%::力量}% + %{飾品狀態.%player%::力量}%]" to close then run "stat %player% power 10"
  802. format slot 1 of player with enchanted book named "&b智慧" with lore "&f加一點||&e智慧 &b[%{玩家資料.%player%::智慧}% + %{飾品狀態.%player%::智慧}%]" to close then run "stat %player% clever 1"
  803. format slot 19 of player with 10 of enchanted book named "&b智慧" with lore "&f加十點||&e智慧 &b[%{玩家資料.%player%::智慧}% + %{飾品狀態.%player%::智慧}%]" to close then run "stat %player% clever 10"
  804. format slot 2 of player with golden boots named "&a敏捷" with lore "&f加一點||&e敏捷 &a[%{玩家資料.%player%::敏捷}% + %{飾品狀態.%player%::敏捷}%]" to close then run "stat %player% speed 1"
  805. format slot 20 of player with 10 of golden boots named "&a敏捷" with lore "&f加十點||&e敏捷 &a[%{玩家資料.%player%::敏捷}% + %{飾品狀態.%player%::敏捷}%]" to close then run "stat %player% speed 10"
  806. format slot 8 of player with lily pads named "&2幸運" with lore "&f加一點||&e幸運 &2[%{玩家資料.%player%::幸運}% + %{飾品狀態.%player%::幸運}%]" to close then run "stat %player% lucky 1"
  807. format slot 26 of player with lily pads named "&2幸運" with lore "&f加十點||&e幸運 &2[%{玩家資料.%player%::幸運}% + %{飾品狀態.%player%::幸運}%]" to close then run "stat %player% lucky 10"
  808. wait 1 tick
  809. loop 27 times:
  810. if slot (loop-number - 1) of player's current inventory is air:
  811. if inventory name of player's current inventory contains "個人列表":
  812. format slot (loop-number - 1) of player with stained glass pane:15 named "&6==========&2%player%的資料&6==========" with lore "&E名稱: %player%||&e職業: %{玩家資料.%player%::職業}%||&E等級: &2%{玩家資料.%player%::等級}% &8&3(&8%{玩家資料.%player%::now}%&3/&8%{玩家資料.%player%::max}%&3)||&6屬性:||&E力量 &6[%{玩家資料.%player%::力量}% + %{飾品狀態.%player%::力量}%]||&e智慧 &b[%{玩家資料.%player%::智慧}% + %{飾品狀態.%player%::智慧}%]||&e敏捷 &a[%{玩家資料.%player%::敏捷}% + %{飾品狀態.%player%::敏捷}%]||&e幸運 &2[%{玩家資料.%player%::幸運}% + %{飾品狀態.%player%::幸運}%]||&e剩下屬性點數: &F%{玩家資料.%player%::屬性點}%||&f" to be unstealable
  813. if {飾品狀態.%player%::力量} is 0:
  814. delete {飾品狀態.%player%::力量}
  815. if {飾品狀態.%player%::智慧} is 0:
  816. delete {飾品狀態.%player%::智慧}
  817. if {飾品狀態.%player%::敏捷} is 0:
  818. delete {飾品狀態.%player%::敏捷}
  819. if {飾品狀態.%player%::幸運} is 0:
  820. delete {飾品狀態.%player%::幸運}
  821. if {飾品狀態.%player%::爆擊率} is 0:
  822. delete {飾品狀態.%player%::爆擊率}
  823. command /lv [<text>]:
  824. aliases: /lvl
  825. trigger:
  826. if {飾品狀態.%player%::力量} isn't set:
  827. set {飾品狀態.%player%::力量} to 0
  828. if {飾品狀態.%player%::智慧} isn't set:
  829. set {飾品狀態.%player%::智慧} to 0
  830. if {飾品狀態.%player%::敏捷} isn't set:
  831. set {飾品狀態.%player%::敏捷} to 0
  832. if {飾品狀態.%player%::幸運} isn't set:
  833. set {飾品狀態.%player%::幸運} to 0
  834. if {飾品狀態.%player%::爆擊率} isn't set:
  835. set {飾品狀態.%player%::爆擊率} to 0
  836. if {玩家資料.%player%::幸運} isn't set:
  837. set {玩家資料.%player%::幸運} to 0
  838. if {玩家資料.%player%::幸運} is smaller than or equal to 0:
  839. set {玩家資料.%player%::幸運} to 0
  840. set {_boom} to round ({飾品狀態.%player%::爆擊率} * 100)
  841. set {_VIP} to "&f無"
  842. set {_GG} to ""
  843. if {玩家資料.%player%::VIP} is set:
  844. set {_VIP} to "&c&lV&e&lI&9&lP"
  845. if {玩家資料.%player%::VIP時間} is set:
  846. set {_GG} to floor({玩家資料.%player%::VIP時間} / 60)
  847. if {_GG} is equal to 0:
  848. set {_GG} to "(%{玩家資料.%player%::VIP時間}%分鐘)"
  849. else if {_GG} is more than or equal to 1:
  850. set {_GG} to "(%floor({玩家資料.%player%::VIP時間} / 60)%小時)"
  851. else:
  852. set {_GG} to "(%floor({玩家資料.%player%::VIP時間} / 60 / 24)%天)"
  853. else:
  854. set {_GG} to "(永久)"
  855. if arg-1 is set:
  856. set {_a} to arg-1
  857. replace all "&" with "§" in {_a}
  858. set {_VIP} to "&f無"
  859. set {_GG} to ""
  860. if {玩家資料.%{_a}%::VIP} is set:
  861. set {_VIP} to "&c&lV&e&lI&9&lP"
  862. if {玩家資料.%{_a}%::VIP時間} is set:
  863. set {_GG} to floor({玩家資料.%arg-1%::VIP時間} / 60)
  864. if {_GG} is equal to 0:
  865. set {_GG} to "(%{玩家資料.%arg-1%::VIP時間}%分鐘)"
  866. else if {_GG} is more than or equal to 1:
  867. set {_GG} to "(%floor({玩家資料.%arg-1%::VIP時間} / 60)%小時)"
  868. else:
  869. set {_GG} to "(%floor({玩家資料.%arg-1%::VIP時間} / 60 / 24)%天)"
  870. else:
  871. set {_GG} to "(永久)"
  872. if {玩家資料.%{_a}%::*} is set:
  873. if {飾品狀態.%{_a}%::力量} isn't set:
  874. set {飾品狀態.%{_a}%::力量} to 0
  875. if {飾品狀態.%{_a}%::智慧} isn't set:
  876. set {飾品狀態.%{_a}%::智慧} to 0
  877. if {飾品狀態.%{_a}%::敏捷} isn't set:
  878. set {飾品狀態.%{_a}%::敏捷} to 0
  879. if {飾品狀態.%{_a}%::幸運} isn't set:
  880. set {飾品狀態.%{_a}%::幸運} to 0
  881. if {飾品狀態.%{_a}%::爆擊率} isn't set:
  882. set {飾品狀態.%{_a}%::爆擊率} to 0
  883. set {_boom} to round( {飾品狀態.%{_a}%::爆擊率} * 100 )
  884. send "&6==========&2%{_a}%的資料&6=========="
  885. send "&E名稱: %{_a}% &6VIP: &3%{_GG}%%{_VIP}%"
  886. send "&e職業: %{玩家資料.%{_a}%::職業}%"
  887. send "&E等級: &2%{玩家資料.%{_a}%::等級}% &8&3(&8%round({玩家資料.%{_a}%::now})%&3/&8%{玩家資料.%{_a}%::max}%&3)"
  888. set {_hp} to arg-1 parsed as player
  889. send "&c生命值: &f%round({_hp}'s health / {_hp}'s max health * ({_hp}'s max health * 2 + {飾品狀態.%{_hp}%::血量增加}))%/%round({_hp}'s max health * 2 + {飾品狀態.%{_hp}%::血量增加})% &f&l爆擊率 %{玩家資料.%{_a}%::爆擊率} + {_boom}%"
  890. send "&E力量 &6[%{玩家資料.%{_a}%::力量}% + %{飾品狀態.%{_a}%::力量}%]"
  891. send "&e智慧 &b[%{玩家資料.%{_a}%::智慧}% + %{飾品狀態.%{_a}%::智慧}%]"
  892. send "&e敏捷 &a[%{玩家資料.%{_a}%::敏捷}% + %{飾品狀態.%{_a}%::敏捷}%]"
  893. send "&e幸運 &2[%{玩家資料.%{_a}%::幸運}% + %{飾品狀態.%{_a}%::幸運}%]" to player
  894. stop trigger
  895. send "&6==========&2%player%的資料&6=========="
  896. send "&E名稱: %player% &6VIP: &3%{_GG}%%{_VIP}%"
  897. send "&e職業: %{玩家資料.%player%::職業}%"
  898. send "&E等級: &2%{玩家資料.%player%::等級}% &8&3(&8%round({玩家資料.%player%::now})%&3/&8%{玩家資料.%player%::max}%&3)"
  899. send "&c生命值: &f%round(player's health / player's max health * (player's max health * 2 + {飾品狀態.%player%::血量增加}))%/%round(player's max health * 2 + {飾品狀態.%player%::血量增加})% &f&l爆擊率: &f%{玩家資料.%player%::爆擊率} + {_boom}% "
  900. send "&E力量 &6[%{玩家資料.%player%::力量}% + %{飾品狀態.%player%::力量}%] "
  901. send "&e智慧 &b[%{玩家資料.%player%::智慧}% + %{飾品狀態.%player%::智慧}%] "
  902. send "&e敏捷 &a[%{玩家資料.%player%::敏捷}% + %{飾品狀態.%player%::敏捷}%] "
  903. send "&e幸運 &2[%{玩家資料.%player%::幸運}% + %{飾品狀態.%player%::幸運}%] " to player
  904. if {玩家資料.%player%::經驗卷時間} is set:
  905. send ""
  906. set {_內容} to floor({玩家資料.%player%::經驗卷時間} / 60)
  907. if {_內容} is equal to 0:
  908. set {_內容} to "%{玩家資料.%player%::經驗卷時間}%秒"
  909. else if {_內容} is more than or equal to 3600:
  910. set {_內容} to "%floor({玩家資料.%player%::經驗卷時間} / 3600)%小時%floor({玩家資料.%player%::經驗卷時間} / 60) - 3600%分鐘"
  911. else:
  912. set {_內容} to "%floor({玩家資料.%player%::經驗卷時間} / 60)%分鐘"
  913. send "&e經驗獲得倍率: &2%({玩家資料.%player%::經驗卷} + 1) * 100%%% &e剩餘時間預計: &f%{_內容}%"
  914. if {玩家資料.%player%::屬性點} is more than or equal to 1:
  915. send "&e剩下屬性點數: &F%{玩家資料.%player%::屬性點}%"
  916. send json of "&f- 還有未分配的屬性點... &a[點此分配]" run "/stats" to player
  917. command /show:
  918. trigger:
  919. if player's tool is empty:
  920. send "不要秀出你的男/女朋友啦...."
  921. stop
  922. if name of player's tool contains "公告卷":
  923. send "手上持有公告卷時無法發公告"
  924. stop
  925. set {_loop} to 0
  926. loop 3 times:
  927. loop all items in player's inventory:
  928. if name of loop-item contains "公告卷":
  929. set {_save} to loop-item
  930. remove 1 of loop-item from player's inventory
  931. add 1 to {_loop}
  932. if {_loop} is 3:
  933. log "%player% 用 道具 秀出了一次物品 。%now%" to "秀出記錄.log"
  934. set {_lore.%player%::*} to lore of player's tool split at "||"
  935. send "&a玩家 %player% &d秀出物品 :" to all players
  936. set {_name} to "%name of player's tool%"
  937. if {_name} contains "none":
  938. set {_name} to type of player's tool
  939. set {_id} to id of player's tool
  940. set {_datavalue} to data value of player's tool
  941. send "&b物品名:&f %{_name}% &f(#%{_id}%:%{_datavalue}%)" to all players
  942. loop {_lore.%player%::*}:
  943. send " &f%loop-value%" to all players
  944. stop
  945. else:
  946. give {_loop} of {_save} to player
  947. if {money::%player%} is more than or equal to 1500:
  948. remove 1500 from {money::%player%}
  949. log "%player% 用 錢 秀出了一次物品 。%now%" to "秀出記錄.log"
  950. set {_lore.%player%::*} to lore of player's tool split at "||"
  951. send "&a玩家 %player% &d秀出物品 :" to all players
  952. set {_name} to "%name of player's tool%"
  953. if {_name} contains "none":
  954. set {_name} to type of player's tool
  955. set {_id} to id of player's tool
  956. set {_datavalue} to data value of player's tool
  957. send "&b物品名:&f %{_name}% &f(#%{_id}%:%{_datavalue}%)" to all players
  958. loop {_lore.%player%::*}:
  959. send " &f%loop-value%" to all players
  960. send "&a已投入十五銀到來放公告" to player
  961. else:
  962. execute player command "/money"
  963. send "&6你摸了摸口袋,你的錢完全不夠十五銀放公告吖(・ω・')" to player
  964. on damage:
  965. if {復活手續.%victim%} is set:
  966. cancel event
  967. if {復活手續.%attacker%} is set:
  968. cancel event
  969. on damage:
  970. if attacker is a player:
  971. if attacker has invisibility:
  972. cancel event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement