Probelama Quest

Înainte de a posta o problemă, caută în acest forum și poate găsești rezolvare.
Închis
Avatar utilizator
freakkkkz
Nivel 1

Nivel 1
Mesaje: 134
Membru din: 06 Mai 2016, 11:47
Server: XTera2
Regat: Shinsoo
Aprecieri: 170  
Mulţumiri: 1  
 Contact:
Medalii

Problemă: Ma poate ajuta cineva cu questul asta sa fac sa ceara 10 oua cand duci la iepure ca am vazut ca si daca duci 1 tot ti se da premiu ...
Tipologie server PvM Mediu
ServerFiles utilizat:2Metin
Syserr:----//----
Detalii suplimentare:
quest eveniment_iepuras begin
state start begin
when login begin
if game.get_event_flag("eveniment_Iepuras") == 1 then
chat("[EVENIMENT DE PASTE]: - ACTIVAT.")
end
end
when 30129.chat."Administrare eveniment" with pc.is_gm() begin
if game.get_event_flag("eveniment_paste") == 1 then
say_title("EVENIMENT PASTE:")
say(" ")
say("Doresti sa inchizi acest eveniment? ")
say(" ")
local confirma = select ("Da", "Nu acum")
if 1 == confirma then
notice_all("[EVENIMENT DE PASTE]: - TERMINAT.")
game.set_event_flag("eveniment_paste", 0)
return
end
end
if game.get_event_flag("eveniment_paste") == 0 then
say_title("EVENIMENT PASTE:")
say(" ")
say("Doresti sa deschizi acest eveniment? ")
say(" ")
local confirma = select ("Da", "Nu acum")
if 1 == confirma then
notice_all("[EVENIMENT DE PASTE]:- ACTIVAT.")
game.set_event_flag("eveniment_paste", 1)
return
end
end
end
when 30129.chat."Event de paste" with game.get_event_flag("eveniment_paste") == 1 begin
say_title("Iepuras:")
say(" ")
say("Saluare! Dupa cum poate stii astazi este ")
say("eventul de paste. Toti jucatorii cauta oua")
say("pentru a primi in schimbul oualor iteme ")
say("care ii vor ajuta in aventura lor pe ser- ")
say("ver. Asadar, daca gasesti oua ")
say("adu-mii mie pentru a-ti da la ")
say("schimb un premiu! ")
say(" ")
return
end
when 30129.take with item.vnum == 50160 and game.get_event_flag("eveniment_paste") == 1 begin
say_title("Iepuras :")
say(" ")
say("Oh, se pare ca ai gasit ceva oua. Ei bi-")
say("ne, dupa cum ti-am promis iti voi da in ")
say("schimbul lor un premiu. Doresti sa facem ")
say("schimbul? ")
say(" ")
local confirmare = select ("Desigur", "Nu")
if 1 == confirmare then
pc.remove_item(50160, 10)
pc.give_item2(50125, 1)
return
end
if 2 == confirmare then
return
end
end
when 30129.take with item.vnum == 50162 and game.get_event_flag("eveniment_paste") == 1 begin
say_title("Iepuras:")
say(" ")
say("Oh, se pare ca ai gasit ceva oua. Ei bi-")
say("ne, dupa cum ti-am promis iti voi da in ")
say("schimbul lor un premiu. Doresti sa facem ")
say("schimbul? ")
say(" ")
local confirmare = select ("Desigur", "Nu")
if 1 == confirmare then
pc.remove_item(50161, 10)
pc.give_item2(50125, 1)
return
end
if 2 == confirmare then
return
end
end
end
end
Avatar utilizator
[RaffaeL]
Software Developer

Software Developer
Mesaje: 3223
Membru din: 19 Mar 2016, 12:58
Server: ...
Aprecieri: 15  
Mulţumiri: 2502  
  Rezolvări prob.: 2
Discord: Copiază ID
 Contact:
Medalii

freakkkkz scrie:Problemă: Ma poate ajuta cineva cu questul asta sa fac sa ceara 10 oua cand duci la iepure ca am vazut ca si daca duci 1 tot ti se da premiu ...
Tipologie server PvM Mediu
ServerFiles utilizat:2Metin
Syserr:----//----
Detalii suplimentare:
quest eveniment_iepuras begin
state start begin
when login begin
if game.get_event_flag("eveniment_Iepuras") == 1 then
chat("[EVENIMENT DE PASTE]: - ACTIVAT.")
end
end
when 30129.chat."Administrare eveniment" with pc.is_gm() begin
if game.get_event_flag("eveniment_paste") == 1 then
say_title("EVENIMENT PASTE:")
say(" ")
say("Doresti sa inchizi acest eveniment? ")
say(" ")
local confirma = select ("Da", "Nu acum")
if 1 == confirma then
notice_all("[EVENIMENT DE PASTE]: - TERMINAT.")
game.set_event_flag("eveniment_paste", 0)
return
end
end
if game.get_event_flag("eveniment_paste") == 0 then
say_title("EVENIMENT PASTE:")
say(" ")
say("Doresti sa deschizi acest eveniment? ")
say(" ")
local confirma = select ("Da", "Nu acum")
if 1 == confirma then
notice_all("[EVENIMENT DE PASTE]:- ACTIVAT.")
game.set_event_flag("eveniment_paste", 1)
return
end
end
end
when 30129.chat."Event de paste" with game.get_event_flag("eveniment_paste") == 1 begin
say_title("Iepuras:")
say(" ")
say("Saluare! Dupa cum poate stii astazi este ")
say("eventul de paste. Toti jucatorii cauta oua")
say("pentru a primi in schimbul oualor iteme ")
say("care ii vor ajuta in aventura lor pe ser- ")
say("ver. Asadar, daca gasesti oua ")
say("adu-mii mie pentru a-ti da la ")
say("schimb un premiu! ")
say(" ")
return
end
when 30129.take with item.vnum == 50160 and game.get_event_flag("eveniment_paste") == 1 begin
say_title("Iepuras :")
say(" ")
say("Oh, se pare ca ai gasit ceva oua. Ei bi-")
say("ne, dupa cum ti-am promis iti voi da in ")
say("schimbul lor un premiu. Doresti sa facem ")
say("schimbul? ")
say(" ")
local confirmare = select ("Desigur", "Nu")
if 1 == confirmare then
pc.remove_item(50160, 10)
pc.give_item2(50125, 1)
return
end
if 2 == confirmare then
return
end
end
when 30129.take with item.vnum == 50162 and game.get_event_flag("eveniment_paste") == 1 begin
say_title("Iepuras:")
say(" ")
say("Oh, se pare ca ai gasit ceva oua. Ei bi-")
say("ne, dupa cum ti-am promis iti voi da in ")
say("schimbul lor un premiu. Doresti sa facem ")
say("schimbul? ")
say(" ")
local confirmare = select ("Desigur", "Nu")
if 1 == confirmare then
pc.remove_item(50161, 10)
pc.give_item2(50125, 1)
return
end
if 2 == confirmare then
return
end
end
end
end
Cauta in quest:
when 30129.take
si adauga sub acea linie

Cod: Selectaţi tot

			if item.get_count(take) < 10 then
			return
			else
Ar trebui sa ai ceva de forma(luat strict din questul tau):

Cod: Selectaţi tot

when 30129.take with item.vnum == 50160 and game.get_event_flag("eveniment_paste") == 1 begin
			if item.get_count(take) < 10 then
			say_title("Iepuras :")
			say(" ")
			say("Nu esti atat de tare in oua, pe cat credeai...")
			return
			else
			say_title("Iepuras :")
			say(" ")
			say("Oh, se pare ca ai gasit ceva oua. Ei bi-")
			say("ne, dupa cum ti-am promis iti voi da in ")
			say("schimbul lor un premiu. Doresti sa facem ")
			say("schimbul? ")
			say(" ")
			local confirmare = select ("Desigur", "Nu")
				if 1 == confirmare then
				pc.remove_item(50160, 10)
				pc.give_item2(50125, 1)
				return
				end
				if 2 == confirmare then return end
			end
Editat in acest fel, va trebui sa "tragi" pe iepuras un stack de 10 oua, pentru a primi premiul.

PS: Editeaza mesajul Iepurasului, in cazul in care numarul de oua nu corespunde, si ma refer la
say("Nu esti atat de tare in oua, pe cat credeai...")
L-am scris sub forma de gluma :)
Imagine
Imagine
https://www.youtube.com/watch?v=GhYkCIETEto
Do everything, if you know what you're doing, else... Imagine
Ma gasesti si aici: Discord https://discord.gg/5J5GnyZVSR
Afișează semnătura
Avatar utilizator
freakkkkz
Nivel 1

Nivel 1
Mesaje: 134
Membru din: 06 Mai 2016, 11:47
Server: XTera2
Regat: Shinsoo
Aprecieri: 170  
Mulţumiri: 1  
 Contact:
Medalii

imi apare asta
paste.quest:90:syntax error : [string "startitem . vnum == 50160 and game . get_event_flag ( "evenimen..."]:21: unexpected symbol near `when'
Abort (core dumped)
root@metin2:/usr/game/share/locale/romania/quest #
Avatar utilizator
[RaffaeL]
Software Developer

Software Developer
Mesaje: 3223
Membru din: 19 Mar 2016, 12:58
Server: ...
Aprecieri: 15  
Mulţumiri: 2502  
  Rezolvări prob.: 2
Discord: Copiază ID
 Contact:
Medalii

freakkkkz scrie:imi apare asta
paste.quest:90:syntax error : [string "startitem . vnum == 50160 and game . get_event_flag ( "evenimen..."]:21: unexpected symbol near `when'
Abort (core dumped)
root@metin2:/usr/game/share/locale/romania/quest #
Am inteles. Inseamna ca nu ai editat corect questul. Iti las mai jos questul complet, editat:

Cod: Selectaţi tot

quest eveniment_iepuras begin
	state start begin
		when login begin
			if game.get_event_flag("eveniment_Iepuras") == 1 then
			chat("[EVENIMENT DE PASTE]: - ACTIVAT.")
			end
		end
		when 30129.chat."Administrare eveniment" with pc.is_gm() begin
			if game.get_event_flag("eveniment_paste") == 1 then
			say_title("EVENIMENT PASTE:")
			say(" ")
			say("Doresti sa inchizi acest eveniment? ")
			say(" ")
			local confirma = select ("Da", "Nu acum")
				if 1 == confirma then
				notice_all("[EVENIMENT DE PASTE]: - TERMINAT.")
				game.set_event_flag("eveniment_paste", 0)
				return
				end
			end
			if game.get_event_flag("eveniment_paste") == 0 then
			say_title("EVENIMENT PASTE:")
			say(" ")
			say("Doresti sa deschizi acest eveniment? ")
			say(" ")
			local confirma = select ("Da", "Nu acum")
				if 1 == confirma then
				notice_all("[EVENIMENT DE PASTE]:- ACTIVAT.")
				game.set_event_flag("eveniment_paste", 1)
				return
				end
			end
		end
		when 30129.chat."Event de paste" with game.get_event_flag("eveniment_paste") == 1 begin
		say_title("Iepuras:")
		say(" ")
		say("Saltuare! Dupa cum poate stii astazi este ")
		say("eventul de paste. Toti jucatorii cauta oua")
		say("pentru a primi in schimbul oualor iteme ")
		say("care ii vor ajuta in aventura lor pe ser- ")
		say("ver. Asadar, daca gasesti oua ")
		say("adu-le mie pentru a-ti da la ")
		say("schimb un premiu! ")
		say(" ")
		return
		end
		when 30129.take with item.vnum == 50160 and game.get_event_flag("eveniment_paste") == 1 begin
			if item.get_count(take) < 10 then
			say_title("Iepuras :")
			say(" ")
			say("Nu ai adunat destule oua?[ENTER]")
			say_reward("Trebuie sa imi dai 10 oua, ca sa iti primesti premiul.")
			return
			else
			say_title("Iepuras :")
			say(" ")
			say("Oh, se pare ca ai gasit ceva oua. Ei bi-")
			say("ne, dupa cum ti-am promis iti voi da in ")
			say("schimbul lor un premiu. Doresti sa facem ")
			say("schimbul? ")
			say(" ")
			local confirmare = select ("Desigur", "Nu")
				if 1 == confirmare then
				pc.remove_item(50160, 10)
				pc.give_item2(50125, 1)
				return
				end
				if 2 == confirmare then return end
			end
		end
		when 30129.take with item.vnum == 50162 and game.get_event_flag("eveniment_paste") == 1 begin
			if item.get_count(take) < 10 then
			say_title("Iepuras :")
			say(" ")
			say("Nu ai adunat destule oua?[ENTER]")
			say_reward("Trebuie sa imi dai 10 oua, ca sa iti primesti premiul.")
			return
			else
			say_title("Iepuras:")
			say(" ")
			say("Oh, se pare ca ai gasit ceva oua. Ei bi-")
			say("ne, dupa cum ti-am promis iti voi da in ")
			say("schimbul lor un premiu. Doresti sa facem ")
			say("schimbul? ")
			say(" ")
			local confirmare = select ("Desigur", "Nu")
				if 1 == confirmare then
				pc.remove_item(50161, 10)
				pc.give_item2(50125, 1)
				return
				end
				if 2 == confirmare then return end
			end
		end
	end
end
Pentru acest mesaj, [RaffaeL] for the post:
freakkkkz
Imagine
Imagine
https://www.youtube.com/watch?v=GhYkCIETEto
Do everything, if you know what you're doing, else... Imagine
Ma gasesti si aici: Discord https://discord.gg/5J5GnyZVSR
Afișează semnătura
Avatar utilizator
freakkkkz
Nivel 1

Nivel 1
Mesaje: 134
Membru din: 06 Mai 2016, 11:47
Server: XTera2
Regat: Shinsoo
Aprecieri: 170  
Mulţumiri: 1  
 Contact:
Medalii

Multumesc frumos Rafael ... daca mai mai putea ajuta cu o problema am switch-boot cel cu x7 sloturi dar numi apar toate bonusurile acolo gen viteza atac /animale /fulger miai putea spuen cum sa le bag ? te rog frumos
Avatar utilizator
[RaffaeL]
Software Developer

Software Developer
Mesaje: 3223
Membru din: 19 Mar 2016, 12:58
Server: ...
Aprecieri: 15  
Mulţumiri: 2502  
  Rezolvări prob.: 2
Discord: Copiază ID
 Contact:
Medalii

freakkkkz scrie:Multumesc frumos Rafael ... daca mai mai putea ajuta cu o problema am switch-boot cel cu x7 sloturi dar numi apar toate bonusurile acolo gen viteza atac /animale /fulger miai putea spuen cum sa le bag ? te rog frumos
Dezchizi fisierul switchbot.py, cu un editor de text, cauti linia(ar trebui sa fie undeva intre liniile 18-21)
BONI_AVAIL = [1,2,3,4,5,6,9,10
si adaugi codurile bonusurilor care te intereseaza, consecutiv, acolo unde se incadreaza fiecare.
Codurile bonusurilor le gasesti aici.
Pentru acest mesaj, [RaffaeL] for the post:
freakkkkz
Imagine
Imagine
https://www.youtube.com/watch?v=GhYkCIETEto
Do everything, if you know what you're doing, else... Imagine
Ma gasesti si aici: Discord https://discord.gg/5J5GnyZVSR
Afișează semnătura
Avatar utilizator
freakkkkz
Nivel 1

Nivel 1
Mesaje: 134
Membru din: 06 Mai 2016, 11:47
Server: XTera2
Regat: Shinsoo
Aprecieri: 170  
Mulţumiri: 1  
 Contact:
Medalii

mersi foarte frumos ai un mare like de la mine :D
Avatar utilizator
Inuyasha
Utilizator interzis !

Utilizator interzis !
Mesaje: 1087
Membru din: 17 Feb 2017, 22:54
Server: Metin2 Ro
Regat: Chunjo
Aprecieri: 12  
Mulţumiri: 182  
 Contact:
Medalii

Subiect rezolvat.

[ Postat de pe Android ] Imagine
„Vrei să trăiești cum se cuvine? Învață mai întâi să mori.” — Confucius
Afișează semnătura
Închis

Înapoi la “Probleme rezolvate”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Semrush [Bot] și 29 vizitatori