Skocz do zawartości

Rekomendowane odpowiedzi

Witam,

Oto mój najnowszy skrypt. Za tego chciałbym się wziąć poważniej i zacząć aktualizować bo jak na razie nie ma wielu funkcji.

 

Skrypt dodaje 4 komendy administracyjne:

/marmuradm dodaj <itemek> - Dodaje item do listy dropu z marmuru

/marmuradm usun <itemek - Usuwa item z listy dropu z marmuru

/marmuradm usunall - Usuwa cala liste.

/marmuradm pomoc - Informacje, spis listy i komendy.

 

oraz jedną dla gracza :)

/marmur

ta oto komenda, daje ci od 1 do 3 sztuk marmuru.

Oczywiście musisz mieć w ekwipunku wymagane itemy (które możesz ustawić w skrypcie)

 

Gdy postawisz Marmur, pojawi ci się informacja, a po wykopaniu,

otrzymasz losowy przedmiot z ustawionej listy (/marmuradm dodaj)

 

PLUGINY POTRZEBNE DO DZIAŁANIA:

- Najnowszy Skript

- WildSkript 1.6.1

 

 

DOWNLOAD:

1.0

RAW

PASTEBIN NOT RAW

1.1

RAW

PASTEBIN NOT RAW

1.3

RAW

PASTEBIN NOT RAW

 

UPRAWNIENIA:

marmur.use

marmur.admin

marmur.drop

 

TO-DO:

- Crafting 

- Zeby dropily itemy TYLKO z nazwanego Marmuru. (bo teraz dropi z kazdego bloku, nawet "cracked brick" zwyklego :(

- Poprawa nazwy z Cracked stone brick na Cracked brick

- Wiekszy zakres "losowania" marmuru.

- Sklep marmuru za pieniadze ($$)
- Inne funkcje / w tym AutoAktualizacja / AutoUpdate

- Komenda /marmurdrop

- Komenda /marmuradm usunall działająca

- Więcej opcji konfigurowania 

 

Pozdrawiam [-:

 

Niektóre funkcje zostały wzięte ze skryptu "Cobbley" by Lizak3

Otrzymałem pozwolenie (na pw) na opublikowanie jego niektórych funkcji

(np. pomógł mi jego skrypt w "on break" :))

Dlatego proszę nie hejtować że plagiat i w ogóle :)

Odnośnik do komentarza
https://skript.pl/temat/2053-marmur-skrypt-na-marmur/
Udostępnij na innych stronach

@up

Dodam crafting w następnej aktualizacji. Niestety nie będzie on możliwy póki co w "64" sztukach cobla w okienku tak jak jest to na innych serwerach HC. Coś skrypt wali :/

 

Ale będzie, już piszę aktualizacje [-:

Odnośnik do komentarza
https://skript.pl/temat/2053-marmur-skrypt-na-marmur/#findComment-17601
Udostępnij na innych stronach

- Crafting (z tym jest problem bo nie wykrywa 64 cobblestone w okienku)

tak jak @up polecam WS

Masz tu linka do craftingu

http://www.dzikoysk.net/projects/wildskript/doc/objects/Recipes.php

tzn robisz coś takiego

on load:set {_x} to "marmur"new Recipe{{_x}};{_x}.Recipe.setIngredient{1, 64 of cobblestone};{_x}.Recipe.setIngredient{2, 64 of cobblestone};{_x}.Recipe.setIngredient{3, 64 of cobblestone};{_x}.Recipe.setResult{cobblestone named "kobel">};{_x}.Recipe.register{};

Tam gdzie jest 1, 2 i 3 to kopiujesz tą linike i dajesz 4, 5, 6, 7, 8, 9

tzn te sloty wyglądają tak

1 2 3

4 5 6

7 8 9

 

@edit down był szybciej, lecz mi się coś zlagowało i musiałem edytować ;_;

Odnośnik do komentarza
https://skript.pl/temat/2053-marmur-skrypt-na-marmur/#findComment-17604
Udostępnij na innych stronach

a tu przykład:P

set {_cos} to "cobbel"Recipe.new{ {_cos} }{_cos}.Recipe.registerIngredient{1, 64 cobblestone}{_cos}.Recipe.registerIngredient{2, 64 cobblestone}{_cos}.Recipe.registerIngredient{3,  64 cobblestone}{_cos}.Recipe.registerIngredient{4, 64 cobblestone}{_cos}.Recipe.registerIngredient{6, 64 cobblestone}{_cos}.Recipe.registerIngredient{7, 64 cobblestone}{_cos}.Recipe.registerIngredient{9, 64 cobblestone}{_cos}.Recipe.registerResult{1 "cobblestone named "&cTest"}{_cos}.Recipe.register 
Edytowane przez mati770ka
Odnośnik do komentarza
https://skript.pl/temat/2053-marmur-skrypt-na-marmur/#findComment-17605
Udostępnij na innych stronach

Prawdopodobnie wildskript jest zbugowany ;_;

Spróbuj brać z craftingu nie używając SHIFTA

《☆》Wysłane z SG S4 przy użyciu tapatalk.

《☆》Za błędy/doubleposty przepraszam

Odnośnik do komentarza
https://skript.pl/temat/2053-marmur-skrypt-na-marmur/#findComment-17608
Udostępnij na innych stronach

AKTUALIZACJA 1.1

 

DODANO:

- Szablon craftingu (póki co niezbyt działa)

- Większe losowanie marmuru komendą (do 6 szt)

- Dodanie wielu opcji konfiguracji

Edytowane przez AdamGrzegorz
Odnośnik do komentarza
https://skript.pl/temat/2053-marmur-skrypt-na-marmur/#findComment-17612
Udostępnij na innych stronach

Prawdopodobnie używasz nie kompatybilny silnik.

Aby poprawnie działały wszystkie funkcje Wildskript wymagany jest Bukkit 1.7.2 R3.

W skrypcie zamiast 64 cobblestone masz 1 cobblestone

PS. PLAGIAT po małej edycji.

'{Cobblelose::*}", edytowane komendy, wiadomości i dodany config

#Wyklikane z IPhone 5S

Edytowane przez kresrek007
Odnośnik do komentarza
https://skript.pl/temat/2053-marmur-skrypt-na-marmur/#findComment-17643
Udostępnij na innych stronach

Hah!

Wiedziałem że ktoś powie że plagiat...

Wow, tak bardzo plagiat!

Wszystko zerżnięte!

Pewnie!

 

Pomyśl drugi raz zanim napiszesz takie głupstwo [-:

 

PS z {cobblelose} pomógł mi kolega, nie wiem czy wziął to skądś, ale na 100% możesz mi uwierzyć że all inne jest moje i lizaka3. :*

Odnośnik do komentarza
https://skript.pl/temat/2053-marmur-skrypt-na-marmur/#findComment-17644
Udostępnij na innych stronach

Mam też własny skrypt na.. dokładnie 'Marmur'. Wszystko działa normalnie. Dam ci mój kod na Crafting:

on load:    set {_nazwa} to "Marmur"    Recipe.new{ {_nazwa} }    {_nazwa}.Recipe.registerIngredient{1, 64 cobblestone}    {_nazwa}.Recipe.registerIngredient{2, 64 cobblestone}    {_nazwa}.Recipe.registerIngredient{3, 64 cobblestone}    {_nazwa}.Recipe.registerIngredient{4, 64 cobblestone}    {_nazwa}.Recipe.registerIngredient{5, 64 cobblestone}    {_nazwa}.Recipe.registerIngredient{6, 64 cobblestone}    {_nazwa}.Recipe.registerIngredient{7, 64 cobblestone}    {_nazwa}.Recipe.registerIngredient{8, 64 cobblestone}    {_nazwa}.Recipe.registerIngredient{9, 64 cobblestone}    {_nazwa}.Recipe.registerResult{1 cracked brick named "&2&lMarmur"}    {_nazwa}.Recipe.register
We wszystkich eventach musisz zmienić 'cracked stone brick' na 'cracked brick'!

Jeśli nadal nie działa Ci Crafting, zainstaluj najnowszą wersję Skript.

Pozwolę przerobić twój kod i będziesz miał GOTOWCA:

#Skrypt na Marmur (Cobblex/Cobbley)#Niektore skladnie naleza do Lizak3 - Udzielil mi praw do tego kodu na pw :)#Reszta kodu nalezy do mnie.#Poprawiane przez Shiworld :)#Edycja kodu dozwolona do celow wlasnych#TO-DO#- Crafting (z tym jest problem bo nie wykrywa 64 cobblestone w okienku)#- Zeby dropily itemy TYLKO z nazwanego Marmuru. (bo teraz dropi z kazdego bloku, nawet "cracked stone brick" zwyklego :(#- Poprawa bledow#- Wiekszy zakres "losowania" marmuru. (ukonczone)#- Sklep marmuru za pieniadze ($$$)#- Inne funkcje / w tym AutoAktualizacja / AutoUpdate#Milego korzystania! :)options:	marmur: cracked stone brick	wymagane: 576 cobblestone	obrazenia: 10	enchant: thorns 10	nazwa: "&7&lMarmur"	wiadomosc_polozenie: "&aPostawiles &7&lMarmur&a!"	sk: Marmur#wersja	version: 1.1#Sk = nazwa skryptu, wpisz tu swoja nazwe skryptu (np. nazwa.sk) (bez .sk)#on connect:       #TODO (nie dziala :P)	#set {marmur.crafing.two.%player%} to a random integer from 1 to 3	#set {marmur.crafing.%player%} to a random integer from 1 to 3on load:    set {_nazwa} to "Marmur"    Recipe.new{ {_nazwa} }    {_nazwa}.Recipe.registerIngredient{1, 64 cobblestone}    {_nazwa}.Recipe.registerIngredient{2, 64 cobblestone}    {_nazwa}.Recipe.registerIngredient{3, 64 cobblestone}    {_nazwa}.Recipe.registerIngredient{4, 64 cobblestone}    {_nazwa}.Recipe.registerIngredient{5, 64 cobblestone}    {_nazwa}.Recipe.registerIngredient{6, 64 cobblestone}    {_nazwa}.Recipe.registerIngredient{7, 64 cobblestone}    {_nazwa}.Recipe.registerIngredient{8, 64 cobblestone}    {_nazwa}.Recipe.registerIngredient{9, 64 cobblestone}    {_nazwa}.Recipe.registerResult{1 cracked brick named "&2&lMarmur"}    {_nazwa}.Recipe.register#Komenda na tworzenie Marmurucommand /marmur:		permission: marmur.use		trigger:				player has {@wymagane}:						remove {@wymagane} from player						clear {marmur.%player%}						wait a tick						set {marmur.%player%} to a random integer from 1 to 6						if {marmur.%player%} is 1:								send "&aWylosowales 1 sztuke marmuru!"								give a {@marmur} of {@enchant} named {@nazwa} to the player						if {marmur.%player%} is 2:								send "&aWylosowales 2 sztuki marmuru!"								give a {@marmur} of {@enchant} named {@nazwa} to the player								give a {@marmur} of {@enchant} named {@nazwa} to the player						if {marmur.%player%} is 3:								send "&aWylosowales 3 sztuki marmuru!"								give a {@marmur} of {@enchant} named {@nazwa} to the player								give a {@marmur} of {@enchant} named {@nazwa} to the player								give a {@marmur} of {@enchant} named {@nazwa} to the player						if {marmur.%player%} is 4:								send "&aWylosowales 4 sztuki marmuru!"								give a {@marmur} of {@enchant} named {@nazwa} to the player								give a {@marmur} of {@enchant} named {@nazwa} to the player								give a {@marmur} of {@enchant} named {@nazwa} to the player								give a {@marmur} of {@enchant} named {@nazwa} to the player						if {marmur.%player%} is 5:								send "&aWylosowales 5 sztuk marmuru!"								give a {@marmur} of {@enchant} named {@nazwa} to the player								give a {@marmur} of {@enchant} named {@nazwa} to the player								give a {@marmur} of {@enchant} named {@nazwa} to the player								give a {@marmur} of {@enchant} named {@nazwa} to the player								give a {@marmur} of {@enchant} named {@nazwa} to the player						if {marmur.%player%} is 6:								send "&aWylosowales 6 sztuk marmuru!"								give a {@marmur} of {@enchant} named {@nazwa} to the player								give a {@marmur} of {@enchant} named {@nazwa} to the player								give a {@marmur} of {@enchant} named {@nazwa} to the player								give a {@marmur} of {@enchant} named {@nazwa} to the player								give a {@marmur} of {@enchant} named {@nazwa} to the player								give a {@marmur} of {@enchant} named {@nazwa} to the player				else:						send "&4Blad:&c Nie posiadasz 9 stakow cobblestone" #Panel adminacommand /marmuradm [<text="pomoc">] [<items>]:        permission: marmur.admin        trigger:                argument 1 is not "pomoc", "dodaj", "usun" or "usunall":                        send "&4Blad: &cBrak takiej komendy, lub zla nazwa przedmiotu!"                        stop                argument 1 is "pomoc":                        send "&7 >>  &6Marmur Admin Panel  &7<< "                        send "&6/marmuradm dodaj <item> - &7Dodanie nowego itemu do listy"                        send "&6/marmuradm usun <item> - &7Usuwanie itemu z listy"                        send "&6/marmuradm usunall    - &7Usuwa wszystkie itemy z listy &7(&6*TEST*&"                        send "&7Lista:&c %{cobblelose::*}%"                        send "&7Skrypt stworzony przez &6AdamGrzegorz &7:)"                argument 1 is "dodaj":                        if argument 2 is not set:                                send "&4Blad: &cWpisz nazwe przedmiotu!"                        else:                                add argument 2 to {cobblelose::*}                                send "&6>> &7Dodano &6'%arg 2%'&7 do z listy marmuru"                argument 1 is "usun":                        if argument 2 is not set:                                send "&4Blad: &cWpisz nazwe przedmiotu!"                        else:                                remove argument 2 from {cobblelose::*}                                send "&6>> &7Usunieto &6'%arg 2%' &7z listy marmuru"                #nie testowane / komenda testowa                argument 1 is "usunall"                clear {cobblelose::*}                send "&6>> &7Usunieto &6cala liste &7marmuru bezpowrotnie!"on place cracked brick:	if name of player's tool is "&2&lMarmur":		send {@wiadomosc_polozenie} to player	on break cracked brick:	if name of player's tool is "&2&lMarmur":		cancel event		set event-block to air		damage player's tool by {@obrazenia}			drop a random item of {cobblelose::*} at event-block

Pozdrawiam - shiworld :)

Odnośnik do komentarza
https://skript.pl/temat/2053-marmur-skrypt-na-marmur/#findComment-17660
Udostępnij na innych stronach

AKTUALIZACJA 1.3

 

DODANO:

- Crafting (9x64 cobblestone)

- Zmniejszono losowanie do 4

                                    - Zwiększono ceny komendy /marmur do 27 stacków cobla (bo losuje więcej niż 1)

- Komenda /marmuradm usunall już działa poprawnie!

- Dodano komendę /marmurdrop dla graczy.

 

USUNIĘTO:

- Zbędne komentarze.

 

 

 

PS: @up 

if name of player's tool is "&2&lMarmur":

To nie działa poprawnie do 

on break cracked brick

bo trzeba kopać trzymając w ręce "marmur". Tak btw mówię [-:

Edytowane przez AdamGrzegorz
Odnośnik do komentarza
https://skript.pl/temat/2053-marmur-skrypt-na-marmur/#findComment-17664
Udostępnij na innych stronach

  • 2 tygodnie później...
  • 1 miesiąc temu...

Wgrałem na serwer a w konsoli : 

'Recipe.new{ {_nazwa} }' is not a boolean (yes/no) (coblex.sk, line 22: Recipe.new{ {_nazwa} }')'{_nazwa}.Recipe.register' is not a boolean (yes/no) (coblex.sk, line 33: {_nazwa}.Recipe.register')
Odnośnik do komentarza
https://skript.pl/temat/2053-marmur-skrypt-na-marmur/#findComment-29631
Udostępnij na innych stronach

Dołącz do dyskusji

Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.

Nieaktywny
Dodaj odpowiedź do tematu...

×   Wklejono zawartość z formatowaniem.   Usuń formatowanie

  Dozwolonych jest tylko 75 emoji.

×   Odnośnik został automatycznie osadzony.   Przywróć wyświetlanie jako odnośnik

×   Przywrócono poprzednią zawartość.   Wyczyść edytor

×   Nie możesz bezpośrednio wkleić grafiki. Dodaj lub załącz grafiki z adresu URL.

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...