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

Skrypt na resp losowych wilków


gabrys07076

Rekomendowane odpowiedzi

Opublikowano

Witajcie, mam problem ponieważ skrypt który ma respawnować w 3 miejscach 1 mobka. Mobki mają mieć losowe szansy nazwy. Ustawiłem to lecz tylko 1 mob ma nazwę a reszta nie. Proszę o pomoc :D

command /startustaw [<text>]:
	trigger:
		spawn wolf at {1-1-10.wolf} and {2-1-10.wolf} and {3-1-10.wolf}
		set helmet of spawned entity's to grass
		chance of 100%:
			set the name of spawned entity to "&8Wilk &6LVL.1"
		chance of 90%:
			set the name of spawned entity to "&8Wilk &6LVL.2"
		chance of 80%:
			set the name of spawned entity to "&8Wilk &6LVL.3"
		chance of 70%:
			set the name of spawned entity to "&8Wilk &6LVL.4"
		chance of 60%:
			set the name of spawned entity to "&8Wilk &6LVL.5"
		chance of 50%:
			set the name of spawned entity to "&8Wilk &6LVL.6"
		chance of 40%:
			set the name of spawned entity to "&8Wilk &6LVL.7"
		chance of 30%:
			set the name of spawned entity to "&8Wilk &6LVL.8"
		chance of 20%:
			set the name of spawned entity to "&8Wilk &6LVL.9"
		chance of 10%:
			set the name of spawned entity to "&8Wilk &6LVL.10"
		send "Spawny wystartowaly :D"
  • 2 tygodnie później...
Opublikowano

 

Witajcie, mam problem ponieważ skrypt który ma respawnować w 3 miejscach 1 mobka. Mobki mają mieć losowe szansy nazwy. Ustawiłem to lecz tylko 1 mob ma nazwę a reszta nie. Proszę o pomoc :D

command /startustaw [<text>]:
	trigger:
		spawn wolf at {1-1-10.wolf} and {2-1-10.wolf} and {3-1-10.wolf}
		set helmet of spawned entity's to grass
		chance of 100%:
			set the name of spawned entity to "&8Wilk &6LVL.1"
		chance of 90%:
			set the name of spawned entity to "&8Wilk &6LVL.2"
		chance of 80%:
			set the name of spawned entity to "&8Wilk &6LVL.3"
		chance of 70%:
			set the name of spawned entity to "&8Wilk &6LVL.4"
		chance of 60%:
			set the name of spawned entity to "&8Wilk &6LVL.5"
		chance of 50%:
			set the name of spawned entity to "&8Wilk &6LVL.6"
		chance of 40%:
			set the name of spawned entity to "&8Wilk &6LVL.7"
		chance of 30%:
			set the name of spawned entity to "&8Wilk &6LVL.8"
		chance of 20%:
			set the name of spawned entity to "&8Wilk &6LVL.9"
		chance of 10%:
			set the name of spawned entity to "&8Wilk &6LVL.10"
		send "Spawny wystartowaly :D"

To właśnie są minusy skryptów, obawiam się ,że tego nie zrobisz w skrypcie, ale można sie coś pobawić (o dużo bedzie trzeba też przedłużyć kod)

Wiekszość skrypterów tutaj ci napisze, że to raczej nie do zrobienia, ktoś napisze "mozna zrobic" - ,ale nie napisze jak.

 

@Palladin - może on ci coś wykombinuje.

 

 

JAVA <3

 

Opublikowano

@gabrys07076

 

 

 

command /startustaw [<text>]:
    trigger:
        set {spawnticket} to true
        spawn wolf at {1-1-10.wolf}
        spawn wolf at {2-1-10.wolf}
        spawn wolf at {3-1-10.wolf}
        delete {spawnticket}
        send "Spawny wystartowaly :D"
        stop

on spawn:
    if {spawnticket} is set:
        set helmet of event-entity to grass
        chance of 100%:
            set the name of event-entity to "&8Wilk &6LVL.1"
        chance of 90%:
            set the name of event-entity to "&8Wilk &6LVL.2"
        chance of 80%:
            set the name of event-entity to "&8Wilk &6LVL.3"
        chance of 70%:
            set the name of event-entity to "&8Wilk &6LVL.4"
        chance of 60%:
            set the name of event-entity to "&8Wilk &6LVL.5"
        chance of 50%:
            set the name of event-entity to "&8Wilk &6LVL.6"
        chance of 40%:
            set the name of event-entity to "&8Wilk &6LVL.7"
        chance of 30%:
            set the name of event-entity to "&8Wilk &6LVL.8"
        chance of 20%:
            set the name of event-entity to "&8Wilk &6LVL.9"
        chance of 10%:
            set the name of event-entity to "&8Wilk &6LVL.10"

 

 

 

@1361622928-U485574.pngEntify

 

Nie trzeba przedłużać mocno kodu :D

:D  Let's start with MPCForum :D

 

 

 

30/50/69/100/150/200/250...

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...