SHOW:
|
|
- or go back to the newest paste.
| 1 | #Skrypt na Marmur (Cobblex/Cobbley) | |
| 2 | #Niektore skladnie naleza do Lizak3 - Udzielil mi praw do tego kodu na pw :) | |
| 3 | #Reszta kodu nalezy do mnie. | |
| 4 | ||
| 5 | #Edycja kodu dozwolona do celow wlasnych | |
| 6 | #TO-DO | |
| 7 | #- Crafting (z tym jest problem bo nie wykrywa 64 cobblestone w okienku) | |
| 8 | #- Zeby dropily itemy TYLKO z nazwanego Marmuru. (bo teraz dropi z kazdego bloku, nawet "cracked stone brick" zwyklego :( | |
| 9 | #- Poprawa bledow | |
| 10 | - | #- Wiekszy zakres "losowania" marmuru. |
| 10 | + | #- Wiekszy zakres "losowania" marmuru. (ukonczone) |
| 11 | #- Sklep marmuru za pieniadze ($$$) | |
| 12 | #- Inne funkcje / w tym AutoAktualizacja / AutoUpdate | |
| 13 | ||
| 14 | #Milego korzystania! :) | |
| 15 | - | |
| 15 | + | |
| 16 | options: | |
| 17 | marmur: cracked stone brick | |
| 18 | wymagane: 576 cobblestone | |
| 19 | obrazenia: 10 | |
| 20 | enchant: thorns 10 | |
| 21 | nazwa: "&7&lMarmur" | |
| 22 | wiadomosc_polozenie: "&aPostawiles &7&lMarmur&a!" | |
| 23 | sk: Marmur | |
| 24 | #wersja | |
| 25 | version: 1.1 | |
| 26 | #Sk = nazwa skryptu, wpisz tu swoja nazwe skryptu (np. nazwa.sk) (bez .sk) | |
| 27 | ||
| 28 | - | set {marmur.%player%} to a random integer from 1 to 3
|
| 28 | + | #on connect: #TODO (nie dziala :P) |
| 29 | #set {marmur.crafing.two.%player%} to a random integer from 1 to 3
| |
| 30 | #set {marmur.crafing.%player%} to a random integer from 1 to 3
| |
| 31 | - | give a 98:2 of thorns 10 named "&7&lMarmur" to the player |
| 31 | + | |
| 32 | on load: | |
| 33 | #nie dziala, prosze o pomoc ;_; (mam wildscript 1.6.1) | |
| 34 | - | give a 98:2 of thorns 10 named "&7&lMarmur" to the player |
| 34 | + | set {_nazwa} to "Marmur"
|
| 35 | - | give a 98:2 of thorns 10 named "&7&lMarmur" to the player |
| 35 | + | Recipe.new{ {_nazwa} }
|
| 36 | {_nazwa}.Recipe.registerIngredient{1, 1 stone}
| |
| 37 | {_nazwa}.Recipe.registerIngredient{2, 1 stone}
| |
| 38 | - | give a 98:2 of thorns 10 named "&7&lMarmur" to the player |
| 38 | + | {_nazwa}.Recipe.registerIngredient{3, 1 stone}
|
| 39 | - | give a 98:2 of thorns 10 named "&7&lMarmur" to the player |
| 39 | + | {_nazwa}.Recipe.registerIngredient{4, 1 stone}
|
| 40 | - | give a 98:2 of thorns 10 named "&7&lMarmur" to the player |
| 40 | + | {_nazwa}.Recipe.registerIngredient{5, 1 stone}
|
| 41 | {_nazwa}.Recipe.registerIngredient{6, 1 stone}
| |
| 42 | {_nazwa}.Recipe.registerIngredient{7, 1 stone}
| |
| 43 | {_nazwa}.Recipe.registerIngredient{8, 1 stone}
| |
| 44 | {_nazwa}.Recipe.registerIngredient{9, 1 stone}
| |
| 45 | {_nazwa}.Recipe.registerResult{1 cracked stone brick of thorns 10 named "&7&lMarmur"}
| |
| 46 | {_nazwa}.Recipe.register
| |
| 47 | ||
| 48 | #Komenda na tworzenie Marmuru | |
| 49 | command /marmur: | |
| 50 | permission: marmur.use | |
| 51 | trigger: | |
| 52 | player has {@wymagane}:
| |
| 53 | remove {@wymagane} from player
| |
| 54 | - | send "&6/marmuradm usunall - &7Usuwa wszystkie itemy z listy &7(&6*TEST*&7)" |
| 54 | + | |
| 55 | wait a tick | |
| 56 | set {marmur.%player%} to a random integer from 1 to 6
| |
| 57 | if {marmur.%player%} is 1:
| |
| 58 | send "&aWylosowales 1 sztuke marmuru!" | |
| 59 | give a {@marmur} of {@enchant} named {@nazwa} to the player
| |
| 60 | if {marmur.%player%} is 2:
| |
| 61 | send "&aWylosowales 2 sztuki marmuru!" | |
| 62 | give a {@marmur} of {@enchant} named {@nazwa} to the player
| |
| 63 | give a {@marmur} of {@enchant} named {@nazwa} to the player
| |
| 64 | if {marmur.%player%} is 3:
| |
| 65 | send "&aWylosowales 3 sztuki marmuru!" | |
| 66 | give a {@marmur} of {@enchant} named {@nazwa} to the player
| |
| 67 | give a {@marmur} of {@enchant} named {@nazwa} to the player
| |
| 68 | give a {@marmur} of {@enchant} named {@nazwa} to the player
| |
| 69 | if {marmur.%player%} is 4:
| |
| 70 | send "&aWylosowales 4 sztuki marmuru!" | |
| 71 | give a {@marmur} of {@enchant} named {@nazwa} to the player
| |
| 72 | give a {@marmur} of {@enchant} named {@nazwa} to the player
| |
| 73 | give a {@marmur} of {@enchant} named {@nazwa} to the player
| |
| 74 | - | send "&aPostawiles &7&lMarmur&a!" to player |
| 74 | + | give a {@marmur} of {@enchant} named {@nazwa} to the player
|
| 75 | if {marmur.%player%} is 5:
| |
| 76 | send "&aWylosowales 5 sztuk marmuru!" | |
| 77 | give a {@marmur} of {@enchant} named {@nazwa} to the player
| |
| 78 | give a {@marmur} of {@enchant} named {@nazwa} to the player
| |
| 79 | give a {@marmur} of {@enchant} named {@nazwa} to the player
| |
| 80 | give a {@marmur} of {@enchant} named {@nazwa} to the player
| |
| 81 | give a {@marmur} of {@enchant} named {@nazwa} to the player
| |
| 82 | if {marmur.%player%} is 6:
| |
| 83 | send "&aWylosowales 6 sztuk marmuru!" | |
| 84 | give a {@marmur} of {@enchant} named {@nazwa} to the player
| |
| 85 | give a {@marmur} of {@enchant} named {@nazwa} to the player
| |
| 86 | give a {@marmur} of {@enchant} named {@nazwa} to the player
| |
| 87 | give a {@marmur} of {@enchant} named {@nazwa} to the player
| |
| 88 | give a {@marmur} of {@enchant} named {@nazwa} to the player
| |
| 89 | give a {@marmur} of {@enchant} named {@nazwa} to the player
| |
| 90 | else: | |
| 91 | send "&4Blad:&c Nie posiadasz 9 stakow cobblestone" | |
| 92 | #Panel admina | |
| 93 | command /marmuradm [<text="pomoc">] [<items>]: | |
| 94 | permission: marmur.admin | |
| 95 | trigger: | |
| 96 | argument 1 is not "pomoc", "dodaj", "usun" or "usunall": | |
| 97 | send "&4Blad: &cBrak takiej komendy, lub zla nazwa przedmiotu!" | |
| 98 | stop | |
| 99 | argument 1 is "pomoc": | |
| 100 | send "&7 >> &6Marmur Admin Panel &7<< " | |
| 101 | send "&6/marmuradm dodaj <item> - &7Dodanie nowego itemu do listy" | |
| 102 | send "&6/marmuradm usun <item> - &7Usuwanie itemu z listy" | |
| 103 | send "&6/marmuradm usunall - &7Usuwa wszystkie itemy z listy &7(&6*TEST*&" | |
| 104 | send "&7Lista:&c %{cobblelose::*}%"
| |
| 105 | send "&7Skrypt stworzony przez &6AdamGrzegorz &7:)" | |
| 106 | argument 1 is "dodaj": | |
| 107 | if argument 2 is not set: | |
| 108 | send "&4Blad: &cWpisz nazwe przedmiotu!" | |
| 109 | else: | |
| 110 | add argument 2 to {cobblelose::*}
| |
| 111 | send "&6>> &7Dodano &6'%arg 2%'&7 do z listy marmuru" | |
| 112 | argument 1 is "usun": | |
| 113 | if argument 2 is not set: | |
| 114 | send "&4Blad: &cWpisz nazwe przedmiotu!" | |
| 115 | else: | |
| 116 | remove argument 2 from {cobblelose::*}
| |
| 117 | send "&6>> &7Usunieto &6'%arg 2%' &7z listy marmuru" | |
| 118 | #nie testowane / komenda testowa | |
| 119 | argument 1 is "usunall" | |
| 120 | clear {cobblelose::*}
| |
| 121 | send "&6>> &7Usunieto &6cala liste &7marmuru bezpowrotnie!" | |
| 122 | on place of {@marmur}:
| |
| 123 | send {@wiadomosc_polozenie} to player
| |
| 124 | ||
| 125 | ||
| 126 | on break of {@marmur}:
| |
| 127 | cancel event | |
| 128 | set event-block to air | |
| 129 | damage player's tool by {@obrazenia}
| |
| 130 | drop a random item of {cobblelose::*} at event-block |