Skocz do zawartości
  • 0

Skrypt na itemshop


vkvbuss
 Udostępnij

Pytanie

Potrzebuję skrypt na komendę /itemshop.

Chodzi dokładnie o to, że po wpisaniu komendy /itemshop pojawia się:

Poprawne użycie: /itemshop [nick] [usluga]

(linia nizej) DOSTEPNE USLUGI: SUPERVIP

uslugi:SUPERVIP, oraz zeby pojawial sie komunikat na chacie, że GRACZ zakupil range SUPERVIP.

 

 

napisalem sam taki skrypt, tyle ze po wpisaniu /itemshop nick VIP to ciagle dawalo na moj ;d

za pomoc daje 5 plusikow!

 

 

@edit

Zeby tylko gracze z permissja mogli to uzywac

Edytowane przez vkvbuss
Odnośnik do komentarza
Udostępnij na innych stronach

16 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

command /svip %arg 1% %arg 2%:
    trigger:
        send "&7&m---------------------------------------------------"
        send "&8* &7GRACZ %arg1 % zakupil range"
        send "&8* &7%arg 2% na 30 dni!"
        send "&8* &7Dziekujemy"
        send "&7&m---------------------------------------------------"

 

Takie cos? w %arg1% wpisujesz gracza a w %arg 2% wpisujesz Monety VIP SVIP co chcesz

Edytowane przez Smoczek111
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

command /svip %arg 1% %arg 2%:
    trigger:
        send "&7&m---------------------------------------------------"
        send "&8* &7GRACZ %arg1 % zakupil range"
        send "&8* &7%arg 2% na 30 dni!"
        send "&8* &7Dziekujemy"
        send "&7&m---------------------------------------------------"

       execute console command "/pex user %arg 1% group set %arg 2%"

 

 lub

execute console command "/give %arg 1% diamond_sword"

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
Teraz, Smoczek111 napisał:

command /svip %arg 1% %arg 2%:
    trigger:
        send "&7&m---------------------------------------------------"
        send "&8* &7GRACZ %arg1 % zakupil range"
        send "&8* &7%arg 2% na 30 dni!"
        send "&8* &7Dziekujemy"
        send "&7&m---------------------------------------------------"

       execute console command "/pex user %arg 1% group set %arg 2%"

 

 lub

execute console command "/give %arg 1% diamond_sword"

ehh nie rozumiesz chyba tego o co proszę :/

zeby była komenda /itemshop i przez nia dawalo się uslugi.

poczekam na inne odp.

jak bedzie trzeba dam link do filmu gdzie jest to pokazane komendą

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

command /itemshop <text> <text>:
    usage: /itemshop <nick> <usluga>
    trigger:
        if arg 1 is not set:
            if arg 2 is not set:
                send "&7Dostepne uslugi: &8SUPERVIP"
                send "/itemshop <nick> <usluga>"
        if arg 1 is set:
            if arg 2 is set:
                send "&e&l--------------------------------------------"
                send "&6&lGracz &e&l%arg 1% &6&lzakupil range &6&lSVIP"
                send "&e&l--------------------------------------------"
        else:
            send "/itemshop <nick> <usluga>"
            else:
            send "/itemshop <nick> <usluga>"

Na 100% bedzie dzialac

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
14 minut temu, Kondi60PL napisał:

Zarejestruj się lub zaloguj, aby zobaczyć ukrytą treść!ie testowalem:

Zarejestruj się lub zaloguj, aby zobaczyć ukrytą treść!

[11:12:39 INFO]: [Skript] Reloading komenda.sk...
[11:12:39 ERROR]: indentation error: expected 1 tab, but found 4 spaces (komenda.sk, line 3: permission message: &cNie masz uprawnien do uzycia tej komendy')
[11:12:39 ERROR]: indentation error: expected 2 tabs, but found '____->' [-> = tab, _ = space, ? = other whitespace] (komenda.sk, line 5: if arg 1 is not set:')
[11:12:39 ERROR]: indentation error: expected 2 tabs, but found '________->' [-> = tab, _ = space, ? = other whitespace] (komenda.sk, line 6: if arg 2 is not set:')
[11:12:39 ERROR]: indentation error: expected 2 tabs, but found '________->->' [-> = tab, _ = space, ? = other whitespace] (komenda.sk, line 7: send "&cPoprawne uzycie: /itemshop [nick] [SVIP/VIP"')
[11:12:39 ERROR]: indentation error: expected 2 tabs, but found 16 spaces (komenda.sk, line 8: stop')
[11:12:39 ERROR]: indentation error: expected 3 tabs, but found '________->' [-> = tab, _ = space, ? = other whitespace] (komenda.sk, line 10: if arg 2 is "SVIP" or "VIP":')
[11:12:39 ERROR]: indentation error: expected 3 tabs, but found '____________->' [-> = tab, _ = space, ? = other whitespace] (komenda.sk, line 11: execute server command "pex user %arg 1% group set %arg 2%"')
[11:12:39 ERROR]: indentation error: expected 3 tabs, but found '____________->' [-> = tab, _ = space, ? = other whitespace] (komenda.sk, line 12: broadcast "&7---------------"')
[11:12:39 ERROR]: indentation error: expected 3 tabs, but found 16 spaces (komenda.sk, line 13: broadcast " "')
[11:12:39 ERROR]: indentation error: expected 3 tabs, but found 16 spaces (komenda.sk, line 14: broadcast "&6%arg 1% &7zakupil range &6%arg 2%')
[11:12:39 ERROR]: indentation error: expected 3 tabs, but found 16 spaces (komenda.sk, line 15: broadcast "&7Dziekujemy za wsparcie serwera!"')
[11:12:39 ERROR]: indentation error: expected 3 tabs, but found 16 spaces (komenda.sk, line 16: broadcast " "')
[11:12:39 ERROR]: indentation error: expected 3 tabs, but found 4 tabs (komenda.sk, line 17: broadcast "&7---------------"')
[11:12:39 ERROR]: indentation error: expected 3 tabs, but found 16 spaces (komenda.sk, line 18: stop')
[11:12:39 WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (komenda.sk, line 9: if arg 1 is set:')
[11:12:39 ERROR]: indentation error: expected 3 tabs, but found '________->' [-> = tab, _ = space, ? = other whitespace] (komenda.sk, line 20: send "&4Blad: &cGracz %arg 1% jest offline!"')
[11:12:39 ERROR]: indentation error: expected 3 tabs, but found 12 spaces (komenda.sk, line 21: stop')
[11:12:39 INFO]: [Skript] Encountered 16 errors while reloading komenda.sk
5 minut temu, xxdamixx napisał:

command /itemshop <text> <text>:
    usage: /itemshop <nick> <usluga>
    trigger:
        if arg 1 is not set:
            if arg 2 is not set:
                send "&7Dostepne uslugi: &8SUPERVIP"
                send "/itemshop <nick> <usluga>"
        if arg 1 is set:
            if arg 2 is set:
                send "&e&l--------------------------------------------"
                send "&6&lGracz &e&l%arg 1% &6&lzakupil range &6&lSVIP"
                send "&e&l--------------------------------------------"
        else:
            send "/itemshop <nick> <usluga>"
            else:
            send "/itemshop <nick> <usluga>"

Na 100% bedzie dzialac

[11:13:44 INFO]: [Skript] Reloading komenda.sk...
[11:13:44 WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (komenda.sk, line 15: else:')
[11:13:44 ERROR]: 'else' has to be placed just after an 'if' or 'else if' section (komenda.sk, line 15: else:')
[11:13:44 INFO]: [Skript] Encountered 1 error while reloading komenda.sk!
 
 
 
 
+ nie daje automatycznie rangi
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

Umialbys jeszcze tutaj dodać, żeby mozna bylo kupowac vipa itp?

bo jak to kopiuje i zamiast supervip daje vip to nie dziala xdd

command /itemshop [<text>] [<text>]:


    permission : admin.bc
    trigger:
        if arg 2 is not set:
            send "&7Uzyj: &c/itemshop <nick> <usluga>"
            send "&a&lDOSTEPNE USLUGI: &5&lSUPERVIP"
        else:
            broadcast "&e&l--------------------------------------------"
            broadcast "&6&lGracz &e&l%arg 1% &6&lzakupil range &6&lSVIP"
            broadcast "&e&l--------------------------------------------"
            execute console command "pex user %arg 1% group set supervip"

chodzi zeby dzialalo rowniez /itemshop nick vip i dawalo range vip

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
2 minuty temu, vkvbuss napisał:

Umialbys jeszcze tutaj dodać, żeby mozna bylo kupowac vipa itp?

bo jak to kopiuje i zamiast supervip daje vip to nie dziala xdd

 

Zarejestruj się lub zaloguj, aby zobaczyć ukrytą treść! Ukryj zawartość

command /itemshop [<text>] [<text>]:


    permission : admin.bc
    trigger:
        if arg 2 is not set:
            send "&7Uzyj: &c/itemshop <nick> <usluga>"
            send "&a&lDOSTEPNE USLUGI: &5&lSUPERVIP"
        else:
            broadcast "&e&l--------------------------------------------"
            broadcast "&6&lGracz &e&l%arg 1% &6&lzakupil range &6&lSVIP"
            broadcast "&e&l--------------------------------------------"
            execute console command "pex user %arg 1% group set supervip"

 

chodzi zeby dzialalo rowniez /itemshop nick vip i dawalo range vip

Możesz to już zamknąć. Jak przyjadę (13.10) rozbuduje Ci to i dam na pw.

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

aa sry

command /svip %arg 1% %arg 2%:
    trigger:
        broadcast "&7&m---------------------------------------------------"
        broadcast "&8* &7GRACZ %arg1 % zakupil range"
        broadcast "&8* &7%arg 2% na 30 dni!"
        broadcast "&8* &7Dziekujemy"
        broadcast "&7&m---------------------------------------------------"

Odnośnik do komentarza
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

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

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