Advertisement
Hsuwan

Untitled

Aug 29th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.79 KB | None | 0 0
  1. on inventory close:
  2. if {戰爭參賽者::%player%} is set:
  3. stop
  4. if {對決.座標.%player%} is set:
  5. stop
  6. if inventory name of player's current inventory contains "container.crafting":
  7. loop 9 times:
  8. set {_ln1} to loop-number
  9. set {_lore::*} to uncolored lore of slot ({_ln1} - 1) of player split at "||"
  10. loop {_lore::*}:
  11. if {_lore::%loop-index%} contains "等級限制":
  12. loop 50000 times:
  13. set {_ln2} to loop-number-2
  14. if {_lore::%loop-index%} contains "%50000 - loop-number-2%":
  15. if player's level is smaller than or equal to (49999 - loop-number-2):
  16. drop slot ({_ln1} - 1) of player at player
  17. set slot ({_ln1} - 1) of player to air
  18. send "&f該物品擁有等級限制,請先達到&9%50000 - loop-number-2%&f再使用。"
  19. exit loop
  20. on pick up:
  21. if {戰爭參賽者::%player%} is set:
  22. stop
  23. if {對決.座標.%player%} is set:
  24. stop
  25. set {_ei} to event-item
  26. set {_lore::*} to uncolored lore of event-item split at "||"
  27. wait 1 ticks
  28. loop {_lore::*}:
  29. if {_lore::%loop-index%} contains "等級限制":
  30. loop 50000 times:
  31. if {_lore::%loop-index%} contains "%50000 - loop-number%":
  32. if player's level is smaller than or equal to (49999 - loop-number):
  33. loop 9 times:
  34. set {_ln2} to loop-number-2
  35. if slot ({_ln2} - 1) of player is event-item:
  36. loop 36 times:
  37. set {_ln3} to loop-number-3
  38. if {_ln3} is more than or equal to 10:
  39. if slot ({_ln3} - 1) of player is a air:
  40. set slot ({_ln2} - 1) of player to air
  41. set slot ({_ln3} - 1) of player to 1 of event-item
  42. send "獲得%name of slot ({_ln3} - 1) of player%"
  43. stop
  44. on tool change:
  45. if {戰爭參賽者::%player%} is set:
  46. stop
  47. if {對決.座標.%player%} is set:
  48. stop
  49. set {_lore::*} to uncolored lore of player's tool split at "||"
  50. loop {_lore::*}:
  51. if {_lore::%loop-index%} contains "等級限制":
  52. loop 50000 times:
  53. if {_lore::%loop-index%} contains "%50000 - loop-number%":
  54. if player's level is smaller than or equal to (49999 - loop-number):
  55. loop 36 times:
  56. set {_ln2} to loop-number-2
  57. if {_ln2} is more than or equal to 10:
  58. if slot ({_ln2} - 1) of player is a air:
  59. set slot ({_ln2} - 1) of player to player's tool
  60. set player's tool to air
  61. send "&f該物品擁有等級限制,請先達到&9%50000 - loop-number-1%&f才能交易或使用。"
  62. stop
  63. set {_random} to a random integer between 9 and 35
  64. set {_slot} to slot {_random} of player
  65. set slot {_random} of player to player's tool
  66. set player's tool to {_slot}
  67. send "&f該物品擁有等級限制,請先達到&9%50000 - loop-number-1%&f再使用。"
  68. damage player by 100000
  69. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement