Skocz do zawartości
  • 0

Waluta mc


Daanny
 Udostępnij

Pytanie

Potrzebuje skrypt który stworzy własną walutę (redcoins). Waluta będzie przyznawana na spędzony czas na serwie i będzie można za nią kupować itemki w gui + Sklep w gui na itemki kilof netherytowy niezniszczalność 100 wydajność 7 fortuna 4[2000 redcoinsow], set netherytowy niezniszczalnosc 100 ochrona 8 , ciernie 6 , ogniodpornosc 7[500 redcoinsow] . mieczyk ostrosc 10 , zaklety ogien 8 , odrzut 6 , grabierz 4 [700 redcoinsow] łuk moc 10 , nieszkonczonosc , plomen 8 , uderzenie 5 [1000 redcoinsow] siekiera enchanty tak jak kilof [1500 redcoinsow] kox jabłka 1szt [10 redcoinsow] enderperla16szt[5redcoinsow] waluta bedzie przyznawana w ilosci 3 na 15minut

+ vip[1000 redcoinsow] svip[2000 redcoinsow] plugin do rank lp

Odnośnik do komentarza
Udostępnij na innych stronach

5 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
on join:
	while player is online:
		wait 15 minutes
		set {balance::%player%} to {balance::%player%} + 3 if player is online
		send "&7Otrzymales 3 redcoiny za 15 minut gry."
		
command /sklep:
	trigger:
		set {_sklep} to chest inventory with 3 rows named "&6Sklep"
		set {_sklep}'s slot 0 to emerald named "&4Posiadane redcoiny:" with lore "&c%{balance::%player%}%"
		
		set {_sklep}'s slot 2 to netherite pickaxe of efficiency 7, unbreaking 100 and fortune 4 named "&cNetherytowy kilof" with lore "&cCena: 2000 redcoinsow"
		set {_sklep}'s slot 3 to netherite axe of efficiency 7, unbreaking 100 and fortune 4 named "&cNetherytowa siekiera" with lore "&cCena: 1500 redcoinsow"
		set {_sklep}'s slot 4 to netherite chestplate of protection 8, thorns 6, fire protection 7 and unbreaking 100 named "&cNetherytowy set" with lore "&cCena: 500 redcoinsow"
		set {_sklep}'s slot 5 to netherite sword of sharpness 10, fire aspect 8, knockback 6 and looting 4 named "&cNetherytowy miecz" with lore "&cCena: 700 redcoinsow"
		set {_sklep}'s slot 6 to bow of power 10, infinity, flame 8 and punch 5 named "&6Luk" with lore "&cCena: 1000 redcoinsow"
		set {_sklep}'s slot 7 to enchanted golden apple named "&eKoxy" with lore "&cCena: 10 redcoinsow"
		set {_sklep}'s slot 8 to 16 ender pearls named "&5Perly" with lore "&cCena: 5 redcoinsow"
		set {_sklep}'s slot 9 to paper named "&6VIP" with lore "&cCena: 1000 redcoinsow"
		set {_sklep}'s slot 10 to paper named "&6&lSVIP" with lore "&cCena: 2000 redcoinsow"
		open {_sklep}
		
function kup(p: player, cena: integer, item: item):
	{balance::%{_p}%} >= {_cena}
	set {balance::%{_p}%} to {balance::%{_p}%} - {_cena}
	give {_item} to {_p}
		
on inventory click:
	if event-inventory's name = "&6Sklep":
		cancel event
		if clicked slot = 2:
			kup(player, 2000, (netherite pickaxe of efficiency 7 and unbreaking 100 and fortune 4))
		if clicked slot = 3:
			kup(player, 1500, (netherite axe of efficiency 7 and unbreaking 100 and fortune 4))
		if clicked slot = 4:
			{balance::%player%} >= 500
			set {balance::%player%} to {balance::%player%} - 500
			give netherite helmet of protection 8, thorns 6, fire protection 7 and unbreaking 100 to player
			give netherite chestplate of protection 8, thorns 6, fire protection 7 and unbreaking 100 to player
			give netherite leggings of protection 8, thorns 6, fire protection 7 and unbreaking 100 to player
			give netherite boots of protection 8, thorns 6, fire protection 7 and unbreaking 100 to player
		if clicked slot = 5:
			kup(player, 700, (netherite sword of sharpness 10 and fire aspect 8 and knockback 6 and looting 4))
		if clicked slot = 6:
			kup(player, 1000, (bow of power 10 and infinity and flame 8 and punch 5))
		if clicked slot = 7:
			kup(player, 10, enchanted golden apple)
		if clicked slot = 8:
			kup(player, 5, 16 ender pearls)
		if clicked slot = 9:
			{balance::%player%} >= 1000
			set {balance::%player%} to {balance::%player%} - 1000
			execute console command "lp user %player% parent set vip"
		if clicked slot = 10:
			{balance::%player%} >= 2000
			set {balance::%player%} to {balance::%player%} - 2000
			execute console command "lp user %player% parent set svip"

nie sprawdzałem jak coś

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
6 godzin temu, 3meraldK napisał:

on join:
	while player is online:
		wait 15 minutes
		set {balance::%player%} to {balance::%player%} + 3 if player is online
		send "&7Otrzymales 3 redcoiny za 15 minut gry."
		
command /sklep:
	trigger:
		set {_sklep} to chest inventory with 3 rows named "&6Sklep"
		set {_sklep}'s slot 0 to emerald named "&4Posiadane redcoiny:" with lore "&c%{balance::%player%}%"
		
		set {_sklep}'s slot 2 to netherite pickaxe of efficiency 7, unbreaking 100 and fortune 4 named "&cNetherytowy kilof" with lore "&cCena: 2000 redcoinsow"
		set {_sklep}'s slot 3 to netherite axe of efficiency 7, unbreaking 100 and fortune 4 named "&cNetherytowa siekiera" with lore "&cCena: 1500 redcoinsow"
		set {_sklep}'s slot 4 to netherite chestplate of protection 8, thorns 6, fire protection 7 and unbreaking 100 named "&cNetherytowy set" with lore "&cCena: 500 redcoinsow"
		set {_sklep}'s slot 5 to netherite sword of sharpness 10, fire aspect 8, knockback 6 and looting 4 named "&cNetherytowy miecz" with lore "&cCena: 700 redcoinsow"
		set {_sklep}'s slot 6 to bow of power 10, infinity, flame 8 and punch 5 named "&6Luk" with lore "&cCena: 1000 redcoinsow"
		set {_sklep}'s slot 7 to enchanted golden apple named "&eKoxy" with lore "&cCena: 10 redcoinsow"
		set {_sklep}'s slot 8 to 16 ender pearls named "&5Perly" with lore "&cCena: 5 redcoinsow"
		set {_sklep}'s slot 9 to paper named "&6VIP" with lore "&cCena: 1000 redcoinsow"
		set {_sklep}'s slot 10 to paper named "&6&lSVIP" with lore "&cCena: 2000 redcoinsow"
		open {_sklep}
		
function kup(p: player, cena: integer, item: item):
	{balance::%{_p}%} >= {_cena}
	set {balance::%{_p}%} to {balance::%{_p}%} - {_cena}
	give {_item} to {_p}
		
on inventory click:
	if event-inventory's name = "&6Sklep":
		cancel event
		if clicked slot = 2:
			kup(player, 2000, (netherite pickaxe of efficiency 7 and unbreaking 100 and fortune 4))
		if clicked slot = 3:
			kup(player, 1500, (netherite axe of efficiency 7 and unbreaking 100 and fortune 4))
		if clicked slot = 4:
			{balance::%player%} >= 500
			set {balance::%player%} to {balance::%player%} - 500
			give netherite helmet of protection 8, thorns 6, fire protection 7 and unbreaking 100 to player
			give netherite chestplate of protection 8, thorns 6, fire protection 7 and unbreaking 100 to player
			give netherite leggings of protection 8, thorns 6, fire protection 7 and unbreaking 100 to player
			give netherite boots of protection 8, thorns 6, fire protection 7 and unbreaking 100 to player
		if clicked slot = 5:
			kup(player, 700, (netherite sword of sharpness 10 and fire aspect 8 and knockback 6 and looting 4))
		if clicked slot = 6:
			kup(player, 1000, (bow of power 10 and infinity and flame 8 and punch 5))
		if clicked slot = 7:
			kup(player, 10, enchanted golden apple)
		if clicked slot = 8:
			kup(player, 5, 16 ender pearls)
		if clicked slot = 9:
			{balance::%player%} >= 1000
			set {balance::%player%} to {balance::%player%} - 1000
			execute console command "lp user %player% parent set vip"
		if clicked slot = 10:
			{balance::%player%} >= 2000
			set {balance::%player%} to {balance::%player%} - 2000
			execute console command "lp user %player% parent set svip"

nie sprawdzałem jak coś

Nie działa komenda sklep i jak dodac coinsy ?

 

Odnośnik do komentarza
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
Odpowiedz na pytanie...

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

 Udostępnij

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

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