Skocz do zawartości
  • 0

Quest na zabicie 25 graczy.


Pytanie

Witam!

Mam do was prosbe.

Czy moglby ktos z was mi napisac skrypt na quest?

Mialby on dzialac tak:

Bylby npc o nazwie "Przestepca" bylby on graczem.

I dawalby on zadanie zabicia 25 graczy.

Edytowane przez Custom3r
Odnośnik do komentarza
https://skript.pl/temat/34199-quest-na-zabicie-25-graczy/
Udostępnij na innych stronach

9 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
options:
	entityname2: Przestepca
	nagroda: 1 of diamond
	numbertokill: 25
	nagrodamessage: &cWykonaj quest, a dostaniesz nagrode!
	finishmessage: &cJuz wykonales ten quset
	questmessage: &aZabij {@numbertokill} graczy a otrzymasz nagrode!
	zabijmessage: &9Zabij jeszcze %{wd}% graczy, aby otrzymac nagrode!
	givemessage: &aZabiles {@numbertokill} graczy i otrzymales nagrode!
on rightclick on player:
    if target player's name is "{@entityname2}":
		if {zp::%player%} is true:
				if {qzi::%player%} is {@numbertokill}:
				send "{@givemessage}"
				give {@nagroda} to player
			else:
				send "{@nagrodamessage}"
		if {zp::%player%} is "finish":
			send "{@finishmessage}"
		if {zp::%player%} is not true or "finish":
			send "{@questmessage}"
			set {qzi::%player%} to 0
			set {zp::%player%} to true
on death:
	if {zp::%attacker%} is true:
		add 1 to {qzi::%attacker%}
     	set {wd} to {@numbertokill}
     	remove {zp::%attacker%} from {wd}
     	send "{@zabijmessage}"
     	clear {wd}

 

Edytowane przez maxcom1
Odnośnik do komentarza
https://skript.pl/temat/34199-quest-na-zabicie-25-graczy/#findComment-220140
Udostępnij na innych stronach

  • 0
2 godziny temu, maxcom1Games napisał:

options:
	entityname2: Przestepca
	nagroda: 1 of diamond
	numbertokill: 25
	nagrodamessage: &cWykonaj quest, a dostaniesz nagrode!
	finishmessage: &cJuz wykonales ten quset"
	questmessage: &aZabij {@numbertokill} graczy a otrzymasz nagrode!
	zabijmessage: &9Zabij jeszcze %{wd}% graczy, aby otrzymac nagrode!
	givemessage: &aZabiles {@numbertokill} graczy i otrzymales nagrode!
on rightclick on entity:
    if event-entity's name is "{@entityname2}":
        if name of event-entity = "{@entityname2}":
			if {zp::%player%} is true:
					if {qzi::%player%} is {@numbertokill}:
					send "{@givemessage}"
					give {@nagroda} to player
				else:
					send "{@nagrodamessage}"
			if {zp::%player%} is "finish":
				send "{@finishmessage}"
			if {zp::%player%} is not true or "finish":
				send "{@questmessage}"
				set {qzi::%player%} to 0
				set {zp::%player%} to true
on death:
	if {zp::attacker% is true:
		add 1 to {qzi::%attacker%}
     	set {wd} to {@numbertokill}
     	remove {zp::%attacker%} from {wd}
     	send "{@zabijmessage}"
     	clear {wd}

 

Wykrywa 2 bledy.


 
[16:49:21 WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (Przestepca.sk, line 15: if {qzi::%player%} is {@numbertokill}:')
[16:49:21 ERROR]: Invalid use of quotes ("). If you want to use quotes in "quoted text", double them: "". (Przestepca.sk, line 21: send "{@finishmessage}"')
[16:49:21 ERROR]: Invalid amount or placement of brackets. Please make sure that each opening bracket has a corresponding closing bracket. (Przestepca.sk, line 27: if {zp::attacker% is true:')
[16:49:21 INFO]: [Skript] Encountered 2 errors while reloading Przestepca.sk!
Odnośnik do komentarza
https://skript.pl/temat/34199-quest-na-zabicie-25-graczy/#findComment-220154
Udostępnij na innych stronach

  • 0
2 minuty temu, xdzikuu napisał:

Zamień:


if {zp::attacker% is true:

na to:

if {zp::attacker%} is true:

 

oraz to:


send "{@finishmessage}"

na to:


send {@finishmessage}

Niestety caly czas 2 errory.


 
[17:02:10 WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (Przestepca.sk, line 15: if {qzi::%player%} is {@numbertokill}:')
[17:02:10 ERROR]: Invalid use of quotes ("). If you want to use quotes in "quoted text", double them: "". (Przestepca.sk, line 21: send {@finishmessage}')
[17:02:10 ERROR]: The percent sign is used for expressions (e.g. %player%). To insert a '%' type it twice: %%. (Przestepca.sk, line 27: if {zp::attacker%} is true:')
[17:02:10 INFO]: [Skript] Encountered 2 errors while reloading Przestepca.sk!
Odnośnik do komentarza
https://skript.pl/temat/34199-quest-na-zabicie-25-graczy/#findComment-220161
Udostępnij na innych stronach

  • 0

 
[17:27:09 WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (Przestepca.sk, line 14: if {qzi::%player%} is {@numbertokill}:')
[17:27:09 ERROR]: Invalid use of quotes ("). If you want to use quotes in "quoted text", double them: "". (Przestepca.sk, line 20: send "{@finishmessage}"')
[17:27:09 ERROR]: The percent sign is used for expressions (e.g. %player%). To insert a '%' type it twice: %%. (Przestepca.sk, line 26: if {zp::attacker%} is true:')
[17:27:09 INFO]: [Skript] Encountered 2 errors while reloading Przestepca.sk!
 
Caly czas 2 bledy
Odnośnik do komentarza
https://skript.pl/temat/34199-quest-na-zabicie-25-graczy/#findComment-220165
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ę...