Guest User

SaveEq by ItachiStudio

a guest
Feb 7th, 2016
1,147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.23 KB | None | 0 0
  1. #Yt Autora: https://www.youtube.com/TheItachiStudioPl
  2. #autor: ItachiStudio
  3. #!!!Zakaz podszywania sie pod autora!!!
  4.  
  5. on join:
  6. set {collow.%player%} to false
  7.  
  8. command /saveeq:
  9. trigger:
  10. add 1 to {backeq.liczba.%player%}
  11. if {collow.%player%} is false:
  12. send "&6Ekwipunek Zostal Zapisany :)" to player
  13. set {collow.%player%} to true
  14. if {backeq.liczba.%player%} is 1:
  15. delete {eq.%player%.1::*}
  16. set {czas.%player%.1} to now
  17. set {forma.%player%.1::*} to "&2ZAPIS WYKONANY PRZEZ GRACZA"
  18. set {ostatni.%player%.1::*} to "&2ZAPIS 1"
  19. delete {liczbaitow.%player%.1}
  20. loop all items in the player's inventory:
  21. wait 5 ticks
  22. add loop-item to {eq.%player%.1::*}
  23. add 1 to {liczbaitow.%player%.1}
  24. if {backeq.liczba.%player%} is 2:
  25. delete {eq.%player%.2::*}
  26. set {czas.%player%.2} to now
  27. set {forma.%player%.2::*} to "&2ZAPIS WYKONANY PRZEZ GRACZA"
  28. set {ostatni.%player%.1::*} to "&2ZAPIS 2"
  29. delete {liczbaitow.%player%.2}
  30. loop all items in the player's inventory:
  31. wait 5 ticks
  32. add loop-item to {eq.%player%.2::*}
  33. add 1 to {liczbaitow.%player%.2}
  34. if {backeq.liczba.%player%} is 3:
  35. delete {eq.%player%.3::*}
  36. set {czas.%player%.3} to now
  37. set {forma.%player%.3::*} to "&2ZAPIS WYKONANY PRZEZ GRACZA"
  38. set {ostatni.%player%.1::*} to "&2ZAPIS 3"
  39. delete {liczbaitow.%player%.3}
  40. loop all items in the player's inventory:
  41. wait 5 ticks
  42. add loop-item to {eq.%player%.3::*}
  43. add 1 to {liczbaitow.%player%.3}
  44. if {backeq.liczba.%player%} is 4:
  45. delete {eq.%player%.4::*}
  46. set {czas.%player%.4} to now
  47. set {forma.%player%.4::*} to "&2ZAPIS WYKONANY PRZEZ GRACZA"
  48. set {ostatni.%player%.1::*} to "&2ZAPIS 4"
  49. delete {liczbaitow.%player%.4}
  50. loop all items in the player's inventory:
  51. wait 5 ticks
  52. add loop-item to {eq.%player%.4::*}
  53. add 1 to {liczbaitow.%player%.4}
  54. if {backeq.liczba.%player%} is bigger than 5:
  55. delete {eq.%player%.5::*}
  56. set {czas.%player%.5} to now
  57. set {forma.%player%.5::*} to "&2ZAPIS WYKONANY PRZEZ GRACZA"
  58. set {ostatni.%player%.1::*} to "&2ZAPIS 5"
  59. set {backeq.liczba.%player%} to 0
  60. delete {liczbaitow.%player%.5}
  61. loop all items in the player's inventory:
  62. wait 5 ticks
  63. add loop-item to {eq.%player%.5::*}
  64. add 1 to {liczbaitow.%player%.5}
  65. wait 1200 ticks
  66. set {collow.%player%} to false
  67. Stop
  68. if {collow.%player%} is true:
  69. send "&4EQ Mozna Zapisywac Co Minute." to player
  70.  
  71. command /backeq [<player>] [<text>]:
  72. trigger:
  73. if player has permission "Itachi.eq.back":
  74. if arg 1 is not set:
  75. send "&c/BackEQ NICK" to player
  76. stop
  77. if arg 1 is set:
  78. if arg 2 is not set:
  79. open chest with 5 rows named "&5BACKEQ" to player
  80. wait 2 ticks
  81. format slot 0 of player with 1 of chest named "&6Zapisy Eq Gracza %player-arg%" to run [execute player command "/backeq %player-arg%"]
  82. format slot 8 of player with 1 of fire named "&6EXIT" to close
  83. format slot 20 of player with 1 of zombie head named "%{forma.%player-arg%.1::*}%" with lore "&7DATA: &2%{czas.%player-arg%.1}%||&7LICZBA ITEMOW: &2%{liczbaitow.%player-arg%.1}%" to run [execute player command "/backeq %player-arg% 1"]
  84. format slot 21 of player with 1 of zombie head named "%{forma.%player-arg%.2::*}%" with lore "&7DATA: &2%{czas.%player-arg%.2}%||&7LICZBA ITEMOW: &2%{liczbaitow.%player-arg%.2}%" to run [execute player command "/backeq %player-arg% 2"]
  85. format slot 22 of player with 1 of zombie head named "%{forma.%player-arg%.3::*}%" with lore "&7DATA: &2%{czas.%player-arg%.3}%||&7LICZBA ITEMOW: &2%{liczbaitow.%player-arg%.3}%" to run [execute player command "/backeq %player-arg% 3"]
  86. format slot 23 of player with 1 of zombie head named "%{forma.%player-arg%.4::*}%" with lore "&7DATA: &2%{czas.%player-arg%.4}%||&7LICZBA ITEMOW: &2%{liczbaitow.%player-arg%.4}%" to run [execute player command "/backeq %player-arg% 4"]
  87. format slot 24 of player with 1 of zombie head named "%{forma.%player-arg%.5::*}%" with lore "&7DATA: &2%{czas.%player-arg%.5}%||&7LICZBA ITEMOW: &2%{liczbaitow.%player-arg%.5}%" to run [execute player command "/backeq %player-arg% 5"]
  88. format slot 44 of player with 1 of cobweb named "&7OSTATNI ZAPIS" with lore "&9%{ostatni.%player-arg%.1::*}%" to run [execute player command "/backeq %player-arg%"]
  89. stop
  90. if arg 2 is "1":
  91. clear the player's inventory
  92. execute player command "/backeq %player-arg%"
  93. if {eq.%player-arg%.1::*} is set:
  94. loop {eq.%player-arg%.1::*}:
  95. add loop-value to the player
  96. stop
  97. if {eq.%player-arg%.2::*} is not set:
  98. send "&4BLAD KRYTYCZNY" to player
  99. if arg 2 is "2":
  100. clear the player's inventory
  101. execute player command "/backeq %player-arg%"
  102. if {eq.%player-arg%.2::*} is set:
  103. loop {eq.%player-arg%.2::*}:
  104. add loop-value to the player
  105. stop
  106. if {eq.%player-arg%.2::*} is not set:
  107. send "&4BLAD KRYTYCZNY" to player
  108. if arg 2 is "3":
  109. clear the player's inventory
  110. execute player command "/backeq %player-arg%"
  111. if {eq.%player-arg%.3::*} is set:
  112. loop {eq.%player-arg%.3::*}:
  113. add loop-value to the player
  114. stop
  115. if {eq.%player-arg%.2::*} is not set:
  116. send "&4BLAD KRYTYCZNY" to player
  117. if arg 2 is "4":
  118. clear the player's inventory
  119. execute player command "/backeq %player-arg%"
  120. if {eq.%player-arg%.4::*} is set:
  121. loop {eq.%player-arg%.4::*}:
  122. add loop-value to the player
  123. stop
  124. if {eq.%player-arg%.2::*} is not set:
  125. send "&4BLAD KRYTYCZNY" to player
  126. if arg 2 is "5":
  127. clear the player's inventory
  128. execute player command "/backeq %player-arg%"
  129. if {eq.%player-arg%.5::*} is set:
  130. loop {eq.%player-arg%.5::*}:
  131. add loop-value to the player
  132. stop
  133. if {eq.%player-arg%.2::*} is not set:
  134. send "&4BLAD KRYTYCZNY" to player
  135.  
  136. every 30 minutes:
  137. loop all players:
  138. add 1 to {backeq.liczba.%loop-player%}
  139. wait 100 ticks
  140. loop all players:
  141. send "&6Twoje Eq Zostalo Zapisane Z Daty &8&l>> &7%now%" to loop-player
  142. if {backeq.liczba.%loop-player%} is 1:
  143. delete {eq.%loop-player%.1::*}
  144. set {forma.%loop-player%.1::*} to "&cZAPIS WYKONANY PRZEZ SERWER"
  145. set {czas.%loop-player%.1} to now
  146. set {ostatni.%loop-player%.1::*} to "&2ZAPIS 1"
  147. delete {liczbaitow.%loop-player%.1}
  148. loop all items in the loop-player's inventory:
  149. wait 5 ticks
  150. add loop-item to {eq.%loop-player%.1::*}
  151. add 1 to {liczbaitow.%loop-player%.1}
  152. if {backeq.liczba.%loop-player%} is 2:
  153. delete {eq.%loop-player%.2::*}
  154. set {forma.%loop-player%.2::*} to "&cZAPIS WYKONANY PRZEZ SERWER"
  155. set {czas.%loop-player%.2} to now
  156. set {ostatni.%loop-player%.1::*} to "&2ZAPIS 2"
  157. delete {liczbaitow.%loop-player%.2}
  158. loop all items in the loop-player's inventory:
  159. wait 5 ticks
  160. add loop-item to {eq.%loop-player%.2::*}
  161. add 1 to {liczbaitow.%loop-player%.2}
  162. if {backeq.liczba.%loop-player%} is 3:
  163. delete {eq.%loop-player%.3::*}
  164. set {forma.%loop-player%.3::*} to "&cZAPIS WYKONANY PRZEZ SERWER"
  165. set {czas.%loop-player%.3} to now
  166. set {ostatni.%loop-player%.1::*} to "&2ZAPIS 3"
  167. delete {liczbaitow.%loop-player%.3}
  168. loop all items in the loop-player's inventory:
  169. wait 5 ticks
  170. add loop-item to {eq.%loop-player%.3::*}
  171. add 1 to {liczbaitow.%loop-player%.3}
  172. if {backeq.liczba.%loop-player%} is 4:
  173. delete {eq.%loop-player%.4::*}
  174. set {forma.%loop-player%.4::*} to "&cZAPIS WYKONANY PRZEZ SERWER"
  175. set {czas.%loop-player%.4} to now
  176. set {ostatni.%loop-player%.1::*} to "&2ZAPIS 4"
  177. delete {liczbaitow.%loop-player%.4}
  178. loop all items in the loop-player's inventory:
  179. wait 5 ticks
  180. add loop-item to {eq.%loop-player%.4::*}
  181. add 1 to {liczbaitow.%loop-player%.4}
  182. if {backeq.liczba.%loop-player%} is bigger than 5:
  183. delete {eq.%loop-player%.5::*}
  184. set {forma.%loop-player%.5::*} to "&cZAPIS WYKONANY PRZEZ SERWER"
  185. set {czas.%loop-player%.5} to now
  186. set {ostatni.%loop-player%.1::*} to "&2ZAPIS 5"
  187. set {backeq.liczba.%loop-player%} to 0
  188. delete {liczbaitow.%loop-player%.5}
  189. loop all items in the loop-player's inventory:
  190. wait 5 ticks
  191. add loop-item to {eq.%loop-player%.5::*}
  192. add 1 to {liczbaitow.%loop-player%.5}
Advertisement
Add Comment
Please, Sign In to add comment