sirayasiki

exp

Apr 27th, 2019
357
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.46 KB | None | 0 0
  1. on damage:
  2. if {job::%attacker%} = 1:
  3. if attacker's tool is a sword:
  4. set damage to damage + {str::%attacker%}
  5. if attacker's tool is a axe:
  6. set damage to damage * 0.5 + {str::%attacker%} * 0.5
  7. if attacker's tool is a hoe:
  8. set damage to damage * 0.5 + {str::%attacker%} * 0.5
  9. if attacker's tool is a shovel:
  10. set damage to damage * 0.5 + {str::%attacker%} * 0.5
  11. if {job::%attacker%} = 2:
  12. if attacker's tool is a shovel:
  13. set {str1::%attacker%} to {str::%attacker%} * 0.6
  14. set damage to damage + {str1::%attacker%}
  15. if attacker's tool is a axe:
  16. set damage to damage * 0.5 + {str::%attacker%} * 0.5
  17. if attacker's tool is a hoe:
  18. set damage to damage * 0.5 + {str::%attacker%} * 0.5
  19. if attacker's tool is a sword:
  20. set damage to damage * 0.5 + {str::%attacker%} * 0.5
  21. if {job::%attacker%} = 3:
  22. if attacker's tool is a hoe:
  23. set {str1::%attacker%} to {str::%attacker%} * 1.5
  24. set damage to damage + {str1::%attacker%}
  25. if attacker's tool is a axe:
  26. set damage to damage * 0.5 + {str::%attacker%} * 0.5
  27. if attacker's tool is a shovel:
  28. set damage to damage * 0.5 + {str::%attacker%} * 0.5
  29. if attacker's tool is a sword:
  30. set damage to damage * 0.5 + {str::%attacker%} * 0.5
  31. if {job::%attacker%} = 4:
  32. if attacker's tool is a axe:
  33. set {str1::%attacker%} to {str::%attacker%} * 1.7
  34. set damage to damage + {str1::%attacker%}
  35. if attacker's tool is a hoe:
  36. set damage to damage * 0.5 + {str::%attacker%} * 0.5
  37. if attacker's tool is a shovel:
  38. set damage to damage * 0.5 + {str::%attacker%} * 0.5
  39. if attacker's tool is a sword:
  40. set damage to damage * 0.5 + {str::%attacker%} * 0.5
  41. every second in "world":
  42. loop all players:
  43. set the maximum health of the loop-player to 10 + {hp::%loop-player%} * 0.5
  44. on damage:
  45. victim is player:
  46. damage is caused by attack:
  47. set damage to damage - {vit::%victim%} * 0.5
  48.  
  49.  
  50.  
  51. on citizen right click:
  52. NPC is named is "&b&l剣士"
  53. set {job::%player%} to 1
  54. send "&b&l職業を剣士に変更しました" to player
  55. on citizen right click:
  56. NPC is named is "&b&l槍使い"
  57. set {job::%player%} to 2
  58. send "&b&l職業を槍使いに変更しました" to player
  59. on citizen right click:
  60. NPC is named is "&b&l大鎌使い"
  61. set {job::%player%} to 3
  62. send "&b&l職業を大鎌使いに変更しました" to player
  63. on citizen right click:
  64. NPC is named is "&b&l斧使い"
  65. set {job::%player%} to 4
  66. send "&b&l職業を斧使いに変更しました" to player
  67.  
  68. on citizen right click:
  69. NPC is named is "&a&l職業を確定"
  70. set {job1::%player%} to 1
  71. if {job::%player%} = 1:
  72. execute console command "/scoreboard players set %player% buki 1"
  73. teleport the player to {point}
  74. send "&b&l職業を確定しました" to player
  75. if {job::%player%} = 2:
  76. execute console command "/scoreboard players set %player% buki 2"
  77. send "&b&l職業を確定しました" to player
  78. teleport the player to {point}
  79. if {job::%player%} = 3:
  80. execute console command "/scoreboard players set %player% buki 3"
  81. send "&b&l職業を確定しました" to player
  82. teleport the player to {point}
  83. if {job::%player%} = 4:
  84. execute console command "/scoreboard players set %player% buki 4"
  85. teleport the player to {point}
  86. send "&b&l職業を確定しました" to player
  87. if {job::%player%} = 0:
  88. send "&C&l職業を選択してください!" to player
  89. on citizen right click:
  90. NPC is named is "&e&l職業を選択":
  91. if {job1::%player%} = 1:
  92. send "&c&lこれ以上職業は変更できません!" to player
  93. else:
  94. teleport the player to {job.point}
  95.  
  96.  
  97. on citizen right click:
  98. NPC is named is "&e&l始まりの村へ":
  99. if {job1::%player%} = 1:
  100. teleport the player to {point}
  101. if {job1::%player%} = 0:
  102. send "&c&l職業を選択して確定してください!" to player
  103.  
  104. on citizen right click:
  105. NPC is named is "&e&l骸骨散歩道へ":
  106. teleport the player to {point3}
  107.  
  108. on citizen right click:
  109. NPC is named is "&eイベントへ":
  110. teleport the player to {ivent}
  111. command /level <player> [<numbers>]:
  112. permission: op
  113. trigger:
  114. add arg 2 to {lv::%player%}
  115.  
  116.  
  117. command /exp <player> [<numbers>]:
  118. permission: op
  119. trigger:
  120. add arg 2 to {exp::%player%}
  121. command /reset <player>:
  122. permission: op
  123. trigger:
  124. set {exp::%player%} to 0
  125. set {exp1::%player%} to 0
  126. set {lv::%player%} to 0
  127. set {sp::%player%} to 0
  128. set {sp1::%player%} to 0
  129. set {hp::%player%} to 0
  130. set {str::%player%} to 0
  131. set {vit::%player%} to 0
  132. command /resetjob <player>:
  133. permission: op
  134. trigger:
  135. set {job1::%player%} to 0
  136.  
  137. every second in "world":
  138. loop all players:
  139. if {exp::%loop-player%} <= 104040:
  140. set {exp1::%loop-player%} to 13 * {lv::%loop-player%} ^ 2 * 5 + {lv::%loop-player%}
  141. add 1 to {lv::%loop-player%} if {exp::%loop-player%} > {exp1::%loop-player%}
  142. if {exp::%loop-player%} >= 104040:
  143. set {exp1::%loop-player%} to 104040
  144. set {exp::%loop-player%} to 104040
  145. set {lv::%loop-player%} to 40
  146. on damage:
  147. if victim's health / victim's max health * 100 >= 100:
  148. set action bar of attacker to "&f&l(&a&l||||||||||||||||||||&f&l)"
  149. if victim's health / victim's max health * 100 >= 95:
  150. if victim's health / victim's max health * 100 < 100:
  151. set action bar of attacker to "&f&l(&a&l||||||||||||||||||||&f&l)"
  152. if victim's health / victim's max health * 100 >= 90:
  153. if victim's health / victim's max health * 100 < 95:
  154. set action bar of attacker to "&f&l(&a&l|||||||||||||||||||&c&l|&f&l)"
  155. if victim's health / victim's max health * 100 >= 85:
  156. if victim's health / victim's max health * 100 < 90:
  157. set action bar of attacker to "&f&l(&a&l||||||||||||||||||&c&l||&f&l)"
  158. if victim's health / victim's max health * 100 >= 80:
  159. if victim's health / victim's max health * 100 < 85:
  160. set action bar of attacker to "&f&l(&a&l|||||||||||||||||&c&l|||&f&l)"
  161. if victim's health / victim's max health * 100 >= 80:
  162. if victim's health / victim's max health * 100 < 85:
  163. set action bar of attacker to "&f&l(&a&l||||||||||||||||&c&l||||&f&l)"
  164. if victim's health / victim's max health * 100 >= 75:
  165. if victim's health / victim's max health * 100 < 80:
  166. set action bar of attacker to "&f&l(&a&l|||||||||||||||&c&l|||||&f&l)"
  167. if victim's health / victim's max health * 100 >= 70:
  168. if victim's health / victim's max health * 100 < 75:
  169. set action bar of attacker to "&f&l(&a&l||||||||||||||&c&l||||||&f&l)"
  170. if victim's health / victim's max health * 100 >= 70:
  171. if victim's health / victim's max health * 100 < 75:
  172. set action bar of attacker to "&f&l(&a&l|||||||||||||&c&l|||||||&f&l)"
  173. if victim's health / victim's max health * 100 >= 65:
  174. if victim's health / victim's max health * 100 < 70:
  175. set action bar of attacker to "&f&l(&a&l||||||||||||&c&l||||||||&f&l)"
  176. if victim's health / victim's max health * 100 >= 60:
  177. if victim's health / victim's max health * 100 < 65:
  178. set action bar of attacker to "&f&l(&a&l|||||||||||&c&l|||||||||&f&l)"
  179. if victim's health / victim's max health * 100 >= 55:
  180. if victim's health / victim's max health * 100 < 60:
  181. set action bar of attacker to "&f&l(&a&l||||||||||&c&l||||||||||&f&l)"
  182. if victim's health / victim's max health * 100 >= 50:
  183. if victim's health / victim's max health * 100 < 55:
  184. set action bar of attacker to "&f&l(&a&l|||||||||&c&l|||||||||||&f&l)"
  185. if victim's health / victim's max health * 100 >= 45:
  186. if victim's health / victim's max health * 100 < 50:
  187. set action bar of attacker to "&f&l(&a&l||||||||&c&l||||||||||||&f&l)"
  188. if victim's health / victim's max health * 100 >= 40:
  189. if victim's health / victim's max health * 100 < 45:
  190. set action bar of attacker to "&f&l(&a&l|||||||&c&l|||||||||||||&f&l)"
  191. if victim's health / victim's max health * 100 >= 35:
  192. if victim's health / victim's max health * 100 < 40:
  193. set action bar of attacker to "&f&l(&a&l||||||&c&l||||||||||||||&f&l)"
  194. if victim's health / victim's max health * 100 >= 30:
  195. if victim's health / victim's max health * 100 < 35:
  196. set action bar of attacker to "&f&l(&a&l|||||&c&l|||||||||||||||&f&l)"
  197. if victim's health / victim's max health * 100 >= 25:
  198. if victim's health / victim's max health * 100 < 30:
  199. set action bar of attacker to "&f&l(&a&l||||&c&l||||||||||||||||&f&l)"
  200. if victim's health / victim's max health * 100 >= 20:
  201. if victim's health / victim's max health * 100 < 25:
  202. set action bar of attacker to "&f&l(&a&l|||&c&l|||||||||||||||||&f&l)"
  203. if victim's health / victim's max health * 100 >= 15:
  204. if victim's health / victim's max health * 100 < 20:
  205. set action bar of attacker to "&f&l(&a&l||&c&l||||||||||||||||||&f&l)"
  206. if victim's health / victim's max health * 100 >= 10:
  207. if victim's health / victim's max health * 100 < 15:
  208. set action bar of attacker to "&f&l(&a&l|&c&l|||||||||||||||||||&f&l)"
  209. if victim's health / victim's max health * 100 >= 5:
  210. if victim's health / victim's max health * 100 < 10:
  211. set action bar of attacker to "&f&l(&c&l||||||||||||||||||||&f&l)"
  212. on death:
  213. set action bar of attacker to "&f&l(&c&l||||||||||||||||||||&f&l)"
  214.  
  215.  
  216.  
  217. command /sp <player> :
  218. permission: op
  219. trigger:
  220. send "%{arg 1 .sp1}%" to player
  221. command /str:
  222. trigger:
  223. if {sp::%player%} >= 1:
  224. add 1 to {str::%player%}
  225. remove 1 from {sp::%player%}
  226. send "&a&lSTRのステータスを上昇しました!" to player
  227. if {sp::%player%} = 0:
  228. send "&c&lSPが足りません!" to player
  229. command /vit:
  230. trigger:
  231. if {sp::%player%} >= 1:
  232. add 1 to {vit::%player%}
  233. remove 1 from {sp::%player%}
  234. send "&a&lVITのステータスを上昇しました!" to player
  235. if {sp::%player%} = 0:
  236. send "&c&lSPが足りません!" to player
  237. command /hp:
  238. trigger:
  239. if {sp::%player%} >= 1:
  240. add 1 to {hp::%player%}
  241. remove 1 from {sp::%player%}
  242. send "&a&lHPのステータスを上昇しました!" to player
  243. if {sp::%player%} = 0:
  244. send "&c&lSPが足りません!" to player
  245.  
  246. command /status:
  247. trigger:
  248. send "&d&lHP:%{hp::%player%}%" to player
  249. send "&c&lSTR:%{str::%player%}%" to player
  250. send "&b&lVIT:%{vit::%player%}%" to player
  251.  
  252. on join:
  253. add 0 to {hp::%player%}
  254. add 0 to {vit::%player%}
  255. add 0 to {str::%player%}
  256. add 0 to {job::%player%}
  257. add 0 to {reido::%player%}
  258.  
  259. every second in "world":
  260. add 1 to {nannid}
  261. if {nannid} = 990:
  262. broadcast "&cあと10秒でピースフルになります!"
  263. if {nannid} = 995:
  264. broadcast "&cあと5秒でピースフルになります!"
  265. if {nannid} = 996:
  266. broadcast "&cあと4秒でピースフルになります!"
  267. if {nannid} = 997:
  268. broadcast "&cあと3秒でピースフルになります!"
  269. if {nannid} = 998:
  270. broadcast "&cあと2秒でピースフルになります!"
  271. if {nannid} = 999:
  272. broadcast "&cあと1秒でピースフルになります!"
  273. if {nannid} = 1000:
  274. set the difficulty of "world" to peaceful
  275. broadcast "&aモンスターの増えすぎを抑制するために一時的にピースフルになりました!この処理は1000秒ごとに行われます!"
  276. command "/setblock 2000 6 1064 wooden_button 5"
  277. if {nannid} = 1001:
  278. set the difficulty of "world" to normal
  279. set {nannid} to 1
  280.  
  281.  
  282. command /psps :
  283. permission: op
  284. trigger:
  285. send "現在進行時間%{nannid}%" to player
  286. command /job:
  287. permission: op
  288. trigger:
  289. send "%{job::%player%}%" to player
  290.  
  291. command /psset <number>:
  292. permission: op
  293. trigger:
  294. set {nannid} to arg 1
  295. send "arg 1 に設定" to player
  296. On Craft:
  297. Cancel Event
  298. command /setpoint <number>:
  299. permission: op
  300. trigger:
  301. if arg 1 = 0:
  302. set {job.point} to location of player
  303. send "チェックポイントを保存しました。" to player
  304.  
  305. if arg 1 = 1:
  306. set {point} to location of player
  307. send "チェックポイントを保存しました。" to player
  308.  
  309.  
  310. if arg 1 = 2:
  311. set {point2} to location of player
  312. send "チェックポイントを保存しました。" to player
  313. if arg 1 = 3:
  314. set {point3} to location of player
  315. send "チェックポイントを保存しました。" to player
  316. if arg 1 = 4:
  317. set {ivent} to location of player
  318. send "チェックポイントを保存しました。" to player
  319.  
  320. on death:
  321. the victim's display name is "&5極炎将ガンマグナ"
  322. command "/setblock 2000 6 1064 wooden_button 5"
  323. add {reido2::%player%} to {reido::%player%}
  324. set {reido2::%player%} to 0
  325.  
  326.  
  327. every second in "world":
  328. loop all players:
  329. if {reido1::%loop-player%} >= 100:
  330. set {reido2::%loop-player%} to 1000
  331. if {reido1::%loop-player%} >= 500:
  332. set {reido2::%loop-player%} to 5000
  333. if {reido1::%loop-player%} >= 1500:
  334. set {reido2::%loop-player%} to 20000
  335. if {reido1::%loop-player%} >= 2500:
  336. set {reido2::%loop-player%} to 60000
  337. if {reido1::%loop-player%} >= 4000:
  338. set {reido2::%loop-player%} to 95000
  339. if {reido1::%loop-player%} >= 7000:
  340. set {reido2::%loop-player%} to 120000
  341. if {reido1::%loop-player%} >= 9500:
  342. set {reido2::%loop-player%} to 180000
  343. on damage:
  344. the victim's display name is "&5極炎将ガンマグナ"
  345. add damage to {reido::%attacker%}
  346. add damage to {reido1::%attacker%}
  347.  
  348.  
  349. every Minutes in "world":
  350. loop all players:
  351. add 1 to {teiki::%loop-player%}
  352. if {teiki::%loop-player%} >= 30:
  353. command "/scoreboard players set %loop-player% teiki 1"
  354. send "&b&l定期アイテムを獲得しました!" to loop-player
  355. set {teiki::%loop-player%} to 0
  356. on weather change to rain:
  357. command "/weather clear"
  358. on weather change to thunder:
  359. command "/weather clear"
  360. command /reido:
  361. permission: op
  362. trigger:
  363. send "%{reido2::%player%}%" to player
Add Comment
Please, Sign In to add comment