Skocz do zawartości
  • 0

Potrafi ktos poprawic?


hexero

Pytanie

if player has got 2 emeralds: <--- to nie dziala i tutaj jesli ktos potrafi to pls help
    trigger:
        add 100 to {coins.%player%} <--- to dziala mam od tego inny skrypt
        remove 2 emeralds from the player <--- to dziala
 

 

Odnośnik do komentarza
https://skript.pl/temat/39118-potrafi-ktos-poprawic/
Udostępnij na innych stronach

6 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
Teraz, xXx_Skrypter_xXx napisał:

command /wymiana:
	trigger:
		if player have 2 emerald:
			remove 2 emerald from player's inventory
			add 100 to {coins.%player%}

Powinno działać.

Ale chciałbym, żeby  to się realizowało nie po wpisaniu komendy, a wtedy gdy gracz ma 2 emeraldy

Odnośnik do komentarza
https://skript.pl/temat/39118-potrafi-ktos-poprawic/#findComment-245897
Udostępnij na innych stronach

  • 0
on join:
	while player is online:
		bEmeraldTrade(player, (amount of emeralds in {_player}'s inventory))
		wait 1 second

function bEmeraldTrade(player: player, emerald: integer):
	if {_emerald} < 2:
		stop
	else if {_emerald} >= 2:
		set {_} to (({_emerald} / 2) * 100)
		add {_} to {coins.%{_player}%}
		send "Wymieniłeś %{_emerald}% emeraldów na %{_}%$." to {_player}
		remove {_emerald} of emerald from {_player}'s inventory

 

Edytowane przez LjayPL789
Odnośnik do komentarza
https://skript.pl/temat/39118-potrafi-ktos-poprawic/#findComment-245961
Udostępnij na innych stronach

  • 0
19 godzin temu, LjayPL789 napisał:

on join:
	while player is online:
		bEmeraldTrade(player, (amount of emeralds in {_player}'s inventory))
		wait 1 second

function bEmeraldTrade(player: player, emerald: integer):
	if {_emerald} < 2:
		stop
	else if {_emerald} >= 2:
		set {_} to (({_emerald} / 2) * 100)
		add {_} to {coins.%{_player}%}
		send "Wymieniłeś %{_emerald}% emeraldów na %{_}%$." to {_player}
		remove {_emerald} of emerald from {_player}'s inventory

 

Dzięki :)

Odnośnik do komentarza
https://skript.pl/temat/39118-potrafi-ktos-poprawic/#findComment-246060
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

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