kama6012

Modifier

Sep 21st, 2018
351
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.89 KB | None | 0 0
  1. command /modf [<player>] [<number>]:
  2. permission:admin
  3. trigger:
  4. if arg 2 exist:
  5. set {_n} to arg 2
  6. else:
  7. set {_n} to 1
  8. set {_a} to 1 401 named "§6Custom Fireworks"
  9. if arg 1 exist:
  10. loop {_n} times:
  11. give {_a} to arg 1
  12. else:
  13. loop {_n} times:
  14. give {_a} to player
  15.  
  16. command /enchf [<player>] [<number>]:
  17. permission:admin
  18. trigger:
  19. if arg 2 exist:
  20. set {_n} to arg 2
  21. else:
  22. set {_n} to 1
  23. set {_a} to 1 401 named "§5Enchant Fireworks"
  24. if arg 1 exist:
  25. loop {_n} times:
  26. give {_a} to arg 1
  27. else:
  28. loop {_n} times:
  29. give {_a} to player
  30.  
  31. command /uf [<player>] [<number>]:
  32. permission:admin
  33. trigger:
  34. if arg 2 exist:
  35. set {_n} to arg 2
  36. else:
  37. set {_n} to 1
  38. set {_a} to 1 401 named "§8Unbreaking Fireworks"
  39. if arg 1 exist:
  40. loop {_n} times:
  41. give {_a} to arg 1
  42. else:
  43. loop {_n} times:
  44. give {_a} to player
  45.  
  46.  
  47. on right click:
  48. player's tool's name contains "Firework"
  49. cancel event
  50. if player's tool's name is "§8Unbreaking Fireworks":
  51. if {UF} is 0:
  52. loop all items in player's inventory:
  53. if name of loop-item is "§8Unbreaking Fireworks":
  54. remove 1 of loop-item from player
  55. broadcast "&f[Announce-Gunlife]&a%player% が保護花火を使いました!"
  56. broadcast "&a5分間、改造、エンチャント時に武器が消滅する確率が "
  57. broadcast "&a半分(10%→5%)になります!"
  58. set {UF} to 1
  59. wait 300 seconds
  60. set {UF} to 0
  61. broadcast "&f[Announce-Gunlife]&a保護花火の効果が切れました"
  62. else if {UF} is 1:
  63. message "&7現在、すでに保護花火の効果が発動しています。"
  64. message "&7効果が切れてから再度お試しください。"
  65. else:
  66. message "&f問題が発生しました。(エラー:保護花火の変数が無効な数値) もう一度お試しください。"
  67. set {UF} to 0
  68. else if player's tool's name is "§5Enchant Fireworks":
  69. if {EnchF} is 0:
  70. loop all items in player's inventory:
  71. if name of loop-item is "§5Enchant Fireworks":
  72. remove 1 of loop-item from player
  73. broadcast "&f[Announce-Gunlife]&a%player% が魔法花火を使いました!"
  74. broadcast "&a5分間の間 エンチャントレベルⅢの"
  75. broadcast "&a付与確率が5倍(0.3%→1.5%)になります!"
  76. set {EnchF} to 1
  77. wait 300 seconds
  78. set {EnchF} to 0
  79. broadcast "&f[Announce-Gunlife]&a魔法花火の効果が切れました"
  80. else if {EnchF} is 1:
  81. message "&7現在、すでに魔法花火の効果が発動しています。"
  82. message "&7効果が切れてから再度お試しください。"
  83. else:
  84. message "&f問題が発生しました。(エラー:魔法花火の変数が無効な数値) もう一度お試しください。"
  85. set {EnchF} to 0
  86. else if player's tool's name is "§6Custom Fireworks":
  87. if {ModF} is 0:
  88. loop all items in player's inventory:
  89. if name of loop-item is "§6Custom Fireworks":
  90. remove 1 of loop-item from player
  91. broadcast "&f[Announce-Gunlife]&a%player% が改造花火を使いました!"
  92. broadcast "&a5分間の間 改造レベルⅢの"
  93. broadcast "&a付与確率が5倍(0.3%→1.5%)になります!"
  94. set {ModF} to 1
  95. wait 300 seconds
  96. set {ModF} to 0
  97. broadcast "&f[Announce-Gunlife]&a改造花火の効果が切れました"
  98. else if {ModF} is 1:
  99. message "&7現在、すでに改造花火の効果が発動しています。"
  100. message "&7効果が切れてから再度お試しください。"
  101. else:
  102. message "&f問題が発生しました。(エラー:改造花火の変数が無効な数値) もう一度お試しください。"
  103. set {ModF} to 0
  104. command /editlore <number> <text>:
  105. permission:admin
  106. trigger:
  107. set line arg 1 of player's tool's lore to colored arg 2
  108.  
  109. command /deletelore <number> [<text>]:
  110. trigger:
  111. if line arg 1 of player's tool's lore contains "Ⅲ":
  112. if arg 2 is "confirm":
  113. set line arg 1 of player's tool's lore to " "
  114. broadcast "&7%player%がレベルⅢを消去しました!もったいない!"
  115. else:
  116. message "&7レベルⅢを消そうとしています!/deletelore %arg 1% confirm で確定してください。"
  117. else:
  118. set line arg 1 of player's tool's lore to " "
  119. message "&7正常に消去しました。"
  120. command /money [<number>]:
  121. trigger:
  122. if arg 1 exist:
  123. {money::%player%} + 1 is bigger than arg
  124. add arg 1 of {moneyitem} to player's inventory
  125. set {money::%player%} to {money::%player%} - arg 1
  126. message "&f%arg 1%個のCoinを引き出しました。残り%{money::%player%}%Coinです。"
  127. else:
  128. message "&fあなたの通帳には現在%{money::%player%}%Coinあります。"
  129. command /moneyedit <text> <player> [<number>]:
  130. permission: admin
  131. trigger:
  132. if arg 1 is "set":
  133. arg 3 exist
  134. set {money::%arg 2%} to arg 3
  135. else if arg 1 is "give":
  136. arg 3 exist
  137. set {money::%arg 2%} to {money::%arg 2%} + arg 3
  138. else if arg 1 is "check":
  139. message "&7[Admin_Check]%arg 2%の所持金は%{money::%arg 2%}%です"
  140. else if arg 1 is "coin":
  141. set {moneyitem} to player's tool
  142. on join:
  143. set {menu::%player%} to 0
  144. on inventory close:
  145. set {menu::%player%} to 0
  146. on right click on anvil:
  147. cancel event
  148. if block under block is iron block:
  149. open chest with 0 row named "&6ModifyMenu" to player
  150. set {menu::%player%} to 1
  151. else if block under block is diamond block:
  152. open chest with 0 row named "&6OverModifyMenu" to player
  153. set {menu::%player%} to 3
  154. on right click on enchantment table:
  155. cancel event
  156. if block under block is iron block:
  157. open chest with 0 row named "&5EnchMenu" to player
  158. set {menu::%player%} to 2
  159. else if block under block is diamond block:
  160. open chest with 0 row named "&5OverEnchMenu" to player
  161. set {menu::%player%} to 4
  162.  
  163. function Enchant(p:player, one:number, two:number, three:number,break:number) :: number:
  164. set {_enchg} to random integer between 1 and 1000
  165. if {_enchg} is between 1 and {_one}:
  166. return 1
  167. else if {_enchg} is between {_one}+1 and {_two}:
  168. return 2
  169. else if {_enchg} is between {_two}+1 and {_three}:
  170. return 3
  171. else if {_enchg} is between {_three}+1 and {_break}:
  172. return 4
  173. stop
  174. function GeneralModify(p : player,i : item,l : number) :: text:
  175. if {ModF} is 0:
  176. if {UF} is 0:
  177. set {_Ench} to Enchant({_p}, 850,897,900,1000)
  178. else:
  179. set {_Ench} to Enchant({_p}, 900,947,950,1000)
  180. else:
  181. if {UF} is 0:
  182. set {_Ench} to Enchant({_p},840,885,900,1000)
  183. else:
  184. set {_Ench} to Enchant({_p},890,935,950,1000)
  185. if {_Ench} is 1:
  186. set {_color} to "b"
  187. set {_rank} to "Ⅰ"
  188. else if {_Ench} is 2:
  189. set {_color} to "9"
  190. set {_rank} to "Ⅱ"
  191. else if {_Ench} is 3:
  192. broadcast "&6&l%{_p}%さんが改造レベルⅢを出しました!"
  193. set {_color} to "6"
  194. set {_rank} to "Ⅲ"
  195. else if {_Ench} is 4:
  196. remove 1 of {enchi.%{_p}%} from {_p}
  197. stop
  198. set {_ench} to random integer between 1 and 12
  199. if {_ench} is 1:
  200. return "§%{_color}%Strength Mod %{_rank}%"
  201. if {_ench} is 2:
  202. return "§%{_color}%LastResurrection Mod %{_rank}%"
  203. if {_ench} is 3:
  204. return "§%{_color}%Dash Mod %{_rank}%"
  205. if {_ench} is 4:
  206. return "§%{_color}%HyperFlash Mod %{_rank}%"
  207. if {_ench} is 5:
  208. return "§%{_color}%Stealth Mod %{_rank}%"
  209. if {_ench} is 6:
  210. return "§%{_color}%Heal Mod %{_rank}%"
  211. if {_ench} is 7:
  212. return "§%{_color}%Kill Mod %{_rank}%"
  213. if {_ench} is 8:
  214. return "§%{_color}%Poison Mod %{_rank}%"
  215. if {_ench} is 9:
  216. return "§%{_color}%Storm Mod %{_rank}%"
  217. if {_ench} is 10:
  218. return "§%{_color}%Shield Mod %{_rank}%"
  219. if {_ench} is 11:
  220. return "§%{_color}%Hard Mod %{_rank}%"
  221. stop
  222. function GeneralEnchant(p:player, i:item, l:number) :: text:
  223. if {EnchF} is 0:
  224. if {UF} is 0:
  225. set {_Ench} to Enchant({_p},850,897,900,1000)
  226. else:
  227. set {_Ench} to Enchant({_p},900,947,950,1000)
  228. else:
  229. if {UF} is 0:
  230. set {_Ench} to Enchant({_p},840,885,900,1000)
  231. else:
  232. set {_Ench} to Enchant({_p},890,935,950,1000)
  233. if {_Ench} is 1:
  234. set {_color} to "a"
  235. set {_rank} to "Ⅰ"
  236. else if {_Ench} is 2:
  237. set {_color} to "c"
  238. set {_rank} to "Ⅱ"
  239. else if {_Ench} is 3:
  240. broadcast "&5&l%{_p}%さんがエンチャントレベルⅢを出しました!"
  241. set {_color} to "5"
  242. set {_rank} to "Ⅲ"
  243. else if {_Ench} is 4:
  244. remove 1 of {enchi.%{_p}%} from {_p}
  245. stop
  246. set {_ench} to random integer between 1 and 11
  247. if {_ench} is 1:
  248. return "§%{_color}%Sniper Life %{_rank}%"
  249. if {_ench} is 2:
  250. return "§%{_color}%Protect %{_rank}%"
  251. if {_ench} is 3:
  252. return "§%{_color}%Fire Damage %{_rank}%"
  253. if {_ench} is 4:
  254. return "§%{_color}%Death Fight %{_rank}%"
  255. if {_ench} is 5:
  256. return "§%{_color}%Light Damage %{_rank}%"
  257. if {_ench} is 6:
  258. return "§%{_color}%Dark Damage %{_rank}%"
  259. if {_ench} is 7:
  260. return "§%{_color}%Heal Hit %{_rank}%"
  261. if {_ench} is 8:
  262. return "§%{_color}%Speed Down %{_rank}%"
  263. if {_ench} is 9:
  264. return "§%{_color}%Speed Run %{_rank}%"
  265. if {_ench} is 10:
  266. return "§%{_color}%Small Wall %{_rank}%"
  267. if {_ench} is 11:
  268. return "§%{_color}%Magical Flash %{_rank}%"
  269. stop
  270. on inventory click:
  271. {menu::%player%} isn't 0
  272. clicked item is diamond axe or feather or stick
  273. cancel event
  274. if {menu::%player%} is 1:
  275. set {enchi.%player%} to clicked item
  276. if line 1 of clicked item's lore contains "Ⅲ":
  277. stop
  278. loop all items in player's inventory:
  279. if name of loop-item is "&fNormalToolKit":
  280. remove 1 of loop-item from player
  281. set line 1 of lore of clicked item to GeneralModify(player,clicked item,1)
  282. stop
  283. if {menu::%player%} is 2:
  284. set {enchi.%player%} to clicked item
  285. if line 2 of clicked item's lore contains "Ⅲ":
  286. stop
  287. loop all items in player's inventory:
  288. if name of loop-item is "&fNormalEnchStone":
  289. remove 1 of loop-item from player
  290. set line 2 of lore of clicked item to GeneralEnchant(player,clicked item,2)
  291. stop
  292. if {menu::%player%} is 3:
  293. set {enchi.%player%} to clicked item
  294. if line 3 of clicked item's lore contains "Ⅲ":
  295. stop
  296. loop all items in player's inventory:
  297. if name of loop-item is "&fOverToolKit":
  298. remove 1 of loop-item from player
  299. set line 3 of lore of clicked item to GeneralModify(player,clicked item,3)
  300. stop
  301. else if {menu::%player%} is 4:
  302. set {enchi.%player%} to clicked item
  303. if line 4 of clicked item's lore contains "Ⅲ":
  304. stop
  305. loop all items in player's inventory:
  306. if name of loop-item is "&fOverEnchStone":
  307. remove 1 of loop-item from player
  308. set line 4 of lore of clicked item to GeneralEnchant(player,clicked item,4)
  309. stop
  310. on damage:
  311. set maximum damage delay of victim to 0 tick
  312. if line 2 of attacker's tool's lore contains "Sniper Life":
  313. if line 2 of attacker's tool's lore contains "Sniper Life Ⅰ":
  314. chance of 10%
  315. heal attacker by 2.5
  316. else if line 2 of attacker's tool's lore contains "Sniper Life Ⅱ":
  317. chance of 25%
  318. heal attacker by 2.5
  319. else if line 2 of attacker's tool's lore contains "Sniper Life Ⅲ":
  320. chance of 30%
  321. heal attacker by 2.5
  322.  
  323. if line 2 of attacker's tool's lore contains "Heal Hit":
  324. if line 2 of attacker's tool's lore contains "Heal Hit Ⅰ":
  325. chance of 20%
  326. heal attacker by 2.5
  327. else if line 2 of attacker's tool's lore contains "Heal Hit Ⅱ":
  328. chance of 30%
  329. heal attacker by 2.5
  330. else if line 2 of attacker's tool's lore contains "Heal Hit Ⅲ":
  331. chance of 45%
  332. heal attacker by 2.5
  333.  
  334. if line 2 of attacker's tool's lore contains "Speed Run":
  335. if line 2 of attacker's tool's lore contains "Speed Run Ⅰ":
  336. chance of 50%
  337. apply SPEED 1 to attacker for 5 second
  338. else if line 2 of attacker's tool's lore contains "Speed Run Ⅱ":
  339. chance of 75%
  340. apply SPEED 1 to attacker for 5 second
  341. else if line 2 of attacker's tool's lore contains "Speed Run Ⅲ":
  342. chance of 90%
  343. apply SPEED 2 to attacker for 5 second
  344.  
  345. if line 2 of attacker's tool's lore contains "Fire Damage":
  346. if line 2 of attacker's tool's lore contains "Fire Damage Ⅰ":
  347. chance of 25%
  348. ignite victim for 3 second
  349. else if line 2 of attacker's tool's lore contains "Fire Damage Ⅱ":
  350. chance of 25%
  351. ignite victim for 5 second
  352. else if line 2 of attacker's tool's lore contains "Fire Damage Ⅲ":
  353. chance of 25%
  354. ignite victim for 6 second
  355.  
  356. if line 2 of attacker's tool's lore contains "Speed Down":
  357. if line 2 of attacker's tool's lore contains "Speed Down Ⅰ":
  358. chance of 10%
  359. apply SLOW 1 to victim for 5 second
  360. else if line 2 of attacker's tool's lore contains "Speed Down Ⅱ":
  361. chance of 15%
  362. apply SLOW 1 to victim for 5 second
  363. else if line 2 of attacker's tool's lore contains "Speed Down Ⅲ":
  364. chance of 20%
  365. apply SLOW 1 to victim for 5 second
  366.  
  367. if line 2 of attacker's tool's lore contains "Magical Flash":
  368. if line 2 of attacker's tool's lore contains "Magical Flash Ⅰ":
  369. chance of 40%
  370. apply GLOWING 1 to victim for 10 seconds
  371. else if line 2 of attacker's tool's lore contains "Magical Flash Ⅱ":
  372. chance of 50%
  373. apply GLOWING 1 to victim for 10 seconds
  374. else if line 2 of attacker's tool's lore contains "Magical Flash Ⅲ":
  375. chance of 60%
  376. apply GLOWING 1 to victim for 10 seconds
  377.  
  378. if line 2 of attacker's tool's lore contains "Death Fight":
  379. if line 2 of attacker's tool's lore contains "Death Fight Ⅰ":
  380. chance of 1%
  381. kill victim
  382. else if line 2 of attacker's tool's lore contains "Death Fight Ⅱ":
  383. chance of 2%
  384. kill victim
  385. else if line 2 of attacker's tool's lore contains "Death Fight Ⅲ":
  386. chance of 3%
  387. kill victim
  388.  
  389. if line 4 of attacker's tool's lore contains "Sniper Life":
  390. if line 4 of attacker's tool's lore contains "Sniper Life Ⅰ":
  391. chance of 10%
  392. heal attacker by 2.5
  393. else if line 4 of attacker's tool's lore contains "Sniper Life Ⅱ":
  394. chance of 25%
  395. heal attacker by 2.5
  396. else if line 4 of attacker's tool's lore contains "Sniper Life Ⅲ":
  397. chance of 30%
  398. heal attacker by 2.5
  399.  
  400. if line 4 of attacker's tool's lore contains "Heal Hit":
  401. if line 4 of attacker's tool's lore contains "Heal Hit Ⅰ":
  402. chance of 20%
  403. heal attacker by 2.5
  404. else if line 4 of attacker's tool's lore contains "Heal Hit Ⅱ":
  405. chance of 30%
  406. heal attacker by 2.5
  407. else if line 4 of attacker's tool's lore contains "Heal Hit Ⅲ":
  408. chance of 45%
  409. heal attacker by 2.5
  410.  
  411. if line 4 of attacker's tool's lore contains "Speed Run":
  412. if line 4 of attacker's tool's lore contains "Speed Run Ⅰ":
  413. chance of 50%
  414. apply SPEED 1 to attacker for 5 second
  415. else if line 4 of attacker's tool's lore contains "Speed Run Ⅱ":
  416. chance of 75%
  417. apply SPEED 1 to attacker for 5 second
  418. else if line 4 of attacker's tool's lore contains "Speed Run Ⅲ":
  419. chance of 90%
  420. apply SPEED 2 to attacker for 5 second
  421.  
  422. if line 4 of attacker's tool's lore contains "Fire Damage":
  423. if line 4 of attacker's tool's lore contains "Fire Damage Ⅰ":
  424. chance of 25%
  425. ignite victim for 3 second
  426. else if line 4 of attacker's tool's lore contains "Fire Damage Ⅱ":
  427. chance of 25%
  428. ignite victim for 5 second
  429. else if line 4 of attacker's tool's lore contains "Fire Damage Ⅲ":
  430. chance of 25%
  431. ignite victim for 6 second
  432.  
  433. if line 4 of attacker's tool's lore contains "Speed Down":
  434. if line 4 of attacker's tool's lore contains "Speed Down Ⅰ":
  435. chance of 10%
  436. apply SLOW 1 to victim for 5 second
  437. else if line 4 of attacker's tool's lore contains "Speed Down Ⅱ":
  438. chance of 15%
  439. apply SLOW 1 to victim for 5 second
  440. else if line 4 of attacker's tool's lore contains "Speed Down Ⅲ":
  441. chance of 20%
  442. apply SLOW 1 to victim for 5 second
  443.  
  444. if line 4 of attacker's tool's lore contains "Magical Flash":
  445. if line 4 of attacker's tool's lore contains "Magical Flash Ⅰ":
  446. chance of 40%
  447. apply GLOWING 1 to victim for 10 seconds
  448. else if line 4 of attacker's tool's lore contains "Magical Flash Ⅱ":
  449. chance of 50%
  450. apply GLOWING 1 to victim for 10 seconds
  451. else if line 4 of attacker's tool's lore contains "Magical Flash Ⅲ":
  452. chance of 60%
  453. apply GLOWING 1 to victim for 10 seconds
  454.  
  455. if line 4 of attacker's tool's lore contains "Death Fight":
  456. if line 4 of attacker's tool's lore contains "Death Fight Ⅰ":
  457. chance of 1%
  458. kill victim
  459. else if line 4 of attacker's tool's lore contains "Death Fight Ⅱ":
  460. chance of 2%
  461. kill victim
  462. else if line 4 of attacker's tool's lore contains "Death Fight Ⅲ":
  463. chance of 3%
  464. kill victim
  465.  
  466.  
  467. if line 2 of victim's tool's lore contains "Protect":
  468. if line 2 of victim's tool's lore contains "Protect Ⅰ":
  469. chance of 5%
  470. cancel event
  471. stop
  472. else if line 2 of victim's tool's lore contains "Protect Ⅱ":
  473. chance of 10%
  474. cancel event
  475. stop
  476. else if line 2 of victim's tool's lore contains "Protect Ⅲ":
  477. chance of 15%
  478. cancel event
  479. stop
  480. if line 4 of victim's tool's lore contains "Protect":
  481. if line 4 of victim's tool's lore contains "Protect Ⅰ":
  482. chance of 5%
  483. cancel event
  484. stop
  485. else if line 4 of victim's tool's lore contains "Protect Ⅱ":
  486. chance of 10%
  487. cancel event
  488. stop
  489. else if line 4 of victim's tool's lore contains "Protect Ⅲ":
  490. chance of 15%
  491. cancel event
  492. stop
  493.  
  494. if line 2 of attacker's tool's lore contains "Light Damage":
  495. if line 2 of attacker's tool's lore contains "Light Damage Ⅰ":
  496. chance of 60%
  497. increase the damage by 2
  498. else if line 2 of attacker's tool's lore contains "Light Damage Ⅱ":
  499. chance of 75%
  500. increase the damage by 2
  501. else if line 2 of attacker's tool's lore contains "Light Damage Ⅲ":
  502. chance of 80%
  503. increase the damage by 2
  504.  
  505. if line 2 of attacker's tool's lore contains "Dark Damage":
  506. if line 2 of attacker's tool's lore contains "Dark Damage Ⅰ":
  507. chance of 10%
  508. increase the damage by 4
  509. else if line 2 of attacker's tool's lore contains "Dark Damage Ⅱ":
  510. chance of 20%
  511. increase the damage by 4
  512. else if line 2 of attacker's tool's lore contains "Dark Damage Ⅲ":
  513. chance of 30%
  514. increase the damage by 4
  515.  
  516. if line 4 of attacker's tool's lore contains "Light Damage":
  517. if line 4 of attacker's tool's lore contains "Light Damage Ⅰ":
  518. chance of 60%
  519. increase the damage by 2
  520. else if line 4 of attacker's tool's lore contains "Light Damage Ⅱ":
  521. chance of 75%
  522. increase the damage by 2
  523. else if line 4 of attacker's tool's lore contains "Light Damage Ⅲ":
  524. chance of 80%
  525. increase the damage by 2
  526.  
  527. if line 4 of attacker's tool's lore contains "Dark Damage":
  528. if line 4 of attacker's tool's lore contains "Dark Damage Ⅰ":
  529. chance of 10%
  530. increase the damage by 4
  531. else if line 4 of attacker's tool's lore contains "Dark Damage Ⅱ":
  532. chance of 20%
  533. increase the damage by 4
  534. else if line 4 of attacker's tool's lore contains "Dark Damage Ⅲ":
  535. chance of 30%
  536. increase the damage by 4
  537.  
  538. if line 2 of victim's tool's lore contains "Small Wall":
  539. if line 2 of victim's tool's lore contains "Small Wall Ⅰ":
  540. chance of 50%
  541. set the damage to damage/2
  542. else if line 2 of victim's tool's lore contains "Small Wall Ⅱ":
  543. chance of 60%
  544. set the damage to damage/2
  545. else if line 2 of victim's tool's lore contains "Small Wall Ⅲ":
  546. chance of 80%
  547. set the damage to damage/2
  548.  
  549. if line 4 of victim's tool's lore contains "Small Wall":
  550. if line 4 of victim's tool's lore contains "Small Wall Ⅰ":
  551. chance of 50%
  552. set the damage to damage/2
  553. else if line 4 of victim's tool's lore contains "Small Wall Ⅱ":
  554. chance of 60%
  555. set the damage to damage/2
  556. else if line 4 of victim's tool's lore contains "Small Wall Ⅲ":
  557. chance of 80%
  558. set the damage to damage/2
  559.  
  560. if line 1 of attacker's tool's lore contains "Strength Mod":
  561. if line 1 of attacker's tool's lore contains "Strength Mod Ⅰ":
  562. set the damage to damage + 0.5
  563. else if line 1 of attacker's tool's lore contains "Strength Mod Ⅱ":
  564. set the damage to damage + 1
  565. else if line 1 of attacker's tool's lore contains "Strength Mod Ⅲ":
  566. set the damage to damage + 1.5
  567.  
  568. if line 1 of attacker's tool's lore contains "Heal Mod":
  569. if line 1 of attacker's tool's lore contains "Heal Mod Ⅰ":
  570. chance of 20%
  571. heal attacker by 3
  572. else if line 1 of attacker's tool's lore contains "Heal Mod Ⅱ":
  573. chance of 30%
  574. heal attacker by 3
  575. else if line 1 of attacker's tool's lore contains "Heal Mod Ⅲ":
  576. chance of 40%
  577. heal attacker by 3
  578.  
  579. if line 1 of victim's tool's lore contains "Shield Mod":
  580. if line 1 of victim's tool's lore contains "Shield Mod Ⅰ":
  581. chance of 60%
  582. set the damage to damage - 2
  583. else if line 1 of victim's tool's lore contains "Shield Mod Ⅱ":
  584. chance of 70%
  585. set the damage to damage - 2
  586. else if line 1 of victim's tool's lore contains "Shield Mod Ⅲ":
  587. chance of 80%
  588. set the damage to damage - 2
  589.  
  590. if line 1 of attacker's tool's lore contains "Hard Mod":
  591. if line 1 of attacker's tool's lore contains "Hard Mod Ⅰ":
  592. damage attacker by 0.5
  593. chance of 80%
  594. set the damage to damage + 3
  595. else if line 1 of attacker's tool's lore contains "Hard Mod Ⅱ":
  596. damage attacker by 0.5
  597. chance of 90%
  598. set the damage to damage + 3
  599. else if line 1 of attacker's tool's lore contains "Hard Mod Ⅲ":
  600. damage attacker by 0.5
  601. chance of 100%
  602. set the damage to damage + 3
  603.  
  604. if line 1 of attacker's tool's lore contains "HyperFlash Mod":
  605. if line 1 of attacker's tool's lore contains "HyperFlash Mod Ⅰ":
  606. chance of 30%
  607. apply GLOWING 1 to victim for 15 seconds
  608. else if line 1 of attacker's tool's lore contains "HyperFlash Mod Ⅱ":
  609. chance of 40%
  610. apply GLOWING 1 to victim for 15 seconds
  611. else if line 1 of attacker's tool's lore contains "HyperFlash Mod Ⅲ":
  612. chance of 50%
  613. apply GLOWING 1 to victim for 15 seconds
  614.  
  615. if line 1 of attacker's tool's lore contains "Poison Mod":
  616. if line 1 of attacker's tool's lore contains "Poison Mod Ⅰ":
  617. chance of 10%
  618. poison the victim for 5 second
  619. else if line 1 of attacker's tool's lore contains "Poison Mod Ⅱ":
  620. chance of 20%
  621. poison the victim for 5 second
  622. else if line 1 of attacker's tool's lore contains "Poison Mod Ⅲ":
  623. chance of 35%
  624. poison the victim for 5 second
  625.  
  626. if line 1 of attacker's tool's lore contains "Storm Mod":
  627. if line 1 of attacker's tool's lore contains "Storm Mod Ⅰ":
  628. chance of 20%
  629. apply LEVITATION 1 to victim for 5 seconds
  630. else if line 1 of attacker's tool's lore contains "Storm Mod Ⅱ":
  631. chance of 25%
  632. apply LEVITATION 1 to victim for 5 seconds
  633. else if line 1 of attacker's tool's lore contains "Storm Mod Ⅲ":
  634. chance of 35%
  635. apply LEVITATION 1 to victim for 5 seconds
  636.  
  637. if line 1 of attacker's tool's lore contains "Stealth Mod":
  638. if line 1 of attacker's tool's lore contains "Stealth Mod Ⅰ":
  639. chance of 10%
  640. apply INVISIBILITY 1 to attacker for 2 seconds
  641. else if line 1 of attacker's tool's lore contains "Stealth Mod Ⅱ":
  642. chance of 20%
  643. apply INVISIBILITY 1 to attacker for 2 seconds
  644. else if line 1 of attacker's tool's lore contains "Stealth Mod Ⅲ":
  645. chance of 30%
  646. apply INVISIBILITY 1 to attacker for 2 seconds
  647.  
  648.  
  649. if line 3 of attacker's tool's lore contains "Strength Mod":
  650. if line 3 of attacker's tool's lore contains "Strength Mod Ⅰ":
  651. set the damage to damage + 0.5
  652. else if line 3 of attacker's tool's lore contains "Strength Mod Ⅱ":
  653. set the damage to damage + 1
  654. else if line 3 of attacker's tool's lore contains "Strength Mod Ⅲ":
  655. set the damage to damage + 1.5
  656.  
  657. if line 3 of attacker's tool's lore contains "Heal Mod":
  658. if line 3 of attacker's tool's lore contains "Heal Mod Ⅰ":
  659. chance of 20%
  660. heal attacker by 3
  661. else if line 3 of attacker's tool's lore contains "Heal Mod Ⅱ":
  662. chance of 30%
  663. heal attacker by 3
  664. else if line 3 of attacker's tool's lore contains "Heal Mod Ⅲ":
  665. chance of 40%
  666. heal attacker by 3
  667.  
  668. if line 3 of victim's tool's lore contains "Shield Mod":
  669. if line 3 of victim's tool's lore contains "Shield Mod Ⅰ":
  670. chance of 60%
  671. set the damage to damage - 2
  672. else if line 3 of victim's tool's lore contains "Shield Mod Ⅱ":
  673. chance of 70%
  674. set the damage to damage - 2
  675. else if line 3 of victim's tool's lore contains "Shield Mod Ⅲ":
  676. chance of 80%
  677. set the damage to damage - 2
  678.  
  679. if line 3 of attacker's tool's lore contains "Hard Mod":
  680. if line 3 of attacker's tool's lore contains "Hard Mod Ⅰ":
  681. damage attacker by 0.5
  682. chance of 80%
  683. set the damage to damage + 3
  684. else if line 3 of attacker's tool's lore contains "Hard Mod Ⅱ":
  685. damage attacker by 0.5
  686. chance of 90%
  687. set the damage to damage + 3
  688. else if line 3 of attacker's tool's lore contains "Hard Mod Ⅲ":
  689. damage attacker by 0.5
  690. chance of 100%
  691. set the damage to damage + 3
  692.  
  693. if line 3 of attacker's tool's lore contains "HyperFlash Mod":
  694. if line 3 of attacker's tool's lore contains "HyperFlash Mod Ⅰ":
  695. chance of 30%
  696. apply GLOWING 1 to victim for 15 seconds
  697. else if line 3 of attacker's tool's lore contains "HyperFlash Mod Ⅱ":
  698. chance of 40%
  699. apply GLOWING 1 to victim for 15 seconds
  700. else if line 3 of attacker's tool's lore contains "HyperFlash Mod Ⅲ":
  701. chance of 50%
  702. apply GLOWING 1 to victim for 15 seconds
  703.  
  704. if line 3 of attacker's tool's lore contains "Poison Mod":
  705. if line 3 of attacker's tool's lore contains "Poison Mod Ⅰ":
  706. chance of 10%
  707. poison the victim for 5 second
  708. else if line 3 of attacker's tool's lore contains "Poison Mod Ⅱ":
  709. chance of 20%
  710. poison the victim for 5 second
  711. else if line 3 of attacker's tool's lore contains "Poison Mod Ⅲ":
  712. chance of 35%
  713. poison the victim for 5 second
  714.  
  715. if line 3 of attacker's tool's lore contains "Storm Mod":
  716. if line 3 of attacker's tool's lore contains "Storm Mod Ⅰ":
  717. chance of 20%
  718. apply LEVITATION 1 to victim for 5 seconds
  719. else if line 3 of attacker's tool's lore contains "Storm Mod Ⅱ":
  720. chance of 25%
  721. apply LEVITATION 1 to victim for 5 seconds
  722. else if line 3 of attacker's tool's lore contains "Storm Mod Ⅲ":
  723. chance of 35%
  724. apply LEVITATION 1 to victim for 5 seconds
  725.  
  726. if line 3 of attacker's tool's lore contains "Stealth Mod":
  727. if line 3 of attacker's tool's lore contains "Stealth Mod Ⅰ":
  728. chance of 10%
  729. apply INVISIBILITY 1 to attacker for 2 seconds
  730. else if line 3 of attacker's tool's lore contains "Stealth Mod Ⅱ":
  731. chance of 20%
  732. apply INVISIBILITY 1 to attacker for 2 seconds
  733. else if line 3 of attacker's tool's lore contains "Stealth Mod Ⅲ":
  734. chance of 30%
  735. apply INVISIBILITY 1 to attacker for 2 seconds
  736.  
  737. if line 1 of victim's tool's lore contains "LastResurrection Mod":
  738. (victim's health - damage) <0.1
  739. if line 1 of victim's tool's lore contains "LastResurrection Mod Ⅰ":
  740. chance of 50%
  741. cancel event
  742. set victim's health to 3
  743. else if line 1 of victim's tool's lore contains "LastResurrection Mod Ⅱ":
  744. chance of 60%
  745. cancel event
  746. set victim's health to 3
  747. else if line 1 of victim's tool's lore contains "LastResurrection Mod Ⅲ":
  748. chance of 75%
  749. cancel event
  750. set victim's health to 3
  751.  
  752. if line 3 of victim's tool's lore contains "LastResurrection Mod":
  753. (victim's health - damage) <0.1
  754. if line 3 of victim's tool's lore contains "LastResurrection Mod Ⅰ":
  755. chance of 50%
  756. cancel event
  757. set victim's health to 3
  758. else if line 3 of victim's tool's lore contains "LastResurrection Mod Ⅱ":
  759. chance of 60%
  760. cancel event
  761. set victim's health to 3
  762. else if line 3 of victim's tool's lore contains "LastResurrection Mod Ⅲ":
  763. chance of 75%
  764. cancel event
  765. set victim's health to 3
  766.  
  767. if line 1 of attacker's tool's lore contains "Kill Mod":
  768. (victim's health - damage) <0.1
  769. if line 1 of victim's tool's lore contains "Kill Mod Ⅰ":
  770. if chance of 8%:
  771. kill attacker
  772. else:
  773. heal attacker by 100
  774. else if line 1 of victim's tool's lore contains "Kill Mod Ⅱ":
  775. if chance of 6%:
  776. kill attacker
  777. else:
  778. heal attacker by 100
  779. else if line 1 of victim's tool's lore contains "Kill Mod Ⅲ":
  780. if chance of 5%:
  781. kill attacker
  782. else:
  783. heal attacker by 100
  784.  
  785. if line 3 of attacker's tool's lore contains "Kill Mod":
  786. (victim's health - damage) <0.1
  787. if line 3 of victim's tool's lore contains "Kill Mod Ⅰ":
  788. if chance of 8%:
  789. kill attacker
  790. else:
  791. heal attacker by 100
  792. else if line 3 of victim's tool's lore contains "Kill Mod Ⅱ":
  793. if chance of 6%:
  794. kill attacker
  795. else:
  796. heal attacker by 100
  797. else if line 3 of victim's tool's lore contains "Kill Mod Ⅲ":
  798. if chance of 5%:
  799. kill attacker
  800. else:
  801. heal attacker by 100
  802. set {_n} to victim
  803. set {lastattack::%{_n}%} to attacker
  804.  
  805. on death:
  806. broadcast "&akill [%{lastattack::%player%}%&a]---{&f%{lastattack::%player%}'s tool's name%&a}--> [%player%]"
  807. message "&bKill&7->&c&l+3Coin" to {lastattack::%player%}
  808. set {money::%{lastattack::%player%}%} to {money::%{lastattack::%player%}%} + 3
  809.  
  810. on respawn:
  811. set the maximum health of the player to 30
  812. heal player by 30
  813.  
  814. on tool change:
  815. set player's walk speed to 0.2
  816. if line 1 of player's tool's lore contains "Dash Mod":
  817. if player's tool isn't feather:
  818. if line 1 of player's tool's lore contains "Dash Mod Ⅰ":
  819. increase player's walk speed by 0.05
  820. else if line 1 of player's tool's lore contains "Dash Mod Ⅱ":
  821. increase player's walk speed by 0.1
  822. else if line 1 of player's tool's lore contains "Dash Mod Ⅲ":
  823. increase player's walk speed by 0.15
  824. else:
  825. if line 1 of player's tool's lore contains "Dash Mod Ⅰ":
  826. increase player's walk speed by 0.025
  827. else if line 1 of player's tool's lore contains "Dash Mod Ⅱ":
  828. increase player's walk speed by 0.05
  829. else if line 1 of player's tool's lore contains "Dash Mod Ⅲ":
  830. increase player's walk speed by 0.075
  831. if line 3 of player's tool's lore contains "Dash Mod":
  832. if player's tool isn't feather:
  833. if line 3 of player's tool's lore contains "Dash Mod Ⅰ":
  834. increase player's walk speed by 0.05
  835. else if line 3 of player's tool's lore contains "Dash Mod Ⅱ":
  836. increase player's walk speed by 0.1
  837. else if line 3 of player's tool's lore contains "Dash Mod Ⅲ":
  838. increase player's walk speed by 0.15
  839. else:
  840. if line 3 of player's tool's lore contains "Dash Mod Ⅰ":
  841. increase player's walk speed by 0.025
  842. else if line 3 of player's tool's lore contains "Dash Mod Ⅱ":
  843. increase player's walk speed by 0.05
  844. else if line 3 of player's tool's lore contains "Dash Mod Ⅲ":
  845. increase player's walk speed by 0.075
  846. on offhand move:
  847. set player's walk speed to 0.2
  848.  
  849. on load:
  850. give 1 gold ingot named "&fNormalToolKit" to all players
  851. give 1 iron ingot named "&fNormalEnchStone" to all players
  852. give 1 gold ingot named "&fOverToolKit" to all players
  853. give 1 iron ingot named "&fOverEnchStone" to all players
  854. set {ModF} to 0
  855. set {EnchF} to 0
  856. set {UF} to 0
  857. broadcast "&f&l[Gunlife]リロードが完了しました!お詫びとして改造アイテムを各一個配布いたしました。"
Advertisement
Add Comment
Please, Sign In to add comment