Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 08:28

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[HELP]Quest doesnt working

Discussion on [HELP]Quest doesnt working within the Metin2 Private Server forum part of the Metin2 category.

Closed Thread
 
Old   #1
 
lordord's Avatar
 
elite*gold: 144
The Black Market: 157/1/0
Join Date: Oct 2009
Posts: 453
Received Thanks: 120
[HELP]Quest doesnt working

Hello epvp!

Im creating a quest and it doesnt work. The quest need to have a first letter wich say to you that need to go to talk with "9005" and when you talk with him he give you the real quest, kill 50x502.

And this isnt on the quest because i dont know the code but can you say me how i put when llaves1.quest finish start llaves2.quest ?

Code:
quest llaves1 begin
	state start begin
		when login or letter with pc.level >= 1 begin
			send_letter("El inventario cerrado") ---- Nombre del pergamino ejm mision 1 llave
			say("Como!? Tu inventario ha sido cerrado?")
			say("Como puede ser posible? ")
			say("Ves a hablar inmediatamente con el")
			say("Encargado del almacen y el te explicara")
			say("como puedes conseguir tus llaves")
			say("Habla con "..mob_name(9005).."")
			local v = find_npc_by_vnum(9005)		
			if 0 != v then
				target.vid("__TARGET__", v, mob_name(9005))
			end
		end
		
		when button or info begin
			say('test')
		end

		when __TARGET__target.click or 9005.chat. "Las llaves de inventario" begin
			target.delete("__TARGET__")
			say_tittle("Encargado del almacen")
			say("Hmm... Puedo ver que tu inventario esta")
			say("la mitad cerrado. Pero no te preocupues")
			say("yo puedo ayudarte a abrirte por lo menos")
			say("un inventario entero!")
			say("Pero nada es gratis amigo. Tendras que ayudarme")
			say("en algunas tareas que tengo pendientes y matar")
			say("algunos monstruos que me robaron mis llaves")
			say("ya que yo como comprenderas no puedo moverme.")
			wait()
			say_tittle("Encargado del almacen")
			say("Esta primera mision sera facilita, pero no seran")
			say("todas asi, asi que no te confies demasiado.")
			say("Para comprobar tu fuerza tendras que eliminar")
			say("50 Siervos Salvajes ubicados en la City2")
			say("Elimina 30 "..mob_name(502)...")
			pc.setqf("monster_502", 50)

				if pc.getqf("monster_502") == 0 then
					set_state(__reward)
				end
			end
		end

		state __reward begin
			when letter begin
			send_letter("Recompensa del Encargado")
		end

		when button or info begin
			say_title("El inventario cerrado")
			say("")
			say("Has eliminado todas las criaturas")
			say("el Encargado del Almacen te da")
			say("las gracias por tu tarea realizada.")
			say("Te envia estos baules con llaves en su interior")
			say("para que puedas abrir tu primer hueco.")
			say_reward ( "Recibes 2 Baules del Inventario" )
			pc.give_item2(31068,2)
			clear_letter()
			pc.setqf("llaves1", 1)
			pc.setqf("completed", pc.getqf("completed")+1)
			pc.setqf("llaves1", 0)
			set_state(__COMPLETE)
		end
	end

	state __COMPLETE begin
	end
end
Kings regards Lordord
lordord is offline  
Old 10/18/2018, 14:46   #2


 
Benhero's Avatar
 
elite*gold: 964
Join Date: Mar 2008
Posts: 2,634
Received Thanks: 1,637
Code:
ay("Elimina 30 "..mob_name(502)...")
at the end you missing a second "
Benhero is offline  
Old 10/18/2018, 15:16   #3
 
lordord's Avatar
 
elite*gold: 144
The Black Market: 157/1/0
Join Date: Oct 2009
Posts: 453
Received Thanks: 120
Quote:
Originally Posted by Benhero View Post
Code:
ay("Elimina 30 "..mob_name(502)...")
at the end you missing a second "
I add it and now it say this:

lordord is offline  
Old 10/18/2018, 15:20   #4


 
Benhero's Avatar
 
elite*gold: 964
Join Date: Mar 2008
Posts: 2,634
Received Thanks: 1,637
Code:
mob_name(502)...
also have to change the 3 dots to 2 dots..

Greatzs
Benhero is offline  
Old 10/18/2018, 15:22   #5
 
lordord's Avatar
 
elite*gold: 144
The Black Market: 157/1/0
Join Date: Oct 2009
Posts: 453
Received Thanks: 120
Quote:
Originally Posted by Benhero View Post
Code:
mob_name(502)...
also have to change the 3 dots to 2 dots..

Greatzs
Now only give this error:

lordord is offline  
Old 10/18/2018, 15:32   #6


 
Benhero's Avatar
 
elite*gold: 964
Join Date: Mar 2008
Posts: 2,634
Received Thanks: 1,637
Read the message... Call undeclared function say_tittle
Benhero is offline  
Old 10/18/2018, 15:45   #7
 
lordord's Avatar
 
elite*gold: 144
The Black Market: 157/1/0
Join Date: Oct 2009
Posts: 453
Received Thanks: 120
Quote:
Originally Posted by Benhero View Post
Read the message... Call undeclared function say_tittle
Okey now its works but dont let me open the first letter and when i log in it look here.



Edit: And when i talk with 9005 give me the text but doesnt start the quest.
lordord is offline  
Old 10/18/2018, 16:28   #8


 
Benhero's Avatar
 
elite*gold: 964
Join Date: Mar 2008
Posts: 2,634
Received Thanks: 1,637
Since you seem to be a very ungrateful person, I will not help you now. Good luck continues.
Benhero is offline  
Old 10/18/2018, 17:15   #9
 
lordord's Avatar
 
elite*gold: 144
The Black Market: 157/1/0
Join Date: Oct 2009
Posts: 453
Received Thanks: 120
Quote:
Originally Posted by Benhero View Post
Since you seem to be a very ungrateful person, I will not help you now. Good luck continues.
WTF bro ? Ofc im very grateful that you are the only want are helping me s:
lordord is offline  
Old 10/22/2018, 18:52   #10
 
elite*gold: 286
Join Date: Sep 2018
Posts: 556
Received Thanks: 1,564
Use this Headcontent
Code:
quest llaves1 begin

        state start begin
		when levelup or login with pc.get_level() >= 1 begin
			set_state(npc)
		end
	end
	state npc begin
		when letter begin
			local v = find_npc_by_vnum(9005)
			if v != 0 then target.vid("__TARGET__", v, "NPC-NAME")
			end
			send_letter("Scroll NAME")
		end
		when button or info begin
			say_title("Title Name")
			say("txt")
			say("txt")
			say("")
		end

		when __TARGET__target.click or 9005.chat. "Las llaves de inventario" begin
			target.delete("__TARGET__")
			say_tittle("Encargado del almacen")
			say("Hmm... Puedo ver que tu inventario esta")
			say("la mitad cerrado. Pero no te preocupues")
			say("yo puedo ayudarte a abrirte por lo menos")
			say("un inventario entero!")
			say("Pero nada es gratis amigo. Tendras que ayudarme")
			say("en algunas tareas que tengo pendientes y matar")
			say("algunos monstruos que me robaron mis llaves")
			say("ya que yo como comprenderas no puedo moverme.")
			wait()
			say_tittle("Encargado del almacen")
			say("Esta primera mision sera facilita, pero no seran")
			say("todas asi, asi que no te confies demasiado.")
			say("Para comprobar tu fuerza tendras que eliminar")
			say("50 Siervos Salvajes ubicados en la City2")
			say("Elimina 30 "..mob_name(502)...")
			pc.setqf("monster_502", 50)

				if pc.getqf("monster_502") == 0 then
					set_state(__reward)
				end
			end
		end

		state __reward begin
			when letter begin
			send_letter("Recompensa del Encargado")
		end

		when button or info begin
			say_title("El inventario cerrado")
			say("")
			say("Has eliminado todas las criaturas")
			say("el Encargado del Almacen te da")
			say("las gracias por tu tarea realizada.")
			say("Te envia estos baules con llaves en su interior")
			say("para que puedas abrir tu primer hueco.")
			say_reward ( "Recibes 2 Baules del Inventario" )
			pc.give_item2(31068,2)
			clear_letter()
			pc.setqf("llaves1", 1)
			pc.setqf("completed", pc.getqf("completed")+1)
			pc.setqf("llaves1", 0)
			set_state(__COMPLETE)
		end
	end

	state __COMPLETE begin
	end
end
#Xenos is offline  
Old 10/23/2018, 07:11   #11
Administrator
 
andii's Avatar
 
elite*gold: 28390
The Black Market: 155/0/0
Join Date: Aug 2013
Posts: 9,902
Received Thanks: 2,652
Please use this thread:


#closed
andii is offline  
Thanks
1 User
Closed Thread


Similar Threads Similar Threads
My Charles doesnt see "quest" and other SC files.
04/24/2012 - Facebook - 11 Replies
Hi, my problem is that my Charles doesnt see files on SC folder. http://img840.imageshack.us/img840/1518/il430xn84 02233.jpg WTF ? :(
Guys help , the Navicat for PostgreSQL doesnt working
04/01/2012 - Rappelz - 1 Replies
hey all , please , can some one tell me how to run Navicat for PostgreSQL for hack rappelz servers plz
Compile all quest without quest's files list // Kompilieren Sie alle Quest ohne Quest
07/17/2011 - Metin2 PServer Guides & Strategies - 3 Replies
ENGLISH Hello dear community, this is a very simple guide but at the same time useful. How to compile ALL quest in the folder "quest" without the files list in the file "locale_list"? Easy! Open the file "make" and replace the content of the file with this: for f in *.quest; do ./qc $f; done Oki. Now set the 0777 permission to the file. Finally open a SSH client and sign in. Write the command: cd /game_file_folder
tbot 0919 doesnt pick up curst hearts and quest items
10/07/2007 - Silkroad Online - 7 Replies
everthing with my bot is fine accept my bot doesnt pick up curts hearts and quest items and solutions?



All times are GMT +1. The time now is 08:28.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.