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

Pomoc w skrypcie na drop wyłączenie danego dropu !


Irek321321

Rekomendowane odpowiedzi

Opublikowano
Witam mam problem nie działa mi wyłączanie dropu np diamentów skrypt reloaduje się poprawnie WSZYSTKO CO ODPOWIADA ZA WYŁĄCZENIE JEST ZAZNACZONE STRZAŁKĄ ->

 

 

 

variables:

        {diamenty.%player%} = 0

        {emeraldy.%player%} = 0

        {zelazo.%player%} = 0

        {zloto.%player%} = 0

        {gunpowder.%player%} = 0

        {redstone.%player%} = 0

        {lapis.%player%} = 0

        {wegiel.%player%} = 0

        {wykopanystone.%player%} = 0

        {cobblestone.%player%} = true

        {drop.%player%.punkty} = 0

        {drop.%player%.lvl} = 1

->        {diamenty2.%player%} = true

 

options:

       

        tag: &3Drop &4Ze &3Stone 

 

        szansa_diament: 0.80

        szansa_emerald: 0.60

        szansa_zelazo: 2.00

        szansa_zloto: 1.90

        szansa_gunpowder: 1.60

        szansa_redstone: 2.80

        szansa_lapis: 1.00

        szansa_wegiel: 1.00

 

        szansa_diamentvip: 1.00

        szansa_emeraldvip: 0.80

        szansa_zelazovip: 2.20

        szansa_zlotovip: 2.10

        szansa_gunpowdervip: 1.80

        szansa_redstonevip: 3.00

        szansa_lapisvip: 1.20

        szansa_wegielvip: 1.20

 

        wysokosc_diament: 25

        wysokosc_emerald: 25

        wysokosc_zelazo: 65

        wysokosc_zloto: 25

        wysokosc_gunpowder: 45

        wysokosc_redstone: 50

        wysokosc_lapis: 50

        wysokosc_wegiel: 60

 

-> command /d:

->trigger:

->if {diamenty2.%player%} is true:

->set {diamenty2.%player%} to false

->send "&cWylaczyles drop diamentow!"

->else:

->set {diamenty2.%player%} to true

->send "&aWlaczyles drop diamentów!"

 

on break of stone or cobblestone:

    if {cobblestone.%player%} is false:

        cancel event

        set event-block to air

 

on mine of stone:

        chance of 100%:

                add 4 xp to the player

on mine of obsidian:

        chance of 100%:

                add 20 xp to the player

 

command /stone:

aliases: drop, kamien

trigger:

wait 3 tick

open chest with 1 rows named "Drop ze stone" to player

format slot 0 of player with stone with lore "&bDrop dla &7gracza" to close then run [make player execute command "/stoneg"]

format slot 1 of player with diamond with lore "&bDrop dla &6[Vipa]" to close then run [make player execute command "/stonev"]

 

command /stoneg:

trigger:

wait 3 tick

open chest with 1 rows named "Drop dla gracza" to player

format slot 0 of player with 1 of diamond named "&bDiament" with lore "&4» &6Szansa:&7 {@szansa_diament}%%" to close

format slot 1 of player with 1 of emerald named "&aSzmaragd" with lore "&4» &6Szansa:&7 {@szansa_emerald}%%" to close

format slot 2 of player with 1 of gold ore named "&6Zloto" with lore "&4» &6Szansa:&7 {@szansa_zloto}%%" to close

format slot 3 of player with 1 of iron ore named "&8Zelazo" with lore "&4» &6Szansa:&7 {@szansa_zelazo}%%" to close

format slot 4 of player with 1 of coal named "&0Wegiel" with lore "&4» &6Szansa:&7 {@szansa_wegiel}%%" to close

format slot 5 of player with 1 of redstone named "&4RedStone" with lore "&4» &6Szansa:&7 {@szansa_redstone}%%" to close

format slot 6 of player with 1 of lapis lazuli named "&3Lapis" with lore "&4» &6Szansa:&7 {@szansa_lapis}%%" to close

format slot 8 of player with 1 of paper with lore "&aWstecz" to close then run [make player execute command "/stone"]

 

command /stonev:

trigger:

wait 3 tick

open chest with 1 rows named "Drop dla vipa" to player                    

format slot 0 of player with 1 of diamond named "&bDiament" with lore "&4» &6Szansa:&7 {@szansa_diamentvip}%%" to close

format slot 1 of player with 1 of emerald named "&aSzmaragd" with lore "&4» &6Szansa:&7 {@szansa_emeraldvip}%%" to close

format slot 2 of player with 1 of gold ore named "&6Zloto" with lore "&4» &6Szansa:&7 {@szansa_zlotovip}%%" to close

format slot 3 of player with 1 of iron ore named "&8Zelazo" with lore "&4» &6Szansa:&7 {@szansa_zelazovip}%%" to close

format slot 4 of player with 1 of coal named "&0Wegiel" with lore "&4» &6Szansa:&7 {@szansa_wegielvip}%%" to close

format slot 5 of player with 1 of redstone named "&4RedStone" with lore "&4» &6Szansa:&7 {@szansa_redstonevip}%%" to close

format slot 6 of player with 1 of lapis lazuli named "&3Lapis" with lore "&4» &6Szansa:&7 {@szansa_lapisvip}%%" to close

format slot 8 of player with 1 of paper with lore "&aWstecz" to close then run [make player execute command "/stone"]

 

on mine of obsidian:

        if player's gamemode is survival:

                add 1 to {wykopanyobs.%player%}

 

on mine of stone:

        if player's gamemode is survival:

                add 1 to {wykopanystone.%player%}

 

               -> chance of {@szansa_diament}%:

                       -> if {diamenty2.%player%} is true:

                              ->  add 1 diamond to player

                              ->  add 1 to {diamenty2.%player%}

                               -> send "&8Znalazles: &8Diament! &8(+3 Pkt)"

                              ->  add 3 to {drop.%player%.punkty}

                      ->  if {diamenty2.%player%} is false:

                              ->  cancel event

Opublikowano

  • Tabowanie (Jak masz literę "Q" to obok masz TAB)

Uważam, że poziom mojej inteligencji nie przekracza poziomu inteligencji przeciętnego człowieka.

Opublikowano

Ale dobrze jest wytabowane bo w reloadzie skryptu nie wywala błedów moze Cibsue tak wydaje źe zle wytabowane bo dodałem te strzałki ale gdy wpisuje /d to wyswietla sie komunikat ze wylaczono drop diax i diamenty2.%player% powino sie zmi3nic na false i drop diax powinien sie wyłaczyc ale niestety sie nie wyłacza nawet dropi /:/

Opublikowano

 

 

variables:

		{diamenty.%player%} = 0

		{emeraldy.%player%} = 0

		{zelazo.%player%} = 0

		{zloto.%player%} = 0

		{gunpowder.%player%} = 0

		{redstone.%player%} = 0

		{lapis.%player%} = 0

		{wegiel.%player%} = 0

		{wykopanystone.%player%} = 0

		{cobblestone.%player%} = true

		{drop.%player%.punkty} = 0

		{drop.%player%.lvl} = 1

		{diamenty2.%player%} = true
 
options:
		tag: &3Drop &4ze &3stone 
		szansa_diament: 0.80
		szansa_emerald: 0.60
		szansa_zelazo: 2.00
		szansa_zloto: 1.90
		szansa_gunpowder: 1.60
		szansa_redstone: 2.80
		szansa_lapis: 1.00
		szansa_wegiel: 1.00
 
		szansa_diamentvip: 1.00
		szansa_emeraldvip: 0.80
		szansa_zelazovip: 2.20
		szansa_zlotovip: 2.10
		szansa_gunpowdervip: 1.80
		szansa_redstonevip: 3.00
		szansa_lapisvip: 1.20
		szansa_wegielvip: 1.20
 
		wysokosc_diament: 25
		wysokosc_emerald: 25
		wysokosc_zelazo: 65
		wysokosc_zloto: 25
		wysokosc_gunpowder: 45
		wysokosc_redstone: 50
		wysokosc_lapis: 50
		wysokosc_wegiel: 60
 
command /d:
	trigger:
		if {diamenty2.%player%} is true:
			set {diamenty2.%player%} to false
			send "&cWylaczyles drop diamentow!"
		else:
			set {diamenty2.%player%} to true
			send "&aWlaczyles drop diamentów!"
 
on break of stone or cobblestone:
	if {cobblestone.%player%} is false:
		cancel event
		set event-block to air
		damage player's tool by 1 # zeby kilof sie niszczyl (bo byl by nieskonczony )
 
on mine of stone:
	chance of 100%:
		add 4 xp to the player
on mine of obsidian:
	chance of 100%:
		add 20 xp to the player
 
command /stone:
	aliases: drop, kamien
	trigger:
		open chest with 1 rows named "Drop ze stone" to player
		format slot 0 of player with stone with lore "&bDrop dla &7gracza" to close then run [make player execute command "/stoneg"]
		format slot 1 of player with diamond with lore "&bDrop dla &6[Vipa]" to close then run [make player execute command "/stonev"]
command /stoneg:
	trigger:
		open chest with 1 rows named "Drop dla gracza" to player
		format slot 0 of player with 1 of diamond named "&bDiament" with lore "&4» &6Szansa:&7 {@szansa_diament}%%" to close
		format slot 1 of player with 1 of emerald named "&aSzmaragd" with lore "&4» &6Szansa:&7 {@szansa_emerald}%%" to close
		format slot 2 of player with 1 of gold ore named "&6Zloto" with lore "&4» &6Szansa:&7 {@szansa_zloto}%%" to close
		format slot 3 of player with 1 of iron ore named "&8Zelazo" with lore "&4» &6Szansa:&7 {@szansa_zelazo}%%" to close
		format slot 4 of player with 1 of coal named "&0Wegiel" with lore "&4» &6Szansa:&7 {@szansa_wegiel}%%" to close
		format slot 5 of player with 1 of redstone named "&4RedStone" with lore "&4» &6Szansa:&7 {@szansa_redstone}%%" to close
		format slot 6 of player with 1 of lapis lazuli named "&3Lapis" with lore "&4» &6Szansa:&7 {@szansa_lapis}%%" to close
		format slot 8 of player with 1 of paper with lore "&aWstecz" to close then run [make player execute command "/stone"]
 
command /stonev:
	trigger:
		open chest with 1 rows named "Drop dla vipa" to player					
		format slot 0 of player with 1 of diamond named "&bDiament" with lore "&4» &6Szansa:&7 {@szansa_diamentvip}%%" to close
		format slot 1 of player with 1 of emerald named "&aSzmaragd" with lore "&4» &6Szansa:&7 {@szansa_emeraldvip}%%" to close
		format slot 2 of player with 1 of gold ore named "&6Zloto" with lore "&4» &6Szansa:&7 {@szansa_zlotovip}%%" to close
		format slot 3 of player with 1 of iron ore named "&8Zelazo" with lore "&4» &6Szansa:&7 {@szansa_zelazovip}%%" to close
		format slot 4 of player with 1 of coal named "&0Wegiel" with lore "&4» &6Szansa:&7 {@szansa_wegielvip}%%" to close
		format slot 5 of player with 1 of redstone named "&4RedStone" with lore "&4» &6Szansa:&7 {@szansa_redstonevip}%%" to close
		format slot 6 of player with 1 of lapis lazuli named "&3Lapis" with lore "&4» &6Szansa:&7 {@szansa_lapisvip}%%" to close
		format slot 8 of player with 1 of paper with lore "&aWstecz" to close then run [make player execute command "/stone"]
 
on mine of obsidian:
	add 1 to {wykopanyobs.%player%}
on mine of stone:
	add 1 to {wykopanystone.%player%}
	chance of {@szansa_diament}%:
		if {diamenty2.%player%} is true:
			add 1 diamond to player
			add 1 to {diamenty.%player%}
			send "&8Znalazles: Diament! (+3 pkt)"
			add 3 to {drop.%player%.punkty}
		else if {diamenty2.%player%} is false:
			send "&cZnalazles: Diament (+3 pkt)"
			stop 

 

Zabrałem skrypt na warsztat ^^ i powinien już działać ;)

Uważam, że poziom mojej inteligencji nie przekracza poziomu inteligencji przeciętnego człowieka.

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...