Skocz do zawartości
  • 0

Skrypt na kupowanie rang itd... (problem) na tabliczkach


Amigo
 Udostępnij

Pytanie

Witam mam problem ze skryptem:

to jest skrypt:

on rightclick on sign:
	if line 1 of clicked block is "&4&lVIP":
		if line 2 of clicked block is "&3&lCena: 1500 Coinsow":
			if line 3 of clicked block is "&4&l(Nie masz? -":
				if line 4 of clicked block is "&4&lMCTROLE.PL)":
					set line 3 to "&c&lTrwa Ładowanie"
					wait 1 second
					set line 3 to "&c&lTrwa Ładowanie."
					wait 1 second
					set line 3 to "&c&lTrwa Ładowanie.."
					wait 1 second
					set line 3 to "&c&lTrwa Ładowanie..."
					wait 1 second
					execute console command "takemoney %player% 1500"
					wait 1 second
					execute console command "give %player% diamond 64"
					set line 3 to "&a&lDziekujemy"
					set line 4 to "&a&l za zakupy"
					wait 3 second
					set line 2 to "&3&lCena: 1500 Coinsow"
					set line 3 to "&4&l(Nie masz? -"
					set line 4 to "&4&lMCTROLE.PL)"
					stop

Problem jest takI:

Wszystko działa ale nie potrafie zrobić tego tak żeby jak gracz nie ma 1500 Coinsow to zeby nie dawalo tych 64 diaxow (to jest testowo 64 diaxy xd a nie vip )

i np. pisalo że nie ma kasy

jesli mozna to prosilbym o poprawke zeby to dzialalo jak chce :)

Odnośnik do komentarza
Udostępnij na innych stronach

15 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
Spoiler

on rightclick on sign:
    if line 1 of clicked block is "&4&lVIP":
        if line 2 of clicked block is "&3&lCena: 1500 Coinsow":
            if line 3 of clicked block is "&4&l(Nie masz? -":
                if line 4 of clicked block is "&4&lMCTROLE.PL)":
                    if %player% balance is greather than 1500
                        set line 3 to "&c&lTrwa Ładowanie"
                        wait 1 second
                        set line 3 to "&c&lTrwa Ładowanie."
                        wait 1 second
                        set line 3 to "&c&lTrwa Ładowanie.."
                        wait 1 second
                        set line 3 to "&c&lTrwa Ładowanie..."
                        wait 1 second
                        execute console command "takemoney %player% 1500"
                        wait 1 second
                        execute console command "give %player% diamond 64"
                        set line 3 to "&a&lDziekujemy"
                        set line 4 to "&a&l za zakupy"
                        wait 3 second
                        set line 2 to "&3&lCena: 1500 Coinsow"
                        set line 3 to "&4&l(Nie masz? -"
                        set line 4 to "&4&lMCTROLE.PL)"
                        stop
                    else:
                        say "&4Nie masz tyle coinsow!"
                        stop

Sprawdź, a jak źle to wyślij błąd z konsoli

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

  • 0
Spoiler

on rightclick on sign:
    if line 1 of clicked block is "&4&lVIP":
        if line 2 of clicked block is "&3&lCena: 1500 Coinsow":
            if line 3 of clicked block is "&4&l(Nie masz? -":
                if line 4 of clicked block is "&4&lMCTROLE.PL)":
                    if player's balance is greather than 1500
                        set line 3 to "&c&lTrwa Ładowanie"
                        wait 1 second
                        set line 3 to "&c&lTrwa Ładowanie."
                        wait 1 second
                        set line 3 to "&c&lTrwa Ładowanie.."
                        wait 1 second
                        set line 3 to "&c&lTrwa Ładowanie..."
                        wait 1 second
                        execute console command "takemoney %player% 1500"
                        wait 1 second
                        execute console command "give %player% diamond 64"
                        set line 3 to "&a&lDziekujemy"
                        set line 4 to "&a&l za zakupy"
                        wait 3 second
                        set line 2 to "&3&lCena: 1500 Coinsow"
                        set line 3 to "&4&l(Nie masz? -"
                        set line 4 to "&4&lMCTROLE.PL)"
                        stop
                    else if player's balance is less than:
                        say "&4Nie masz tyle coinsow!"
                        stop

Spróbuj tak

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

blad :/

2018-01-263c377d.png

on rightclick on sign:
 if line 1 is "&a Sklep":
   line 2 is "Diament":
     if {konto.%player%} is higher than 2400:
       give player 1 diamond
       remove 2400 from {konto.%player%}
       send "&a Zakupiles diament za 2400 {@waluta}!"
       stop
     else:
       send "&c Nie posiadasz wystarczająco duzo kasy!"
       stop

takie cos znalazlem na tym forum

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
Spoiler

on rightclick on sign:
    if line 1 of clicked block is "&4&lVIP":
        if line 2 of clicked block is "&3&lCena: 1500 Coinsow":
            if line 3 of clicked block is "&4&l(Nie masz? -":
                if line 4 of clicked block is "&4&lMCTROLE.PL)":
                    if player's balance is greater than 1500
                        set line 3 to "&c&lTrwa Ładowanie"
                        wait 1 second
                        set line 3 to "&c&lTrwa Ładowanie."
                        wait 1 second
                        set line 3 to "&c&lTrwa Ładowanie.."
                        wait 1 second
                        set line 3 to "&c&lTrwa Ładowanie..."
                        wait 1 second
                        execute console command "takemoney %player% 1500"
                        wait 1 second
                        execute console command "give %player% diamond 64"
                        set line 3 to "&a&lDziekujemy"
                        set line 4 to "&a&l za zakupy"
                        wait 3 second
                        set line 2 to "&3&lCena: 1500 Coinsow"
                        set line 3 to "&4&l(Nie masz? -"
                        set line 4 to "&4&lMCTROLE.PL)"
                        stop
on rightclick on sign:
    if line 1 of clicked block is "&4&lVIP":
        if line 2 of clicked block is "&3&lCena: 1500 Coinsow":
            if line 3 of clicked block is "&4&l(Nie masz? -":
                if line 4 of clicked block is "&4&lMCTROLE.PL)":
                    if player's balance is less than 1500
                        say "&4Nie masz tyle coinsow!"
                        stop

nwm, moze tak *jeszcze raz*

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

  • 0

czekaj sprawdze ale dałem to żebyś zamiast tego greather dal to czy cos xd

on rightclick on sign:
	if line 1 is "&a Sklep":
		line 2 is "Diament":
			if {konto.%player%} is higher than 2400:
				give player 1 diamond
				remove 2400 from {konto.%player%}
				send "&a Zakupiles diament za 2400 Coinsow!"
				stop
			else:
				send "&c Nie posiadasz wystarczająco duzo kasy!"
				stop

niby dziala ale nie moge kupic xd musze zmienic ta walute w skrypcie

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

doba niewazne bo mam 

on rightclick on sign:
	if line 1 is "&a Sklep":
		line 2 is "Diament":
			if {money:%player%} is higher than 2400:
				give player 1 diamond
				remove 2400 from {money:%player%}
				send "&a Zakupiles diament za 2400 Coinsow!"
				stop
			else:
				send "&c Nie posiadasz wystarczająco duzo kasy!"
				stop

i caly czas jak klikam pisze ze nie mam kasy wiec trzeba zmienic to ze balance czy cos na te moje coinsy ale to nie wazne

 

Chce zebys mi pomogl zrobic to moje

on rightclick on sign:
    if line 1 of clicked block is "&4&lVIP":
        if line 2 of clicked block is "&3&lCena: 1500 Coinsow":
            if line 3 of clicked block is "&4&l(Nie masz? -":
                if line 4 of clicked block is "&4&lMCTROLE.PL)":
                    if player's balance is greather than 1500
                        set line 3 to "&c&lTrwa Ładowanie"
                        wait 1 second
                        set line 3 to "&c&lTrwa Ładowanie."
                        wait 1 second
                        set line 3 to "&c&lTrwa Ładowanie.."
                        wait 1 second
                        set line 3 to "&c&lTrwa Ładowanie..."
                        wait 1 second
                        execute console command "takemoney %player% 1500"
                        wait 1 second
                        execute console command "give %player% diamond 64"
                        set line 3 to "&a&lDziekujemy"
                        set line 4 to "&a&l za zakupy"
                        wait 3 second
                        set line 2 to "&3&lCena: 1500 Coinsow"
                        set line 3 to "&4&l(Nie masz? -"
                        set line 4 to "&4&lMCTROLE.PL)"
                        stop
                    else if player's balance is less than:
                        say "&4Nie masz tyle coinsow!"
                        stop

to jest to co mi dales @Dodner1337

 2018-01-263c377d.png

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
Spoiler

on rightclick on sign:
    if line 1 of clicked block is "&4&lVIP":
        if line 2 of clicked block is "&3&lCena: 1500 Coinsow":
            if line 3 of clicked block is "&4&l(Nie masz? -":
                if line 4 of clicked block is "&4&lMCTROLE.PL)":
                    if player's balance is greater than 1500
                        set line 3 to "&c&lTrwa Ładowanie"
                        wait 1 second
                        set line 3 to "&c&lTrwa Ładowanie."
                        wait 1 second
                        set line 3 to "&c&lTrwa Ładowanie.."
                        wait 1 second
                        set line 3 to "&c&lTrwa Ładowanie..."
                        wait 1 second
                        execute console command "takemoney %player% 1500"
                        wait 1 second
                        execute console command "give %player% diamond 64"
                        set line 3 to "&a&lDziekujemy"
                        set line 4 to "&a&l za zakupy"
                        wait 3 second
                        set line 2 to "&3&lCena: 1500 Coinsow"
                        set line 3 to "&4&l(Nie masz? -"
                        set line 4 to "&4&lMCTROLE.PL)"
                        stop
on rightclick on sign:
    if line 1 of clicked block is "&4&lVIP":
        if line 2 of clicked block is "&3&lCena: 1500 Coinsow":
            if line 3 of clicked block is "&4&l(Nie masz? -":
                if line 4 of clicked block is "&4&lMCTROLE.PL)":
                    if player's balance is less than 1500
                        say "&4Nie masz tyle coinsow!"
                        stop

Spróbuj tak i sprawdź co ci wyskakuje

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ę...