Advertisement
Rylens

yes1

Oct 1st, 2020
531
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.48 KB | None | 0 0
  1.  
  2. command /getLoad_g:
  3. trigger:
  4. getLoad_g(player)
  5.  
  6.  
  7. function getLoad_g(p: player):
  8. set metadata tag "getLoad_g" of {_p} to chest inventory with 3 rows named "&0"
  9. set slots (integers between 0 and 26) of metadata tag "getLoad_g" of {_p} to gray stained glass pane named "&0"
  10. set slot 4 of metadata tag "getLoad_g" of {_p} to paper named "&rPlease wait..."
  11. set {_i} to {_p}'s ping
  12. set slot 26 of metadata tag "getLoad_g" of {_p} to lime stained glass pane named "&aPing: %{_i}%"
  13. set slot (integers between 10 and 16) of {_p}'s current inventory to light gray wool named "&7Unloaded load"
  14. open (metadata tag "getLoad_g" of {_p}) to {_p}
  15.  
  16.  
  17. on inventory open:
  18. if event-inventory = (metadata tag "getLoad_g" of player):
  19. while player's current inventory = (metadata tag "getLoad_g" of player):
  20. if {_i} != player's ping:
  21. set slot 26 of player's current inventory to lime stained glass pane named "&aPing: %{_i}%"
  22. open (metadata tag "getLoad_g" of player) to player
  23. set {_i} to player's ping
  24. wait 1 second
  25. loop 100 times:
  26. add 1 to {_getLoad_g}
  27. if {_getLoad_g} != 100:
  28. if player's ping < 1800:
  29. stop loop
  30. wait 0.3 seconds
  31. set slot 10 of player's current inventory to lime wool named "&aLoaded load 1" with lore "&asuccessful!"
  32. set slot 11 of player's current inventory to green wool named "&2Loading load 2..."
  33.  
  34. delete {_getLoad_g}
  35. loop 100 times:
  36. add 1 to {_getLoad_g}
  37. if {_getLoad_g} != 100:
  38. if player's ping < 1000:
  39. stop loop
  40. wait 0.3 seconds
  41. set slot 11 of player's current inventory to lime wool named "&aLoaded load 2" with lore "&asuccessful!"
  42. set slot 12 of player's current inventory to green wool named "&2Loading load 3..."
  43.  
  44. delete {_getLoad_g}
  45. loop 100 times:
  46. add 1 to {_getLoad_g}
  47. if {_getLoad_g} != 100:
  48. if player's ping < 750:
  49. stop loop
  50. wait 0.3 seconds
  51. set slot 12 of player's current inventory to lime wool named "&aLoaded load 3" with lore "&asuccessful!"
  52. set slot 13 of player's current inventory to green wool named "&2Loading load 4..."
  53.  
  54. delete {_getLoad_g}
  55. loop 100 times:
  56. add 1 to {_getLoad_g}
  57. if {_getLoad_g} != 100:
  58. if player's ping < 350:
  59. stop loop
  60. wait 0.3 seconds
  61. set slot 13 of player's current inventory to lime wool named "&aLoaded load 4" with lore "&asuccessful!"
  62. set slot 14 of player's current inventory to green wool named "&2Loading load 5..."
  63.  
  64. delete {_getLoad_g}
  65. loop 100 times:
  66. add 1 to {_getLoad_g}
  67. if {_getLoad_g} != 100:
  68. if player's ping < 200:
  69. stop loop
  70. wait 0.3 seconds
  71. set slot 14 of player's current inventory to lime wool named "&aLoaded load 5" with lore "&asuccessful!"
  72. set slot 15 of player's current inventory to green wool named "&2Loading load 6..."
  73.  
  74. delete {_getLoad_g}
  75. loop 100 times:
  76. add 1 to {_getLoad_g}
  77. if {_getLoad_g} != 100:
  78. if player's ping < 170:
  79. stop loop
  80. wait 0.3 seconds
  81. set slot 15 of player's current inventory to lime wool named "&aLoaded load 6" with lore "&asuccessful!"
  82. set slot 16 of player's current inventory to green wool named "&2Loading load 7..."
  83.  
  84. delete {_getLoad_g}
  85. loop 100 times:
  86. add 1 to {_getLoad_g}
  87. if {_getLoad_g} != 100:
  88. if player's ping < 125:
  89. stop loop
  90. wait 0.3 seconds
  91. set slot 16 of metadata tag "getLoad_g" of player to lime wool named "&aLoaded load 7" with lore "&asuccessful!"
  92.  
  93. wait 0.3 seconds
  94. else:
  95. stop loop
  96. set slot (integers between 10 and 16) of player's current inventory to red wool named "&cPing update failed..." with lore "&0" and "&7(Click to retry)"
  97.  
  98. wait 0.3 seconds
  99. else:
  100. stop loop
  101. set slot (integers between 10 and 16) of player's current inventory to red wool named "&cPing update failed..." with lore "&0" and "&7(Click to retry)"
  102.  
  103. wait 0.3 seconds
  104. else:
  105. stop loop
  106. set slot (integers between 10 and 16) of player's current inventory to red wool named "&cPing update failed..." with lore "&0" and "&7(Click to retry)"
  107.  
  108. wait 0.3 seconds
  109. else:
  110. stop loop
  111. set slot (integers between 10 and 16) of player's current inventory to red wool named "&cPing update failed..." with lore "&0" and "&7(Click to retry)"
  112.  
  113. wait 0.3 seconds
  114. else:
  115. stop loop
  116. set slot (integers between 10 and 16) of player's current inventory to red wool named "&cPing update failed..." with lore "&0" and "&7(Click to retry)"
  117.  
  118. wait 0.3 seconds
  119. else:
  120. stop loop
  121. set slot (integers between 10 and 16) of player's current inventory to red wool named "&cPing update failed..." with lore "&0" and "&7(Click to retry)"
  122.  
  123. wait 0.3 seconds
  124. else:
  125. stop loop
  126. set slot (integers between 10 and 16) of player's current inventory to red wool named "&cPing update failed..." with lore "&0" and "&7(Click to retry)"
  127. on inventory click:
  128. if event-inventory = (metadata tag "getLoad_g" of player):
  129. if event-slot = (integers between 10 and 16):
  130. if event-item = red wool named "&cPing update failed..." with lore "&0" and "&7(Click to retry)":
  131. getLoad_g(player)
  132. else:
  133. cancel event
  134. else:
  135. cancel event
  136.  
  137. # --- --- --- --- --- --- --- --- ---
  138. # |0 |1 |2 |3 |4 |5 |6 |7 |8 |
  139. # --- --- --- --- --- --- --- --- ---
  140. # |9 |10 |11 |12 |13 |14 |15 |16 |17 |
  141. # --- --- --- --- --- --- --- --- ---
  142. # |18 |19 |20 |21 |22 |23 |24 |25 |26 |
  143. # --- --- --- --- --- --- --- --- ---
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement