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 |
| 6 | + | |
| 7 | - | #- Crafting (z tym jest problem bo nie wykrywa 64 cobblestone w okienku) |
| 7 | + | |
| 8 | - | #- Zeby dropily itemy TYLKO z nazwanego Marmuru. (bo teraz dropi z kazdego bloku, nawet "cracked stone brick" zwyklego :( |
| 8 | + | marmur: cracked brick |
| 9 | - | #- Poprawa bledow |
| 9 | + | wymagane_cmd: 1728 cobblestone |
| 10 | - | #- Wiekszy zakres "losowania" marmuru. (ukonczone) |
| 10 | + | |
| 11 | - | #- Sklep marmuru za pieniadze ($$$) |
| 11 | + | |
| 12 | - | #- Inne funkcje / w tym AutoAktualizacja / AutoUpdate |
| 12 | + | |
| 13 | wiadomosc_polozenie: "&aPostawiles &7&lMarmur&a!" | |
| 14 | - | #Milego korzystania! :) |
| 14 | + | |
| 15 | #wersja | |
| 16 | version: 1.3 | |
| 17 | - | marmur: cracked stone brick |
| 17 | + | |
| 18 | - | wymagane: 576 cobblestone |
| 18 | + | |
| 19 | ||
| 20 | on load: | |
| 21 | set {_nazwa} to "Marmur"
| |
| 22 | Recipe.new{ {_nazwa} }
| |
| 23 | {_nazwa}.Recipe.registerIngredient{1, 64 cobblestone}
| |
| 24 | {_nazwa}.Recipe.registerIngredient{2, 64 cobblestone}
| |
| 25 | - | version: 1.1 |
| 25 | + | {_nazwa}.Recipe.registerIngredient{3, 64 cobblestone}
|
| 26 | {_nazwa}.Recipe.registerIngredient{4, 64 cobblestone}
| |
| 27 | {_nazwa}.Recipe.registerIngredient{5, 64 cobblestone}
| |
| 28 | - | #on connect: #TODO (nie dziala :P) |
| 28 | + | {_nazwa}.Recipe.registerIngredient{6, 64 cobblestone}
|
| 29 | - | #set {marmur.crafing.two.%player%} to a random integer from 1 to 3
|
| 29 | + | {_nazwa}.Recipe.registerIngredient{7, 64 cobblestone}
|
| 30 | - | #set {marmur.crafing.%player%} to a random integer from 1 to 3
|
| 30 | + | {_nazwa}.Recipe.registerIngredient{8, 64 cobblestone}
|
| 31 | {_nazwa}.Recipe.registerIngredient{9, 64 cobblestone}
| |
| 32 | {_nazwa}.Recipe.registerResult{1 cracked brick of thorns 10 named "&7&lMarmur"}
| |
| 33 | - | #nie dziala, prosze o pomoc ;_; (mam wildscript 1.6.1) |
| 33 | + | {_nazwa}.Recipe.register
|
| 34 | - | set {_nazwa} to "Marmur"
|
| 34 | + | |
| 35 | - | Recipe.new{ {_nazwa} }
|
| 35 | + | #Komenda na tworzenie Marmuru |
| 36 | - | {_nazwa}.Recipe.registerIngredient{1, 1 stone}
|
| 36 | + | |
| 37 | - | {_nazwa}.Recipe.registerIngredient{2, 1 stone}
|
| 37 | + | permission: marmur.use.command |
| 38 | - | {_nazwa}.Recipe.registerIngredient{3, 1 stone}
|
| 38 | + | |
| 39 | - | {_nazwa}.Recipe.registerIngredient{4, 1 stone}
|
| 39 | + | player has {@wymagane_cmd}:
|
| 40 | - | {_nazwa}.Recipe.registerIngredient{5, 1 stone}
|
| 40 | + | remove {@wymagane_cmd} from player
|
| 41 | - | {_nazwa}.Recipe.registerIngredient{6, 1 stone}
|
| 41 | + | |
| 42 | - | {_nazwa}.Recipe.registerIngredient{7, 1 stone}
|
| 42 | + | |
| 43 | - | {_nazwa}.Recipe.registerIngredient{8, 1 stone}
|
| 43 | + | |
| 44 | - | {_nazwa}.Recipe.registerIngredient{9, 1 stone}
|
| 44 | + | |
| 45 | - | {_nazwa}.Recipe.registerResult{1 cracked stone brick of thorns 10 named "&7&lMarmur"}
|
| 45 | + | |
| 46 | - | {_nazwa}.Recipe.register
|
| 46 | + | |
| 47 | if {marmur.%player%} is 2:
| |
| 48 | - | #Komenda na tworzenie Marmuru |
| 48 | + | |
| 49 | give a {@marmur} of {@enchant} named {@nazwa} to the player
| |
| 50 | - | permission: marmur.use |
| 50 | + | |
| 51 | if {marmur.%player%} is 3:
| |
| 52 | - | player has {@wymagane}:
|
| 52 | + | |
| 53 | - | remove {@wymagane} from player
|
| 53 | + | |
| 54 | give a {@marmur} of {@enchant} named {@nazwa} to the player
| |
| 55 | give a {@marmur} of {@enchant} named {@nazwa} to the player
| |
| 56 | if {marmur.%player%} is 4:
| |
| 57 | send "&aWylosowales 4 sztuki marmuru!" | |
| 58 | give a {@marmur} of {@enchant} named {@nazwa} to the player
| |
| 59 | give a {@marmur} of {@enchant} named {@nazwa} to the player
| |
| 60 | give a {@marmur} of {@enchant} named {@nazwa} to the player
| |
| 61 | give a {@marmur} of {@enchant} named {@nazwa} to the player
| |
| 62 | else: | |
| 63 | send "&4Blad:&c Nie posiadasz 27 stakow cobblestone" | |
| 64 | #Panel admina | |
| 65 | command /marmuradm [<text="pomoc">] [<items>]: | |
| 66 | permission: marmur.admin | |
| 67 | trigger: | |
| 68 | argument 1 is not "pomoc", "dodaj", "usun" or "usunall": | |
| 69 | send "&4Blad: &cBrak takiej komendy, lub zla nazwa przedmiotu!" | |
| 70 | stop | |
| 71 | argument 1 is "pomoc": | |
| 72 | send "&7 >> &6Marmur Admin Panel &7<< " | |
| 73 | send "&6/marmuradm dodaj <item> - &7Dodanie nowego itemu do listy" | |
| 74 | send "&6/marmuradm usun <item> - &7Usuwanie itemu z listy" | |
| 75 | - | if {marmur.%player%} is 5:
|
| 75 | + | |
| 76 | - | send "&aWylosowales 5 sztuk marmuru!" |
| 76 | + | |
| 77 | send "&7Skrypt stworzony przez &6AdamGrzegorz &7:)" | |
| 78 | argument 1 is "dodaj": | |
| 79 | if argument 2 is not set: | |
| 80 | send "&4Blad: &cWpisz nazwe przedmiotu!" | |
| 81 | else: | |
| 82 | - | if {marmur.%player%} is 6:
|
| 82 | + | |
| 83 | - | send "&aWylosowales 6 sztuk marmuru!" |
| 83 | + | |
| 84 | argument 1 is "usun": | |
| 85 | if argument 2 is not set: | |
| 86 | send "&4Blad: &cWpisz nazwe przedmiotu!" | |
| 87 | else: | |
| 88 | remove argument 2 from {cobblelose::*}
| |
| 89 | send "&6>> &7Usunieto &6'%arg 2%' &7z listy marmuru" | |
| 90 | argument 1 is "usunall" | |
| 91 | - | send "&4Blad:&c Nie posiadasz 9 stakow cobblestone" |
| 91 | + | |
| 92 | send "&6>> &7Usunieto &6cala liste &7marmuru bezpowrotnie!" | |
| 93 | on place of {@marmur}:
| |
| 94 | send {@wiadomosc_polozenie} to player
| |
| 95 | ||
| 96 | ||
| 97 | on break of {@marmur}:
| |
| 98 | cancel event | |
| 99 | set event-block to air | |
| 100 | damage player's tool by {@obrazenia}
| |
| 101 | drop a random item of {cobblelose::*} at event-block
| |
| 102 | ||
| 103 | command /marmurdrop: | |
| 104 | permission: marmur.drop | |
| 105 | trigger: | |
| 106 | send "&6Lista dropu z marmuru:" | |
| 107 | send "&7%{cobblelose::*}%" |