Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Coinsy - prosba o napisanie skryptu


Marczi12

Rekomendowane odpowiedzi

Opublikowano

Tak jak w temacie znalazł by się ktoś ko mógłby napisac mi skrypt na tak zwane "coinsy". Próbowałem wiele razy ale w jezyku skript jestem bardzo słaby i przychodze do was z prośbą o napisanie tego o własnie skryptu. Jak by ktoś sie podjął to wymagania skryptu:

- drop z mobów/stona,

- sklep w gui,

- pare przedmiotów:

  1. vip na 30 dni
  2. 32X koxy
  3. set 4/3
  4. mieczyk 5/2

 

Jak ktos sie podejmie to wielkie dzieki :).

Ps. Skrypt ni ejest mi potrzebny na teraz moze byc nwm za miesac badz dłużej

Opublikowano

To powiedz od razu szanse na coinsy i ile ma ich loocic, czy wymagana fortunka by wypadalo wiecej, lob looting (w przypadku mobow),

powiedz cene za te przedmioty :)

Jeżeli pomogłem, daj + Ciebie nic nie kosztuje Mi znaczy wiele.

 

 

 

 

 

 

 

Zachęcam do podsyłania pomysłów na film jako poradniki na YouTube

 

Opublikowano

To powiedz od razu szanse na coinsy i ile ma ich loocic, czy wymagana fortunka by wypadalo wiecej, lob looting (w przypadku mobow),

powiedz cene za te przedmioty :)

Szansa taka jaka ustalisz zeby mozna było zmienic.nie no fortunki juz nie :D looting moze byc :) No nwm cena za vipa 5k coin, 32x kox 100 coin, set 4/3 500 coin, miecz 5/2 tez 500

Opublikowano

Coś tutaj wysmarkałem, nie testowałem tylko czy wypadają coinsy z mobów a tak reszta działa :)

 

 

 

options:
	szansaStone: 20
	maxcoinsStone: 5
	
	szansaMob: 30
	maxcoinsMob: 5
	addCoinsfor1looting: 2 #Ile moze dodac coinsow za 1 lvl lootinga (czyli moze wiecej 6 coinsow wypasc, więc 5+6 to 11)
	
	costVip: 5000
	cost32EnchApple: 100
	costSet: 500
	costSword: 500
	
	groupVip: vip
variables:
	{coins.drop.mob} = true
	{coins.drop.stone} = true
on death:
	if {coins.drop.mob} is true:
		chance of {@szansaMob}%:
			loop all players:
				if "%victim%" is "%loop-player%":
					stop
				if "%attacker%" is "%loop-player%":
					set {_att} to loop-player
					exit loop
			if {_att} is not set:
				stop
			set {_stanardCoins} to random integer between 0 and {@maxcoinsMob}
			set {_addCoins} to 0
			if {_att}'s tool is enchanted with looting:
				if {_att}'s tool is enchanted with looting 1:
					set {_lot} to 1
				if {_att}'s tool is enchanted with looting 2:
					set {_lot} to 2
				else:
					set {_lot} to 3
				set {_maxLot} to {_lot}*{@addCoinsfor1looting}
				set {_addCoins} to random integer between 0 and {_maxLot}
			if {_stanardCoins}+{_addCoins} is larger than 0:
				add {_stanardCoins}+{_addCoins} to {coins::%player%}
				if {coins::%player%::mobsend} is true:
					send "&8[&aCoins&8] &cDodano &6%{_stanardCoins}+{_addCoins}% &ccoinsow."
on break of stone:
	if {coins.drop.stone} is true:
		chance of {@szansaStone}%:
			set {_stanardCoins} to random integer between 0 and {@maxcoinsStone}
			if {_stanardCoins} is larger than 0:
				add {_stanardCoins} to {coins::%player%}
				if {coins::%player%::stonesend} is true:
					send "&8[&aCoins&8] &cDodano &6%{_stanardCoins}% &ccoinsow."
on join:
	if {coins::%player%} is not set:
		set {coins::%player%} to 0
		set {coins::%player%::mobsend} to false
		set {coins::%player%::stonesend} to false
command /coins [<text>] [<text>]:
	trigger:
		if arg 1 is not set:
			if player has permission "coins.admin":
				send "&cKomendy coinsow by Knugi"
				send "&a/coins mob <on/off> &8- &7wlacza/wylacza drop coinsow z mobow"
				send "&a/coins stone <on/off< &8- &7wlacza/wylacza drop coinsow z stone"
				send "&a/coins sklep &8- &7wlacza sklep"
				stop
			execute player command "coins sklep"
		if player has permission "coins.admin":
			if arg 1 is "dodaj":
				if arg 2 is set:
					set {_arg} to "%arg 2%" parsed as integer
					add {_arg} to {coins::%player%}
					send "&8[&aCoins&8] &cDodano &6%arg 2% &ccoinsow."
				stop
			if arg 1 is "mob":
				if arg 2 is not set:
					send "&cPoprawne uzycie: &b/coins mob <on/off>"
					stop
				if arg 2 is "on":
					if {coins.drop.mob} is true:
						send "&8[&aCoins&8] &cDrop coinsow z mobow jest juz wlaczony."
						stop
					set {coins.drop.mob} to true
					broadcast "&8[&aCoins&8] &aDrop coinsow z mobow zostal wlaczony."
					stop
				if arg 2 is "off":
					if {coins.drop.mob} is false:
						send "&8[&aCoins&8] &cDrop coinsow z mobow jest juz wylaczony."
						stop
					set {coins.drop.mob} to false
					broadcast "&8[&aCoins&8] &cDrop coinsow z mobow zostal wylaczony."
					stop
				send "&cPoprawne uzycie: &b/coins mob <on/off>"
				stop
			if arg 1 is "stone":
				if arg 2 is not set:
					send "&cPoprawne uzycie: &b/coins stone <on/off>"
					stop
				if arg 2 is "on":
					if {coins.drop.stone} is true:
						send "&8[&aCoins&8] &cDrop coinsow z stone jest juz wlaczony."
						stop
					set {coins.drop.stone} to true
					broadcast "&8[&aCoins&8] &aDrop coinsow z stone zostal wlaczony."
					stop
				if arg 2 is "off":
					if {coins.drop.stone} is false:
						send "&8[&aCoins&8] &cDrop coinsow z stone jest juz wylaczony."
						stop
					set {coins.drop.stone} to false
					broadcast "&8[&aCoins&8] &cDrop coinsow z stone zostal wylaczony."
					stop
				send "&cPoprawne uzycie: &b/coins stone <on/off>"
				stop
		open chest with 3 rows named "&6Sklep coins" to player
		wait 2 tick
		set player's current inventory's slot 1 to paper named "&6Vip" with lore "&6Na 30 dni||&cKoszt: &b{@costVip}||&3Posiadasz: &e%{coins::%player%}% coinsow"
		set player's current inventory's slot 2 to 32 322:1 with lore "&cKoszt: &b{@cost32EnchApple}||&3Posiadasz: &e%{coins::%player%}% coinsow"
		set player's current inventory's slot 3 to diamond chestplate of protection 4 and unbreaking 3 named "&6Ubranie killera" with lore "&6Diamond helmet 4/3||&6Diamond chestplate 4/3||&6Diamond leggings 4/3||&6Diamond boots 4/3||&cKoszt: &b{@costSet}||&3Posiadasz: &e%{coins::%player%}% coinsow"
		set player's current inventory's slot 4 to diamond sword of sharpness 5 and fire aspect 2 named "&6Miecz killera" with lore "&cKoszt: &b{@costSword}||&3Posiadasz: &e%{coins::%player%}% coinsow"
		set {_statusMob} to "&6Drop coinsow: %{coins.drop.mob}%"
		set {_statusStone} to "&6Drop coinsow: %{coins.drop.stone}%"
		replace "false" in {_statusMob} with "&cWylaczone"
		replace "false" in {_statusStone} with "&cWylaczone"
		replace "true" in {_statusStone} with "&aWlaczone"
		replace "true" in {_statusMob} with "&aWlaczone"
		if {coins::%player%::mobsend} is false:
			set player's current inventory's slot 25 to zombie head named "&6Drop coinsow z mobow" with lore "&cPowiadomienia: &4Wylaczone||&aKliknij aby wlaczyc.||%{_statusMob}%"
		else if {coins::%player%::mobsend} is true:
			set player's current inventory's slot 25 to zombie head named "&6Drop coinsow z mobow" with lore "&cPowiadomienia: &aWlaczone||&aKliknij aby wylaczyc.||%{_statusMob}%"
		if {coins::%player%::stonesend} is false:
			set player's current inventory's slot 26 to wooden pickaxe named "&6Drop coinsow z stone" with lore "&cPowiadomienia: &4Wylaczone||&aKliknij aby wlaczyc.||%{_statusStone}%"
		else if {coins::%player%::stonesend} is true:
			set player's current inventory's slot 26 to wooden pickaxe named "&6Drop coinsow z stone" with lore "&cPowiadomienia: &aWlaczone||&aKliknij aby wylaczyc.||%{_statusStone}%"
		stop 
on inventory click:
	if "%inventory name of player's current inventory%" is "&6Sklep coins":
		cancel event
		if "%player's current inventory's slot slot%" is "air":
			stop
		set {_statusMob} to "&6Status: %{coins.drop.mob}%"
		set {_statusStone} to "&6Status: %{coins.drop.stone}%"
		replace "false" in {_statusMob} with "&cWylaczony"
		replace "false" in {_statusStone} with "&cWylaczony"
		replace "true" in {_statusStone} with "&aWlaczony"
		replace "true" in {_statusMob} with "&aWlaczony"
		if player's current inventory's slot slot is 397:2:
			if uncoloured lore of player's current inventory's slot slot contains "Powiadomienia: Wylaczone":
				set {coins::%player%::mobsend} to true
				set player's current inventory's slot slot to zombie head named "&6Drop coinsow z mobow" with lore "&cPowiadomienia: &aWlaczone||&aKliknij aby wylaczyc.||%{_statusMob}%"
				stop
			set {coins::%player%::mobsend} to false
			set player's current inventory's slot 25 to zombie head named "&6Drop coinsow z mobow" with lore "&cPowiadomienia: &4Wylaczone||&aKliknij aby wlaczyc.||%{_statusMob}%"
			stop
		if player's current inventory's slot slot is wooden pickaxe:
			if uncoloured lore of player's current inventory's slot slot contains "Powiadomienia: Wylaczone":
				set {coins::%player%::stonesend} to true
				set player's current inventory's slot 26 to wooden pickaxe named "&6Drop coinsow z stone" with lore "&cPowiadomienia: &aWlaczone||&aKliknij aby wylaczyc.||%{_statusStone}%"
				stop
			set {coins::%player%::stonesend} to false
			set player's current inventory's slot 26 to wooden pickaxe named "&6Drop coinsow z stone" with lore "&cPowiadomienia: &4Wylaczone||&aKliknij aby wlaczyc.||%{_statusStone}%"
			stop
		if player's current inventory's slot slot is paper:
			if {coins::%player%} is larger than or equal to {@costVip}:
				execute console command "pex user %player% group set {@groupVip}"
				remove {@costVip} from {coins::%player%}
				send "&8[&aCoins&8] &6Zakupiles Vip'a"
				stop
			send "&8[&aCoins&8] &cNie masz tyle coinsow."
			stop
		if player's current inventory's slot slot is 322:1:
			if {coins::%player%} is larger than or equal to {@cost32EnchApple}:
				if player has enough space for 32 322:1:
					give 32 322:1 to player
					remove {@cost32EnchApple} from {coins::%player%}
					send "&8[&aCoins&8] &6Zakupiles 32 koxow"
					stop
				send "&8[&aCoins&8] &cNie posiadasz miejsca w ekwipunku."
				stop
			send "&8[&aCoins&8] &cNie masz tyle coinsow."
			stop
		if player's current inventory's slot slot is diamond chestplate:
			if {coins::%player%} is larger than or equal to {@costSet}:
				if player has enough space for 256 cobblestone:
					give diamond helmet of protection 4 and unbreaking 3 to player
					give diamond chestplate of protection 4 and unbreaking 3 to player
					give diamond leggings of protection 4 and unbreaking 3 to player
					give diamond boots of protection 4 and unbreaking 3 to player
					remove {@costSet} from {coins::%player%}
					send "&8[&aCoins&8] &6Zakupiles set 4/3"
					stop
				send "&8[&aCoins&8] &cNie posiadasz miejsca w ekwipunku"
				stop
			send "&8[&aCoins&8] &cNie masz tyle coinsow."
			stop
		if player's current inventory's slot slot is diamond sword:
			if {coins::%player%} is larger than or equal to {@costSword}:
				if player has enough space for diamond sword:
					give diamond sword of sharpness 5 and fire aspect 2 to player
					remove {@costSword} from {coins::%player%}
					send "&8[&aCoins&8] &6Zakupiles miecz"
					stop
				send "&8[&aCoins&8] &cNie posiadasz miejsca w ekwipunku"
				stop
			send "&8[&aCoins&8] &cNie masz tyle coinsow."
			stop

 

 

Jeżeli pomogłem, daj + Ciebie nic nie kosztuje Mi znaczy wiele.

 

 

 

 

 

 

 

Zachęcam do podsyłania pomysłów na film jako poradniki na YouTube

 

Opublikowano

Coś tutaj wysmarkałem, nie testowałem tylko czy wypadają coinsy z mobów a tak reszta działa :)

 

 

 

options:
	szansaStone: 20
	maxcoinsStone: 5
	
	szansaMob: 30
	maxcoinsMob: 5
	addCoinsfor1looting: 2 #Ile moze dodac coinsow za 1 lvl lootinga (czyli moze wiecej 6 coinsow wypasc, więc 5+6 to 11)
	
	costVip: 5000
	cost32EnchApple: 100
	costSet: 500
	costSword: 500
	
	groupVip: vip
variables:
	{coins.drop.mob} = true
	{coins.drop.stone} = true
on death:
	if {coins.drop.mob} is true:
		chance of [email protected]<script data-cfhash='f9e31' type="text/javascript">/*  */</script>}%:
			loop all players:
				if "%victim%" is "%loop-player%":
					stop
				if "%attacker%" is "%loop-player%":
					set {_att} to loop-player
					exit loop
			if {_att} is not set:
				stop
			set {_stanardCoins} to random integer between 0 and [email protected]/*  */}
			set {_addCoins} to 0
			if {_att}'s tool is enchanted with looting:
				if {_att}'s tool is enchanted with looting 1:
					set {_lot} to 1
				if {_att}'s tool is enchanted with looting 2:
					set {_lot} to 2
				else:
					set {_lot} to 3
				set {_maxLot} to [email protected]/*  */}
				set {_addCoins} to random integer between 0 and {_maxLot}
			if {_stanardCoins}+{_addCoins} is larger than 0:
				add {_stanardCoins}+{_addCoins} to {coins::%player%}
				if {coins::%player%::mobsend} is true:
					send "&8[&aCoins&8] &cDodano &6%{_stanardCoins}+{_addCoins}% &ccoinsow."
on break of stone:
	if {coins.drop.stone} is true:
		chance of [email protected]/*  */}%:
			set {_stanardCoins} to random integer between 0 and [email protected]/*  */}
			if {_stanardCoins} is larger than 0:
				add {_stanardCoins} to {coins::%player%}
				if {coins::%player%::stonesend} is true:
					send "&8[&aCoins&8] &cDodano &6%{_stanardCoins}% &ccoinsow."
on join:
	if {coins::%player%} is not set:
		set {coins::%player%} to 0
		set {coins::%player%::mobsend} to false
		set {coins::%player%::stonesend} to false
command /coins [<text>] [<text>]:
	trigger:
		if arg 1 is not set:
			if player has permission "coins.admin":
				send "&cKomendy coinsow by Knugi"
				send "&a/coins mob <on/off> &8- &7wlacza/wylacza drop coinsow z mobow"
				send "&a/coins stone <on/off< &8- &7wlacza/wylacza drop coinsow z stone"
				send "&a/coins sklep &8- &7wlacza sklep"
				stop
			execute player command "coins sklep"
		if player has permission "coins.admin":
			if arg 1 is "dodaj":
				if arg 2 is set:
					set {_arg} to "%arg 2%" parsed as integer
					add {_arg} to {coins::%player%}
					send "&8[&aCoins&8] &cDodano &6%arg 2% &ccoinsow."
				stop
			if arg 1 is "mob":
				if arg 2 is not set:
					send "&cPoprawne uzycie: &b/coins mob <on/off>"
					stop
				if arg 2 is "on":
					if {coins.drop.mob} is true:
						send "&8[&aCoins&8] &cDrop coinsow z mobow jest juz wlaczony."
						stop
					set {coins.drop.mob} to true
					broadcast "&8[&aCoins&8] &aDrop coinsow z mobow zostal wlaczony."
					stop
				if arg 2 is "off":
					if {coins.drop.mob} is false:
						send "&8[&aCoins&8] &cDrop coinsow z mobow jest juz wylaczony."
						stop
					set {coins.drop.mob} to false
					broadcast "&8[&aCoins&8] &cDrop coinsow z mobow zostal wylaczony."
					stop
				send "&cPoprawne uzycie: &b/coins mob <on/off>"
				stop
			if arg 1 is "stone":
				if arg 2 is not set:
					send "&cPoprawne uzycie: &b/coins stone <on/off>"
					stop
				if arg 2 is "on":
					if {coins.drop.stone} is true:
						send "&8[&aCoins&8] &cDrop coinsow z stone jest juz wlaczony."
						stop
					set {coins.drop.stone} to true
					broadcast "&8[&aCoins&8] &aDrop coinsow z stone zostal wlaczony."
					stop
				if arg 2 is "off":
					if {coins.drop.stone} is false:
						send "&8[&aCoins&8] &cDrop coinsow z stone jest juz wylaczony."
						stop
					set {coins.drop.stone} to false
					broadcast "&8[&aCoins&8] &cDrop coinsow z stone zostal wylaczony."
					stop
				send "&cPoprawne uzycie: &b/coins stone <on/off>"
				stop
		open chest with 3 rows named "&6Sklep coins" to player
		wait 2 tick
		set player's current inventory's slot 1 to paper named "&6Vip" with lore "&6Na 30 dni||&cKoszt: &[email protected]/*  */}||&3Posiadasz: &e%{coins::%player%}% coinsow"
		set player's current inventory's slot 2 to 32 322:1 with lore "&cKoszt: &[email protected]/*  */}||&3Posiadasz: &e%{coins::%player%}% coinsow"
		set player's current inventory's slot 3 to diamond chestplate of protection 4 and unbreaking 3 named "&6Ubranie killera" with lore "&6Diamond helmet 4/3||&6Diamond chestplate 4/3||&6Diamond leggings 4/3||&6Diamond boots 4/3||&cKoszt: &[email protected]/*  */}||&3Posiadasz: &e%{coins::%player%}% coinsow"
		set player's current inventory's slot 4 to diamond sword of sharpness 5 and fire aspect 2 named "&6Miecz killera" with lore "&cKoszt: &[email protected]/*  */}||&3Posiadasz: &e%{coins::%player%}% coinsow"
		set {_statusMob} to "&6Drop coinsow: %{coins.drop.mob}%"
		set {_statusStone} to "&6Drop coinsow: %{coins.drop.stone}%"
		replace "false" in {_statusMob} with "&cWylaczone"
		replace "false" in {_statusStone} with "&cWylaczone"
		replace "true" in {_statusStone} with "&aWlaczone"
		replace "true" in {_statusMob} with "&aWlaczone"
		if {coins::%player%::mobsend} is false:
			set player's current inventory's slot 25 to zombie head named "&6Drop coinsow z mobow" with lore "&cPowiadomienia: &4Wylaczone||&aKliknij aby wlaczyc.||%{_statusMob}%"
		else if {coins::%player%::mobsend} is true:
			set player's current inventory's slot 25 to zombie head named "&6Drop coinsow z mobow" with lore "&cPowiadomienia: &aWlaczone||&aKliknij aby wylaczyc.||%{_statusMob}%"
		if {coins::%player%::stonesend} is false:
			set player's current inventory's slot 26 to wooden pickaxe named "&6Drop coinsow z stone" with lore "&cPowiadomienia: &4Wylaczone||&aKliknij aby wlaczyc.||%{_statusStone}%"
		else if {coins::%player%::stonesend} is true:
			set player's current inventory's slot 26 to wooden pickaxe named "&6Drop coinsow z stone" with lore "&cPowiadomienia: &aWlaczone||&aKliknij aby wylaczyc.||%{_statusStone}%"
		stop 
on inventory click:
	if "%inventory name of player's current inventory%" is "&6Sklep coins":
		cancel event
		if "%player's current inventory's slot slot%" is "air":
			stop
		set {_statusMob} to "&6Status: %{coins.drop.mob}%"
		set {_statusStone} to "&6Status: %{coins.drop.stone}%"
		replace "false" in {_statusMob} with "&cWylaczony"
		replace "false" in {_statusStone} with "&cWylaczony"
		replace "true" in {_statusStone} with "&aWlaczony"
		replace "true" in {_statusMob} with "&aWlaczony"
		if player's current inventory's slot slot is 397:2:
			if uncoloured lore of player's current inventory's slot slot contains "Powiadomienia: Wylaczone":
				set {coins::%player%::mobsend} to true
				set player's current inventory's slot slot to zombie head named "&6Drop coinsow z mobow" with lore "&cPowiadomienia: &aWlaczone||&aKliknij aby wylaczyc.||%{_statusMob}%"
				stop
			set {coins::%player%::mobsend} to false
			set player's current inventory's slot 25 to zombie head named "&6Drop coinsow z mobow" with lore "&cPowiadomienia: &4Wylaczone||&aKliknij aby wlaczyc.||%{_statusMob}%"
			stop
		if player's current inventory's slot slot is wooden pickaxe:
			if uncoloured lore of player's current inventory's slot slot contains "Powiadomienia: Wylaczone":
				set {coins::%player%::stonesend} to true
				set player's current inventory's slot 26 to wooden pickaxe named "&6Drop coinsow z stone" with lore "&cPowiadomienia: &aWlaczone||&aKliknij aby wylaczyc.||%{_statusStone}%"
				stop
			set {coins::%player%::stonesend} to false
			set player's current inventory's slot 26 to wooden pickaxe named "&6Drop coinsow z stone" with lore "&cPowiadomienia: &4Wylaczone||&aKliknij aby wlaczyc.||%{_statusStone}%"
			stop
		if player's current inventory's slot slot is paper:
			if {coins::%player%} is larger than or equal to [email protected]/*  */}:
				execute console command "pex user %player% group set [email protected]/*  */}"
				remove [email protected]/*  */} from {coins::%player%}
				send "&8[&aCoins&8] &6Zakupiles Vip'a"
				stop
			send "&8[&aCoins&8] &cNie masz tyle coinsow."
			stop
		if player's current inventory's slot slot is 322:1:
			if {coins::%player%} is larger than or equal to [email protected]/*  */}:
				if player has enough space for 32 322:1:
					give 32 322:1 to player
					remove [email protected]/*  */} from {coins::%player%}
					send "&8[&aCoins&8] &6Zakupiles 32 koxow"
					stop
				send "&8[&aCoins&8] &cNie posiadasz miejsca w ekwipunku."
				stop
			send "&8[&aCoins&8] &cNie masz tyle coinsow."
			stop
		if player's current inventory's slot slot is diamond chestplate:
			if {coins::%player%} is larger than or equal to [email protected]/*  */}:
				if player has enough space for 256 cobblestone:
					give diamond helmet of protection 4 and unbreaking 3 to player
					give diamond chestplate of protection 4 and unbreaking 3 to player
					give diamond leggings of protection 4 and unbreaking 3 to player
					give diamond boots of protection 4 and unbreaking 3 to player
					remove [email protected]/*  */} from {coins::%player%}
					send "&8[&aCoins&8] &6Zakupiles set 4/3"
					stop
				send "&8[&aCoins&8] &cNie posiadasz miejsca w ekwipunku"
				stop
			send "&8[&aCoins&8] &cNie masz tyle coinsow."
			stop
		if player's current inventory's slot slot is diamond sword:
			if {coins::%player%} is larger than or equal to [email protected]/*  */}:
				if player has enough space for diamond sword:
					give diamond sword of sharpness 5 and fire aspect 2 to player
					remove [email protected]/*  */} from {coins::%player%}
					send "&8[&aCoins&8] &6Zakupiles miecz"
					stop
				send "&8[&aCoins&8] &cNie posiadasz miejsca w ekwipunku"
				stop
			send "&8[&aCoins&8] &cNie masz tyle coinsow."
			stop

 

 

Oke, zaraz zobacze czy jest wszystko okej :)

Z mobów nie dropi coinsów tylko a tak to jest git a jak bys mugł to dodał bys takie cos ze pod koemda /coins wyswietlalo by sie ile ma sie tych coinsów ? 

Opublikowano

Ok poprawilem i juz z mobow leca coinsy :)

 

 

 

options:
	szansaStone: 20
	maxcoinsStone: 5
	
	szansaMob: 100
	maxcoinsMob: 5
	addCoinsfor1looting: 2 #Ile moze dodac coinsow za 1 lvl lootinga (czyli moze wiecej 6 coinsow wypasc, więc 5+6 to 11)
	
	costVip: 5000
	cost32EnchApple: 100
	costSet: 500
	costSword: 500
	
	groupVip: vip
variables:
	{coins.drop.mob} = true
	{coins.drop.stone} = true

on death:
	if {coins.drop.mob} is true:
		chance of {@szansaMob}%:
			loop all players:
				if "%victim%" is "%loop-player%":
					stop
				if "%attacker%" is "%loop-player%":
					set {_att} to loop-player
					exit loop
			if {_att} is not set:
				stop
			set {_stanardCoins} to random integer between 0 and {@maxcoinsMob}
			set {_addCoins} to 0
			if {_att}'s tool is enchanted with looting:
				if {_att}'s tool is enchanted with looting 1:
					set {_lot} to 1
				if {_att}'s tool is enchanted with looting 2:
					set {_lot} to 2
				else:
					set {_lot} to 3
				set {_maxLot} to {_lot}*{@addCoinsfor1looting}
				set {_addCoins} to random integer between 0 and {_maxLot}
			if {_stanardCoins}+{_addCoins} is larger than 0:
				add {_stanardCoins}+{_addCoins} to {coins::%{_att}%}
				if {coins::%{_att}%::mobsend} is true:
					send "&8[&aCoins&8] &cDodano &6%{_stanardCoins}+{_addCoins}% &ccoinsow." to {_att}
on break of stone:
	if {coins.drop.stone} is true:
		chance of {@szansaStone}%:
			set {_stanardCoins} to random integer between 0 and {@maxcoinsStone}
			if {_stanardCoins} is larger than 0:
				add {_stanardCoins} to {coins::%player%}
				if {coins::%player%::stonesend} is true:
					send "&8[&aCoins&8] &cDodano &6%{_stanardCoins}% &ccoinsow."
on join:
	if {coins::%player%} is not set:
		set {coins::%player%} to 0
		set {coins::%player%::mobsend} to false
		set {coins::%player%::stonesend} to false
command /coins [<text>] [<text>]:
	trigger:
		if arg 1 is not set:
			if player has permission "coins.admin":
				send "&cKomendy coinsow by Knugi"
				send "&a/coins mob <on/off> &8- &7wlacza/wylacza drop coinsow z mobow"
				send "&a/coins stone <on/off< &8- &7wlacza/wylacza drop coinsow z stone"
				send "&a/coins sklep &8- &7wlacza sklep"
				stop
			execute player command "coins sklep"
		if player has permission "coins.admin":
			if arg 1 is "dodaj":
				if arg 2 is set:
					set {_arg} to "%arg 2%" parsed as integer
					add {_arg} to {coins::%player%}
					send "&8[&aCoins&8] &cDodano &6%arg 2% &ccoinsow."
				stop
			if arg 1 is "mob":
				if arg 2 is not set:
					send "&cPoprawne uzycie: &b/coins mob <on/off>"
					stop
				if arg 2 is "on":
					if {coins.drop.mob} is true:
						send "&8[&aCoins&8] &cDrop coinsow z mobow jest juz wlaczony."
						stop
					set {coins.drop.mob} to true
					broadcast "&8[&aCoins&8] &aDrop coinsow z mobow zostal wlaczony."
					stop
				if arg 2 is "off":
					if {coins.drop.mob} is false:
						send "&8[&aCoins&8] &cDrop coinsow z mobow jest juz wylaczony."
						stop
					set {coins.drop.mob} to false
					broadcast "&8[&aCoins&8] &cDrop coinsow z mobow zostal wylaczony."
					stop
				send "&cPoprawne uzycie: &b/coins mob <on/off>"
				stop
			if arg 1 is "stone":
				if arg 2 is not set:
					send "&cPoprawne uzycie: &b/coins stone <on/off>"
					stop
				if arg 2 is "on":
					if {coins.drop.stone} is true:
						send "&8[&aCoins&8] &cDrop coinsow z stone jest juz wlaczony."
						stop
					set {coins.drop.stone} to true
					broadcast "&8[&aCoins&8] &aDrop coinsow z stone zostal wlaczony."
					stop
				if arg 2 is "off":
					if {coins.drop.stone} is false:
						send "&8[&aCoins&8] &cDrop coinsow z stone jest juz wylaczony."
						stop
					set {coins.drop.stone} to false
					broadcast "&8[&aCoins&8] &cDrop coinsow z stone zostal wylaczony."
					stop
				send "&cPoprawne uzycie: &b/coins stone <on/off>"
				stop
		open chest with 3 rows named "&6Sklep coins" to player
		wait 2 tick
		set player's current inventory's slot 1 to paper named "&6Vip" with lore "&6Na 30 dni||&cKoszt: &b{@costVip}||&3Posiadasz: &e%{coins::%player%}% coinsow"
		set player's current inventory's slot 2 to 32 322:1 with lore "&cKoszt: &b{@cost32EnchApple}||&3Posiadasz: &e%{coins::%player%}% coinsow"
		set player's current inventory's slot 3 to diamond chestplate of protection 4 and unbreaking 3 named "&6Ubranie killera" with lore "&6Diamond helmet 4/3||&6Diamond chestplate 4/3||&6Diamond leggings 4/3||&6Diamond boots 4/3||&cKoszt: &b{@costSet}||&3Posiadasz: &e%{coins::%player%}% coinsow"
		set player's current inventory's slot 4 to diamond sword of sharpness 5 and fire aspect 2 named "&6Miecz killera" with lore "&cKoszt: &b{@costSword}||&3Posiadasz: &e%{coins::%player%}% coinsow"
		set {_statusMob} to "&6Drop coinsow: %{coins.drop.mob}%"
		set {_statusStone} to "&6Drop coinsow: %{coins.drop.stone}%"
		replace "false" in {_statusMob} with "&cWylaczone"
		replace "false" in {_statusStone} with "&cWylaczone"
		replace "true" in {_statusStone} with "&aWlaczone"
		replace "true" in {_statusMob} with "&aWlaczone"
		if {coins::%player%::mobsend} is false:
			set player's current inventory's slot 25 to zombie head named "&6Drop coinsow z mobow" with lore "&cPowiadomienia: &4Wylaczone||&aKliknij aby wlaczyc.||%{_statusMob}%"
		else if {coins::%player%::mobsend} is true:
			set player's current inventory's slot 25 to zombie head named "&6Drop coinsow z mobow" with lore "&cPowiadomienia: &aWlaczone||&aKliknij aby wylaczyc.||%{_statusMob}%"
		if {coins::%player%::stonesend} is false:
			set player's current inventory's slot 26 to wooden pickaxe named "&6Drop coinsow z stone" with lore "&cPowiadomienia: &4Wylaczone||&aKliknij aby wlaczyc.||%{_statusStone}%"
		else if {coins::%player%::stonesend} is true:
			set player's current inventory's slot 26 to wooden pickaxe named "&6Drop coinsow z stone" with lore "&cPowiadomienia: &aWlaczone||&aKliknij aby wylaczyc.||%{_statusStone}%"
		stop 
on inventory click:
	if "%inventory name of player's current inventory%" is "&6Sklep coins":
		cancel event
		if "%player's current inventory's slot slot%" is "air":
			stop
		set {_statusMob} to "&6Status: %{coins.drop.mob}%"
		set {_statusStone} to "&6Status: %{coins.drop.stone}%"
		replace "false" in {_statusMob} with "&cWylaczony"
		replace "false" in {_statusStone} with "&cWylaczony"
		replace "true" in {_statusStone} with "&aWlaczony"
		replace "true" in {_statusMob} with "&aWlaczony"
		if player's current inventory's slot slot is 397:2:
			if uncoloured lore of player's current inventory's slot slot contains "Powiadomienia: Wylaczone":
				set {coins::%player%::mobsend} to true
				set player's current inventory's slot slot to zombie head named "&6Drop coinsow z mobow" with lore "&cPowiadomienia: &aWlaczone||&aKliknij aby wylaczyc.||%{_statusMob}%"
				stop
			set {coins::%player%::mobsend} to false
			set player's current inventory's slot 25 to zombie head named "&6Drop coinsow z mobow" with lore "&cPowiadomienia: &4Wylaczone||&aKliknij aby wlaczyc.||%{_statusMob}%"
			stop
		if player's current inventory's slot slot is wooden pickaxe:
			if uncoloured lore of player's current inventory's slot slot contains "Powiadomienia: Wylaczone":
				set {coins::%player%::stonesend} to true
				set player's current inventory's slot 26 to wooden pickaxe named "&6Drop coinsow z stone" with lore "&cPowiadomienia: &aWlaczone||&aKliknij aby wylaczyc.||%{_statusStone}%"
				stop
			set {coins::%player%::stonesend} to false
			set player's current inventory's slot 26 to wooden pickaxe named "&6Drop coinsow z stone" with lore "&cPowiadomienia: &4Wylaczone||&aKliknij aby wlaczyc.||%{_statusStone}%"
			stop
		if player's current inventory's slot slot is paper:
			if {coins::%player%} is larger than or equal to {@costVip}:
				execute console command "pex user %player% group set {@groupVip}"
				remove {@costVip} from {coins::%player%}
				send "&8[&aCoins&8] &6Zakupiles Vip'a"
				stop
			send "&8[&aCoins&8] &cNie masz tyle coinsow."
			stop
		if player's current inventory's slot slot is 322:1:
			if {coins::%player%} is larger than or equal to {@cost32EnchApple}:
				if player has enough space for 32 322:1:
					give 32 322:1 to player
					remove {@cost32EnchApple} from {coins::%player%}
					send "&8[&aCoins&8] &6Zakupiles 32 koxow"
					stop
				send "&8[&aCoins&8] &cNie posiadasz miejsca w ekwipunku."
				stop
			send "&8[&aCoins&8] &cNie masz tyle coinsow."
			stop
		if player's current inventory's slot slot is diamond chestplate:
			if {coins::%player%} is larger than or equal to {@costSet}:
				if player has enough space for 256 cobblestone:
					give diamond helmet of protection 4 and unbreaking 3 to player
					give diamond chestplate of protection 4 and unbreaking 3 to player
					give diamond leggings of protection 4 and unbreaking 3 to player
					give diamond boots of protection 4 and unbreaking 3 to player
					remove {@costSet} from {coins::%player%}
					send "&8[&aCoins&8] &6Zakupiles set 4/3"
					stop
				send "&8[&aCoins&8] &cNie posiadasz miejsca w ekwipunku"
				stop
			send "&8[&aCoins&8] &cNie masz tyle coinsow."
			stop
		if player's current inventory's slot slot is diamond sword:
			if {coins::%player%} is larger than or equal to {@costSword}:
				if player has enough space for diamond sword:
					give diamond sword of sharpness 5 and fire aspect 2 to player
					remove {@costSword} from {coins::%player%}
					send "&8[&aCoins&8] &6Zakupiles miecz"
					stop
				send "&8[&aCoins&8] &cNie posiadasz miejsca w ekwipunku"
				stop
			send "&8[&aCoins&8] &cNie masz tyle coinsow."
			stop

 

 

 

A co do coinsow to je pokazuje w /coins (w sklepie) tylko musisz najechac na ktorys przedmiot do kupna :D

Jeżeli pomogłem, daj + Ciebie nic nie kosztuje Mi znaczy wiele.

 

 

 

 

 

 

 

Zachęcam do podsyłania pomysłów na film jako poradniki na YouTube

 

Opublikowano

Ok poprawilem i juz z mobow leca coinsy :)

 

 

 

options:
	szansaStone: 20
	maxcoinsStone: 5
	
	szansaMob: 100
	maxcoinsMob: 5
	addCoinsfor1looting: 2 #Ile moze dodac coinsow za 1 lvl lootinga (czyli moze wiecej 6 coinsow wypasc, więc 5+6 to 11)
	
	costVip: 5000
	cost32EnchApple: 100
	costSet: 500
	costSword: 500
	
	groupVip: vip
variables:
	{coins.drop.mob} = true
	{coins.drop.stone} = true

on death:
	if {coins.drop.mob} is true:
		chance of [email protected]<script data-cfhash='f9e31' type="text/javascript">/*  */</script>}%:
			loop all players:
				if "%victim%" is "%loop-player%":
					stop
				if "%attacker%" is "%loop-player%":
					set {_att} to loop-player
					exit loop
			if {_att} is not set:
				stop
			set {_stanardCoins} to random integer between 0 and [email protected]/*  */}
			set {_addCoins} to 0
			if {_att}'s tool is enchanted with looting:
				if {_att}'s tool is enchanted with looting 1:
					set {_lot} to 1
				if {_att}'s tool is enchanted with looting 2:
					set {_lot} to 2
				else:
					set {_lot} to 3
				set {_maxLot} to [email protected]/*  */}
				set {_addCoins} to random integer between 0 and {_maxLot}
			if {_stanardCoins}+{_addCoins} is larger than 0:
				add {_stanardCoins}+{_addCoins} to {coins::%{_att}%}
				if {coins::%{_att}%::mobsend} is true:
					send "&8[&aCoins&8] &cDodano &6%{_stanardCoins}+{_addCoins}% &ccoinsow." to {_att}
on break of stone:
	if {coins.drop.stone} is true:
		chance of [email protected]/*  */}%:
			set {_stanardCoins} to random integer between 0 and [email protected]/*  */}
			if {_stanardCoins} is larger than 0:
				add {_stanardCoins} to {coins::%player%}
				if {coins::%player%::stonesend} is true:
					send "&8[&aCoins&8] &cDodano &6%{_stanardCoins}% &ccoinsow."
on join:
	if {coins::%player%} is not set:
		set {coins::%player%} to 0
		set {coins::%player%::mobsend} to false
		set {coins::%player%::stonesend} to false
command /coins [<text>] [<text>]:
	trigger:
		if arg 1 is not set:
			if player has permission "coins.admin":
				send "&cKomendy coinsow by Knugi"
				send "&a/coins mob <on/off> &8- &7wlacza/wylacza drop coinsow z mobow"
				send "&a/coins stone <on/off< &8- &7wlacza/wylacza drop coinsow z stone"
				send "&a/coins sklep &8- &7wlacza sklep"
				stop
			execute player command "coins sklep"
		if player has permission "coins.admin":
			if arg 1 is "dodaj":
				if arg 2 is set:
					set {_arg} to "%arg 2%" parsed as integer
					add {_arg} to {coins::%player%}
					send "&8[&aCoins&8] &cDodano &6%arg 2% &ccoinsow."
				stop
			if arg 1 is "mob":
				if arg 2 is not set:
					send "&cPoprawne uzycie: &b/coins mob <on/off>"
					stop
				if arg 2 is "on":
					if {coins.drop.mob} is true:
						send "&8[&aCoins&8] &cDrop coinsow z mobow jest juz wlaczony."
						stop
					set {coins.drop.mob} to true
					broadcast "&8[&aCoins&8] &aDrop coinsow z mobow zostal wlaczony."
					stop
				if arg 2 is "off":
					if {coins.drop.mob} is false:
						send "&8[&aCoins&8] &cDrop coinsow z mobow jest juz wylaczony."
						stop
					set {coins.drop.mob} to false
					broadcast "&8[&aCoins&8] &cDrop coinsow z mobow zostal wylaczony."
					stop
				send "&cPoprawne uzycie: &b/coins mob <on/off>"
				stop
			if arg 1 is "stone":
				if arg 2 is not set:
					send "&cPoprawne uzycie: &b/coins stone <on/off>"
					stop
				if arg 2 is "on":
					if {coins.drop.stone} is true:
						send "&8[&aCoins&8] &cDrop coinsow z stone jest juz wlaczony."
						stop
					set {coins.drop.stone} to true
					broadcast "&8[&aCoins&8] &aDrop coinsow z stone zostal wlaczony."
					stop
				if arg 2 is "off":
					if {coins.drop.stone} is false:
						send "&8[&aCoins&8] &cDrop coinsow z stone jest juz wylaczony."
						stop
					set {coins.drop.stone} to false
					broadcast "&8[&aCoins&8] &cDrop coinsow z stone zostal wylaczony."
					stop
				send "&cPoprawne uzycie: &b/coins stone <on/off>"
				stop
		open chest with 3 rows named "&6Sklep coins" to player
		wait 2 tick
		set player's current inventory's slot 1 to paper named "&6Vip" with lore "&6Na 30 dni||&cKoszt: &[email protected]/*  */}||&3Posiadasz: &e%{coins::%player%}% coinsow"
		set player's current inventory's slot 2 to 32 322:1 with lore "&cKoszt: &[email protected]/*  */}||&3Posiadasz: &e%{coins::%player%}% coinsow"
		set player's current inventory's slot 3 to diamond chestplate of protection 4 and unbreaking 3 named "&6Ubranie killera" with lore "&6Diamond helmet 4/3||&6Diamond chestplate 4/3||&6Diamond leggings 4/3||&6Diamond boots 4/3||&cKoszt: &[email protected]/*  */}||&3Posiadasz: &e%{coins::%player%}% coinsow"
		set player's current inventory's slot 4 to diamond sword of sharpness 5 and fire aspect 2 named "&6Miecz killera" with lore "&cKoszt: &[email protected]/*  */}||&3Posiadasz: &e%{coins::%player%}% coinsow"
		set {_statusMob} to "&6Drop coinsow: %{coins.drop.mob}%"
		set {_statusStone} to "&6Drop coinsow: %{coins.drop.stone}%"
		replace "false" in {_statusMob} with "&cWylaczone"
		replace "false" in {_statusStone} with "&cWylaczone"
		replace "true" in {_statusStone} with "&aWlaczone"
		replace "true" in {_statusMob} with "&aWlaczone"
		if {coins::%player%::mobsend} is false:
			set player's current inventory's slot 25 to zombie head named "&6Drop coinsow z mobow" with lore "&cPowiadomienia: &4Wylaczone||&aKliknij aby wlaczyc.||%{_statusMob}%"
		else if {coins::%player%::mobsend} is true:
			set player's current inventory's slot 25 to zombie head named "&6Drop coinsow z mobow" with lore "&cPowiadomienia: &aWlaczone||&aKliknij aby wylaczyc.||%{_statusMob}%"
		if {coins::%player%::stonesend} is false:
			set player's current inventory's slot 26 to wooden pickaxe named "&6Drop coinsow z stone" with lore "&cPowiadomienia: &4Wylaczone||&aKliknij aby wlaczyc.||%{_statusStone}%"
		else if {coins::%player%::stonesend} is true:
			set player's current inventory's slot 26 to wooden pickaxe named "&6Drop coinsow z stone" with lore "&cPowiadomienia: &aWlaczone||&aKliknij aby wylaczyc.||%{_statusStone}%"
		stop 
on inventory click:
	if "%inventory name of player's current inventory%" is "&6Sklep coins":
		cancel event
		if "%player's current inventory's slot slot%" is "air":
			stop
		set {_statusMob} to "&6Status: %{coins.drop.mob}%"
		set {_statusStone} to "&6Status: %{coins.drop.stone}%"
		replace "false" in {_statusMob} with "&cWylaczony"
		replace "false" in {_statusStone} with "&cWylaczony"
		replace "true" in {_statusStone} with "&aWlaczony"
		replace "true" in {_statusMob} with "&aWlaczony"
		if player's current inventory's slot slot is 397:2:
			if uncoloured lore of player's current inventory's slot slot contains "Powiadomienia: Wylaczone":
				set {coins::%player%::mobsend} to true
				set player's current inventory's slot slot to zombie head named "&6Drop coinsow z mobow" with lore "&cPowiadomienia: &aWlaczone||&aKliknij aby wylaczyc.||%{_statusMob}%"
				stop
			set {coins::%player%::mobsend} to false
			set player's current inventory's slot 25 to zombie head named "&6Drop coinsow z mobow" with lore "&cPowiadomienia: &4Wylaczone||&aKliknij aby wlaczyc.||%{_statusMob}%"
			stop
		if player's current inventory's slot slot is wooden pickaxe:
			if uncoloured lore of player's current inventory's slot slot contains "Powiadomienia: Wylaczone":
				set {coins::%player%::stonesend} to true
				set player's current inventory's slot 26 to wooden pickaxe named "&6Drop coinsow z stone" with lore "&cPowiadomienia: &aWlaczone||&aKliknij aby wylaczyc.||%{_statusStone}%"
				stop
			set {coins::%player%::stonesend} to false
			set player's current inventory's slot 26 to wooden pickaxe named "&6Drop coinsow z stone" with lore "&cPowiadomienia: &4Wylaczone||&aKliknij aby wlaczyc.||%{_statusStone}%"
			stop
		if player's current inventory's slot slot is paper:
			if {coins::%player%} is larger than or equal to [email protected]/*  */}:
				execute console command "pex user %player% group set [email protected]/*  */}"
				remove [email protected]/*  */} from {coins::%player%}
				send "&8[&aCoins&8] &6Zakupiles Vip'a"
				stop
			send "&8[&aCoins&8] &cNie masz tyle coinsow."
			stop
		if player's current inventory's slot slot is 322:1:
			if {coins::%player%} is larger than or equal to [email protected]/*  */}:
				if player has enough space for 32 322:1:
					give 32 322:1 to player
					remove [email protected]/*  */} from {coins::%player%}
					send "&8[&aCoins&8] &6Zakupiles 32 koxow"
					stop
				send "&8[&aCoins&8] &cNie posiadasz miejsca w ekwipunku."
				stop
			send "&8[&aCoins&8] &cNie masz tyle coinsow."
			stop
		if player's current inventory's slot slot is diamond chestplate:
			if {coins::%player%} is larger than or equal to [email protected]/*  */}:
				if player has enough space for 256 cobblestone:
					give diamond helmet of protection 4 and unbreaking 3 to player
					give diamond chestplate of protection 4 and unbreaking 3 to player
					give diamond leggings of protection 4 and unbreaking 3 to player
					give diamond boots of protection 4 and unbreaking 3 to player
					remove [email protected]/*  */} from {coins::%player%}
					send "&8[&aCoins&8] &6Zakupiles set 4/3"
					stop
				send "&8[&aCoins&8] &cNie posiadasz miejsca w ekwipunku"
				stop
			send "&8[&aCoins&8] &cNie masz tyle coinsow."
			stop
		if player's current inventory's slot slot is diamond sword:
			if {coins::%player%} is larger than or equal to [email protected]/*  */}:
				if player has enough space for diamond sword:
					give diamond sword of sharpness 5 and fire aspect 2 to player
					remove [email protected]/*  */} from {coins::%player%}
					send "&8[&aCoins&8] &6Zakupiles miecz"
					stop
				send "&8[&aCoins&8] &cNie posiadasz miejsca w ekwipunku"
				stop
			send "&8[&aCoins&8] &cNie masz tyle coinsow."
			stop

 

 

 

A co do coinsow to je pokazuje w /coins (w sklepie) tylko musisz najechac na ktorys przedmiot do kupna :D

Okej, wielkei dzieki jestes mega. Własnie pozniej juz zobaczyłem ze je widac :D

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...