xBetter

Vouchery ze stone!

Feb 17th, 2016
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.93 KB | None | 0 0
  1. #- - - - - - - - - - - - - - - - - - - - - - -#
  2. #-Autor skryptu: xBetter #
  3. #-Wersja: 3.4 #
  4. #-Komendy: #
  5. #-/event - Informacje o evencie #
  6. #- - - - - -Licencja skryptu- - - - - - - - - #
  7. #-Zakaz podszywania sie pod autora. #
  8. #-Zakaz usuwania autora oraz licencji. #
  9. #- - - - - - - - - - - - - - - - - - - - - - -#
  10. # AUTO AKTUALIZACJA #
  11. #- - - - - - - - - - - - - - - - - - - - - - -#
  12. #Vouchery Ze Stone 3.4#
  13. #- - - - - - - - - - - - - - - - - - - - - - -#
  14. # Opcje Skryptu #
  15. #- - - - - - - - - - - - - - - - - - - - - - -#
  16. options:
  17. #- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - #
  18. Komenda: event # Tu wpisujesz komęde jaką będziesz używał na serwerze! #
  19. #- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - #
  20.  
  21. #- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - #
  22. Ranga: pex user %player% group set # Tu wpisujesz jaka komenda sie daje range w twojm pl lub sk! #
  23. #- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - #
  24.  
  25. #- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - #
  26. Skript: Vouchery Ze Stone # Nazwa skriptu potrzebna do auto update #
  27. #- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - #
  28.  
  29. DiscoText: &aAktywowales voucher na disco zbroje! #- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - #
  30. VipText: &aAktywowales voucher na Vipa! # Tu wpiszujesz text który będzie wyświetlał sie po użyciu vouchera #
  31. SVipText: &aAktywowales voucher na SVipa! #- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - #
  32.  
  33. RangaDisco: disco #- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - #
  34. RangaVip: Vip # Tu dajesz range jaka ma po uzyciu vouchera ma dostac gracz! #
  35. RangaSVip: SVip #- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - #
  36.  
  37. DropDiscoText: &c%player% wydropil voucher na Disco Zbroje! #- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - #
  38. DropVipText: &c%player% wydropil voucher na Vipa! # Tu wpisujesz wiadomosc jaka ma sie wyswietlac po wydropieniu! #
  39. DropSVipText: &c%player% wydropil voucher na SVipa! #- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - #
  40.  
  41. DropDisco: 3 #- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - #
  42. DropVip: 2 # Procent na drop danego vouchera! #
  43. DropSVip: 1 #- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - #
  44.  
  45. VoucherTextDisco: &4Voucher na Disco Zbroje #- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - #
  46. VoucherTextVip: &4Voucher na Vipa # Tu wpisujesz nazwe danego vouchera! #
  47. VoucherTextSVip: &4Voucher na SVipa #- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - #
  48. #- - - - - - - - - - - - - - - - - - - - - - -#
  49. # KOD SKRYPTU #
  50. #- - - - - - - - - - - - - - - - - - - - - - -#
  51.  
  52. variables:
  53. {event.disco} = false
  54. {event.vip} = false
  55. {event.svip} = false
  56.  
  57. command /{@Komenda} [<text>]:
  58. permission: VoucheryZeStone.event
  59. permission message: &8[&6EASYPROT.NET&8] &cNie mozesz uzyc tej komedy!
  60. trigger:
  61. if arg 1 is not set:
  62. send " &8» &cKomendy:"
  63. send " &8» &6/event disco &a - &7Wlacza/Wylacza event na disco zbroje"
  64. send " &8» &6/event vip &a - &7Wlacza/Wylacza event na vipa"
  65. send " &8» &6/event svip &a - &7Wlacza/Wylacza event na svipa"
  66. send " &8» &6/event tajnie disco &a - &7Wlacza/Wylacza tajnie event na disco zbroje"
  67. send " &8» &6/event tajnie vip &a - &7Wlacza/Wylacza tajnie event na vipa"
  68. send " &8» &6/event tajnie svip &a - &7Wlacza/Wylacza tajnie event na svipa"
  69. send " &8» &cStrona &a1/2"
  70. send " &8» &cNastepna strona /event 2"
  71. if arg 1 is "2":
  72. send " &8» &cKomendy:"
  73. send " &8» &6/event voucher disco &a - &7Daje ci voucher na disco zbroje"
  74. send " &8» &6/event voucher vip &a - &7Daje ci voucher na vipa"
  75. send " &8» &6/event voucher svip &a - &7Daje ci voucher na svipa"
  76. send " &8» &cStrona &a2/2"
  77. if arg 1 is "disco":
  78. if {event.disco} is false:
  79. set {event.disco} to true
  80. broadcast "&8» &7Event vouchery na disco zbroje ze stone!"
  81. broadcast "&8» &7Zostal wlasnie wlaczony przez &c%player%&7!"
  82. stop
  83. if {event.disco} is true:
  84. set {event.disco} to false
  85. broadcast "&8» &7Event vouchery na disco zbroje ze stone!"
  86. broadcast "&8» &7Zostal wlasnie wylaczony przez &c%player%&7!"
  87. stop
  88. if arg 1 is "vip":
  89. if {event.vip} is false:
  90. set {event.vip} to true
  91. broadcast "&8» &7Event vouchery na vipy ze stone!"
  92. broadcast "&8» &7Zostal wlasnie wlaczony przez &c%player%&7!"
  93. stop
  94. if {event.vip} is true:
  95. set {event.vip} to false
  96. broadcast "&8» &7Event vouchery na vipy ze stone!"
  97. broadcast "&8» &7Zostal wlasnie wylaczony przez &c%player%&7!"
  98. stop
  99. if arg 1 is "svip":
  100. if {event.svip} is false:
  101. set {event.svip} to true
  102. broadcast "&8» &7Event vouchery na svipy ze stone!"
  103. broadcast "&8» &7Zostal wlasnie wlaczony przez &c%player%&7!"
  104. stop
  105. if {event.svip} is true:
  106. set {event.svip} to false
  107. broadcast "&8» &7Event vouchery na svipy ze stone!"
  108. broadcast "&8» &7Zostal wlasnie wylaczony przez &c%player%&7!"
  109. stop
  110. if arg 1 is "tajnie disco":
  111. if {event.disco} is false:
  112. set {event.disco} to true
  113. send " &8» &6Tajnie wlaczyles event na vouchery disco ze stone!"
  114. stop
  115. if {event.disco} is true:
  116. set {event.disco} to false
  117. send " &8» &6Tajnie wylaczyles event na vouchery disco ze stone!"
  118. stop
  119. if arg 1 is "tajnie vip":
  120. if {event.vip} is false:
  121. set {event.vip} to true
  122. send " &8» &6Tajnie wlaczyles event na vouchery vipa ze stone!"
  123. stop
  124. if {event.vip} is true:
  125. set {event.vip} to false
  126. send " &8» &6Tajnie wylaczyles event na vouchery vipa ze stone!"
  127. stop
  128. if arg 1 is "tajnie svip":
  129. if {event.svip} is false:
  130. set {event.svip} to true
  131. send " &8» &6Tajnie wlaczyles event na vouchery svipa ze stone!"
  132. stop
  133. if {event.svip} is true:
  134. set {event.svip} to false
  135. send " &8» &6Tajnie wylaczyles event na vouchery svipa ze stone!"
  136. stop
  137. if arg 1 is "voucher disco":
  138. add 1 book named "{@VoucherTextDisco}" to player
  139. if arg 1 is "voucher vip":
  140. add 1 book named "{@VoucherTextVip}" to player
  141. if arg 1 is "voucher svip":
  142. add 1 book named "{@VoucherTextSVip}" to player
  143. on mine of stone:
  144. if {event.disco} is true:
  145. chance of {@DropDisco}%:
  146. if player can hold 1 book named "{@VoucherTextDisco}":
  147. add 1 book named "{@VoucherTextDisco}" to player
  148. broadcast "{@DropDiscoText}"
  149. else:
  150. drop 1 book named "{@VoucherTextDisco}"
  151. broadcast "{@DropDiscoText}"
  152. if {event.vip} is true:
  153. chance of {@DropVip}%:
  154. if player can hold 1 book named "{@VoucherTextVip}":
  155. add 1 book named "{@VoucherTextVip}" to player
  156. broadcast "{@DropVipText}"
  157. else:
  158. drop 1 book named "{@VoucherTextVip}"
  159. broadcast "{@DropVipText}"
  160. if {event.svip} is true:
  161. chance of {@DropSVip}%:
  162. if player can hold 1 book named "{@VoucherTextSVip}":
  163. add 1 book named "{@VoucherTextSVip}" to player
  164. broadcast "{@DropSVipText}"
  165. else:
  166. drop 1 book named "{@VoucherTextSVip}"
  167. broadcast "{@DropSVipText}"
  168. on rightclick with book:
  169. if name of player's tool is "{@VoucherTextDisco}":
  170. cancel event
  171. execute server command "{Ranga} {@RangaDisco}"
  172. remove 1 book named "{@VoucherTextDisco}" from player's tool
  173. send "{@DiscoText}"
  174. if name of player's tool is "{@VoucherTextVip}":
  175. cancel event
  176. execute server command "{@Ranga} {@RangaVip}"
  177. remove 1 book named "{@VoucherTextVip}" from player's tool
  178. send "{@VipText}"
  179. if name of player's tool is "{@VoucherTextSVip}":
  180. cancel event
  181. execute server command "{@Ranga} {@RangaSVip}"
  182. remove 1 book named "{@VoucherTextSVip}" from player's tool
  183. send "{@SVipText}"
  184. every 1 minutes:
  185. set {_version} to content of file "plugins/Skript/scripts/{@Skript}.sk"
  186. set {_v} to index of "##" in {_version}
  187. set {_v2} to subtext of {_version} from character ({_v}+1) to character (length of {_version})
  188. set {_v3} to index of "##" in {_v2}
  189. set {version} to subtext of {_version} from character ({_v}+1) to character ({_v3})
  190. set {_version} to result of connect to "http://pastebin.com/raw/DpWgngd4"
  191. set {_v} to index of "##" in {_version}
  192. set {_v2} to subtext of {_version} from character ({_v}+1) to character (length of {_version})
  193. set {_v3} to index of "##" in {_v2}
  194. set {version.new} to subtext of {_version} from character ({_v}+1) to character ({_v3})
  195. {version} is not {version.new}:
  196. download "http://pastebin.com/raw/DpWgngd4" to "plugins/Skript/scripts/{@Skript}.sk"
  197. execute console command "/sk reload %script%"
  198. loop all players:
  199. loop-player has permission "VoucheryZeStone.autoupdate":
  200. broadcast "&a&l>> &cAKTUALIZACJA VOUCHERY ZE STONE &a&l<<"
  201. stop
Advertisement
Add Comment
Please, Sign In to add comment