knugi

Untitled

Dec 13th, 2014
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.06 KB | None | 0 0
  1. #Pod komenda np /lowienia ma się otworzyć takie mało okno skrzynkowe 4-6 w bok
  2. #i tam ma byc skrzynia rybaka i gdy się na nia kliknie pojawiaja sie ity
  3. #jakie mozesz znalesc w tej skrzyni czyli jak wylowisz klucz
  4. #postawisz ta skrzynie rybaka klikniesz kluczem i sie losuje dana nagroda
  5. #0.5% z cobbla skrzynka rybaka named "&6Skrzynka &bRybaka"
  6.  
  7. #--------- Itemy ---------#
  8. #1. 1 kox 1%
  9. #2. 15 diamond 15%
  10. #3. 32 book 5%
  11. #4. enchant 20%
  12. #5. 16 bookshelf 7%
  13. #6. Diamond Chestplate of protection 3 2%
  14. #-------------------------#
  15.  
  16.  
  17. #Wymagane pluginy:
  18. #Skript
  19. #RandomSK
  20. #WildSkript
  21.  
  22. Options:
  23. #Komenda na sprawdzenie jakie itemki dropia ze skrzynki
  24. cmd: lowienie
  25.  
  26. #Szansa na klucz z wody
  27. chanceKey: 10
  28.  
  29. #Szansa na skrzynke z cobble
  30. chanceChest: 0.5
  31.  
  32. item.1: enchanted golden apple
  33. chanceItem.1: 1
  34.  
  35. item.2: 15 diamond
  36. chanceItem.2: 15
  37.  
  38. item.3: 32 book
  39. chanceItem.3: 5
  40.  
  41. item.4: enchantment table
  42. chanceItem.4: 20
  43.  
  44. item.5: 16 bookshelf
  45. chanceItem.5: 7
  46.  
  47. item.6: diamond chestplate of protection 3
  48. chanceItem.6: 2
  49.  
  50. command /hash [<text>]:
  51. trigger:
  52. if player has permission "dawid.admin":
  53. if arg 1 is not set:
  54. send "Musisz wpisac /hash *procent*"
  55. stop
  56. if arg 1 is set:
  57. set {p} to arg 1
  58. execute console command "sk reload %script%"
  59. command /{@cmd}:
  60. trigger:
  61. "&6Skrzynka &bRybak".Inventory.display{player};
  62. command /{@cmd}2:
  63. trigger:
  64. "&6Skrzynka &bRybaka".Inventory.display{player};
  65. on load:
  66. set {_id} to "&6Skrzynka &bRybak"
  67. "%{_id}%".Inventory.setRow{1};
  68. "%{_id}%".Inventory.setItem{5, chest named "&6Skrzynka &bRybaka"};
  69. "%{_id}%".Inventory.setExecutor{5, "player"};
  70. "%{_id}%".Inventory.setCommand{5, "{@cmd}2"};
  71. on load:
  72. set {_id} to "&6Skrzynka &bRybaka"
  73. "%{_id}%".Inventory.setRow{1};
  74. "%{_id}%".Inventory.setItem{1, {@item.1}};
  75. "%{_id}%".Inventory.setLore{1, "&a{@chanceItem.1}%{p}%"};
  76. "%{_id}%".Inventory.setItem{2, {@item.2}};
  77. "%{_id}%".Inventory.setLore{2, "&a{@chanceItem.2}%{p}%"};
  78. "%{_id}%".Inventory.setItem{3, {@item.3}};
  79. "%{_id}%".Inventory.setLore{3, "&a{@chanceItem.3}%{p}%"};
  80. "%{_id}%".Inventory.setItem{4, {@item.4}};
  81. "%{_id}%".Inventory.setLore{4, "&a{@chanceItem.4}%{p}%"};
  82. "%{_id}%".Inventory.setItem{5, {@item.5}};
  83. "%{_id}%".Inventory.setLore{5, "&a{@chanceItem.5}%{p}%"};
  84. "%{_id}%".Inventory.setItem{6, {@item.6}};
  85. "%{_id}%".Inventory.setLore{6, "&a{@chanceItem.6}%{p}%"};
  86. on player fishing:
  87. if fishing state is caught fish:
  88. chance of {@chanceKey}%:
  89. cancel event
  90. give stick named "&6Klucz &bRybaka" to the player
  91. on break cobblestone:
  92. chance of {@chanceChest}%:
  93. give chest named "&6Skrzynka &bRybaka" to the player
  94. on place:
  95. if player's tool is chest named "&6Skrzynka &bRybaka":
  96. if player cannot build at event-block:
  97. cancel event
  98. set {rybak.chest.%location of event-block%} to true
  99. on break chest:
  100. if {rybak.chest.%location of event-block%} is set:
  101. cancel event
  102. set event-block to air
  103. give chest named "&6Skrzynka &bRybaka" to the player
  104. on rightclick on chest:
  105. if {rybak.chest.%location of event-block%} is set:
  106. cancel event
  107. if player's tool is stick named "&6Klucz &bRybaka":
  108. remove stick named "&6Klucz &bRybaka" from player
  109. clear {rybak.chest.%location of event-block%}
  110. set event-block to air
  111. loop 5 times:
  112. if {_set} is set:
  113. exit loop
  114. chance of {@chanceItem.1}%:
  115. give {@item.1} to the player
  116. set {_set} to true
  117. chance of {@chanceItem.2}%:
  118. give {@item.2} to the player
  119. set {_set} to true
  120. chance of {@chanceItem.3}%:
  121. give {@item.3} to the player
  122. set {_set} to true
  123. chance of {@chanceItem.4}%:
  124. give {@item.4} to the player
  125. set {_set} to true
  126. chance of {@chanceItem.5}%:
  127. give {@item.5} to the player
  128. set {_set} to true
  129. chance of {@chanceItem.6}%:
  130. give {@item.6} to the player
  131. set {_set} to true
  132. on explode:
  133. loop blocks in radius 5:
  134. if loop-block is chest:
  135. if {rybak.chest.%location of loop-block%} is set:
  136. clear {rybak.chest.%location of loop-block%}
  137. set loop-block to air
Advertisement
Add Comment
Please, Sign In to add comment