Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 05:11

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

Advertisement



[Server] Problem ring_use.quest

Discussion on [Server] Problem ring_use.quest within the Metin2 Private Server forum part of the Metin2 category.

Closed Thread
 
Old   #1
 
rapperclau's Avatar
 
elite*gold: 0
Join Date: Aug 2012
Posts: 66
Received Thanks: 2
Exclamation [Server] Problem ring_use.quest

Hi As he says and in the title I have a problem with this quest:
P.S: I have to mention that I have not changed at all, this is original quest SG
Sorry for my bad english...

Code:
quest ring_detect begin
	state say_ring_of_ipkn begin
		when letter begin
			setskin(NOWINDOW)
			makequestbutton("The ring talked to me")
			q.set_title("The ring talked to me")
			q.start()
		end
		when button begin
			say(locale.NOTICE_COLOR.."The ring talked to me"..locale.NORMAL_COLOR)
			say("You must be surprised to see talking ring?")
			say("Well.. good. Do you want to have a deal?")
			say("I want to go out of here. But to do that")
			say("I need your help.")
			say("That's nothing much. But if you do it for me")
			say("I will reward you")
			say("What do you say?")
			say("")
			local b=select("Listen to the ring", "Refuse")
			if 1==b then
				say("Good. Very good. Of course")
				say("I want your Good/evil points. If you can give me[ENTER]I will make you invisible for one hour")
				say("What a good deal. Isn't it?")
				local b=select("Accept", "Refuse")
				if 1==b then
				elseif 2==b then
					setstate(start)
					q.done()
				else
					say("UNKNOWN BUTTON ["..b.."]")
				end
			elseif 2==b then
				say("Can you do this next time?")
				say("why did you throw me into fire if you were going to refuse?")
				say("Don't you think? Before the fire goes out")
				say("think one more time")
				say("")
				if pc.getf("ring_first_detect", "__status")==ring_first_detect.complete then
					say("Do you want to destroy the ring?")
					local b=select("Yes", "No")
					if 1==b then
						if pc.getf("ring_destroy", "__status")!=ring_destroy.start then
							say("You are already in the middle of the quest")
							say("Go to Infernal Flame Field and destroy the ring !")
						else
							setstate(start)
							q.done()
						end
					elseif 2==b then
						setstate(start)
						q.done()
					else
						say("UNKNOWN BUTTON ["..b.."]")
					end
				end
			else
				say("UNKNOWN BUTTON ["..b.."]")
			end
		end
		when info begin
			say(locale.NOTICE_COLOR.."The ring talked to me"..locale.NORMAL_COLOR)
			say("You must be surprised to see talking ring?")
			say("Well.. good. Do you want to have a deal?")
			say("I want to go out of here. But to do that")
			say("I need your help.")
			say("That's nothing much. But if you do it for me")
			say("I will reward you")
			say("What do you say?")
			say("")
			local b=select("Listen to the ring", "Refuse")
			if 1==b then
				say("Good. Very good. Of course")
				say("I want your Good/evil points. If you can give me[ENTER]I will make you invisible for one hour")
				say("What a good deal. Isn't it?")
				local b=select("Accept", "Refuse")
				if 1==b then
				elseif 2==b then
					setstate(start)
					q.done()
				else
					say("UNKNOWN BUTTON ["..b.."]")
				end
			elseif 2==b then
				say("Can you do this next time?")
				say("why did you throw me into fire if you were going to refuse?")
				say("Don't you think? Before the fire goes out")
				say("think one more time")
				say("")
				if pc.getf("ring_first_detect", "__status")==ring_first_detect.complete then
					say("Do you want to destroy the ring?")
					local b=select("Yes", "No")
					if 1==b then
						if pc.getf("ring_destroy", "__status")!=ring_destroy.start then
							say("You are already in the middle of the quest")
							say("Go to Infernal flame field and destroy the ring !")
						else
							setstate(start)
							q.done()
						end
					elseif 2==b then
						setstate(start)
						q.done()
					else
						say("UNKNOWN BUTTON ["..b.."]")
					end
				end
			else
				say("UNKNOWN BUTTON ["..b.."]")
			end
		end
	end
	state say_ring_of_thor begin
		when letter begin
			setskin(NOWINDOW)
			makequestbutton("The ring talked to me")
			q.set_title("The ring talked to me")
			q.start()
		end
		when button begin
			say(locale.NOTICE_COLOR.."The ring talked to me"..locale.NORMAL_COLOR)
			say("You must be surprised to see talking ring?")
			say("Well.. good. Do you want to have a deal?")
			say("I want to go out of here. But to do that")
			say("I need your help.")
			say("That's nothing much. But if you do it for me")
			say("I will reward you")
			say("What do you say?")
			say("")
			local b=select("Listen to the ring", "Refuse")
			if 1==b then
				say("Good. Very good. Of course")
				say("I want your Good/evil points. If you can give me[ENTER]I will make you have bonus on duel  for an hour")
				say("What a good deal. Isn't it?")
				local b=select("Accept", "Refuse")
				if 1==b then
				elseif 2==b then
					setstate(start)
					q.done()
				else
					say("UNKNOWN BUTTON ["..b.."]")
				end
			elseif 2==b then
				say("Can you do this next time?")
				say("why did you throw me into fire if you were going to refuse?")
				say("Don't you think? Before the fire goes out")
				say("think one more time")
				say("")
				if pc.getf("ring_first_detect", "__status")==ring_first_detect.complete then
					say("Do you want to destroy the ring?")
					local b=select("Yes", "No")
					if 1==b then
						if pc.getf("ring_destroy", "__status")!=ring_destroy.start then
							say("You are already in the middle of the quest")
							say("Go to Infernal Flame Field and destroy the ring !")
						else
							setstate(start)
							q.done()
						end
					elseif 2==b then
						setstate(start)
						q.done()
					else
						say("UNKNOWN BUTTON ["..b.."]")
					end
				end
			else
				say("UNKNOWN BUTTON ["..b.."]")
			end
		end
		when info begin
			say(locale.NOTICE_COLOR.."The ring talked to me"..locale.NORMAL_COLOR)
			say("You must be surprised to see talking ring?")
			say("Well.. good. Do you want to have a deal?")
			say("I want to go out of here. But to do that")
			say("I need your help.")
			say("That's nothing much. But if you do it for me")
			say("I will reward you")
			say("What do you say?")
			say("")
			local b=select("Listen to the ring", "Refuse")
			if 1==b then
				say("Good. Very good. Of course")
				say("I want your Good/evil points. If you can give me[ENTER]I will make you have bonus on duel for an hour")
				say("What a good deal. Isn't it?")
				local b=select("Accept", "Refuse")

				if 1==b then
				elseif 2==b then
					setstate(start)
					q.done()
				else
					say("UNKNOWN BUTTON ["..b.."]")
				end
			elseif 2==b then
				say("Can you do this next time?")
				say("why did you throw me into fire if you were going to refuse?")
				say("Don't you think? Before the fire goes out")
				say("think one more time")
				say("")
				if pc.getf("ring_first_detect", "__status")==ring_first_detect.complete then
					say("Do you want to destroy the ring?")
					local b=select("Yes", "No")
					if 1==b then
						if pc.getf("ring_destroy", "__status")!=ring_destroy.start then
							say("You are already in the middle of the quest")
							say("Go to Infernal flame field and destroy the ring !")
						else
							setstate(start)
							q.done()
						end
					elseif 2==b then
						setstate(start)
						q.done()
					else
						say("UNKNOWN BUTTON ["..b.."]")
					end
				end
			else
				say("UNKNOWN BUTTON ["..b.."]")
			end
		end
	end
	state say_ring_of_levi begin
		when letter begin
			setskin(NOWINDOW)
			makequestbutton("The ring talked to me")
			q.set_title("The ring talked to me")
			q.start()
		end
		when button begin
			say(locale.NOTICE_COLOR.."The ring talked to me"..locale.NORMAL_COLOR)
			say("You must be surprised to see talking ring?")
			say("Well.. good. Do you want to have a deal?")
			say("I want to go out of here. But to do that")
			say("I need your help.")
			say("That's nothing much. But if you do it for me")
			say("I will reward you")
			say("What do you say?")
			say("")
			local b=select("Listen to the ring", "Refuse")
			if 1==b then
				say("Good. Very good. Of course")
				say("I want your Good/evil points. If you can give me[ENTER]I will give you double EXP points for an hour")
				say("What a good deal. Isn't it?")
				local b=select("Accept", "Refuse")
				if 1==b then
				elseif 2==b then
					setstate(start)
					q.done()
				else
					say("UNKNOWN BUTTON ["..b.."]")
				end
			elseif 2==b then
				say("Can you do this next time?")
				say("why did you throw me into fire if you were going to refuse?")
				say("Don't you think? Before the fire goes out")
				say("think one more time")
				say("")
				if pc.getf("ring_first_detect", "__status")==ring_first_detect.complete then
					say("Do you want to destroy the ring?")
					local b=select("Yes", "No")
					if 1==b then
						if pc.getf("ring_destroy", "__status")!=ring_destroy.start then
							say("You are already in the middle of the quest")
							say("Go to Infernal flame field and destroy the ring !")
						else
							setstate(start)
							q.done()
						end
					elseif 2==b then
						setstate(start)
						q.done()
					else
						say("UNKNOWN BUTTON ["..b.."]")
					end
				end
			else
				say("UNKNOWN BUTTON ["..b.."]")
			end
		end
		when info begin
			say(locale.NOTICE_COLOR.."The ring talked to me"..locale.NORMAL_COLOR)
			say("You must be surprised to see talking ring?")
			say("Well.. good. Do you want to have a deal?")
			say("I want to go out of here. But to do that")
			say("I need your help.")
			say("That's nothing much. But if you do it for me")
			say("I will reward you")
			say("What do you say?")
			say("")
			local b=select("Listen to the ring", "Refuse")
			if 1==b then
				say("Good. Very good. Of course")
				say("I want your Good/evil points. If you can give me[ENTER]I will give you double EXP points for an hour")
				say("What a good deal. Isn't it?")
				local b=select("Accept", "Refuse")

				elseif 2==b then
					setstate(start)
					q.done()
				else
					say("UNKNOWN BUTTON ["..b.."]")
				end
			elseif 2==b then
				say("Can you do this next time?")
				say("why did you throw me into fire if you were going to refuse?")
				say("Don't you think? Before the fire goes out")
				say("think one more time")
				say("")
				if pc.getf("ring_first_detect", "__status")==ring_first_detect.complete then
					say("Do you want to destroy the ring?")
					local b=select("Yes", "No")
					if 1==b then
						if pc.getf("ring_destroy", "__status")!=ring_destroy.start then
							say("You are already in the middle of the quest")
							say("Go to Infernal flame field and destroy the ring !")
						else
							setstate(start)
							q.done()
						end
					elseif 2==b then
						setstate(start)
						q.done()
					else
						say("UNKNOWN BUTTON ["..b.."]")
					end
				end
			else
				say("UNKNOWN BUTTON ["..b.."]")
			end
		end
	end
	state start begin
		when 12000.take with is_test_server() and item.vnum==40002 and item.count>=1 begin
			setstate(say_ring_of_levi)
		end
		when 12000.take with is_test_server() and item.vnum==40003 and item.count>=1 begin
			setstate(say_ring_of_thor)
		end
		when 12000.take with is_test_server() and item.vnum==40004 and item.count>=1 begin
			setstate(say_ring_of_ipkn)
		end
		when 40002.use with is_test_server() begin
			say("I was trying to wear the ring")
			say("I fell it on the ground cause it was too cold")
			say("Somehow this ring is trying to tell me ")
			say("to put it back into the fire.")
			say("")
			say("I don¡¯t think it really did talked to me...")
		end
		when 40003.use with is_test_server() begin
			say("I was trying to wear the ring")
			say("I fell it on the ground cause it was too cold")
			say("Somehow this ring is trying to tell me ")
			say("to put it back into the fire.")
			say("")
			say("I don¡¯t think it really did talked to me...")
		end
		when 40004.use with is_test_server() begin
			say("I was trying to wear the ring")
			say("I fell it on the ground cause it was too cold")
			say("Somehow this ring is trying to tell me ")
			say("to put it back into the fire.")
			say("")
			say("I don¡¯t think it really did talked to me...")
		end
	end
	state __COMPLETE__ begin
		when enter begin
			q.done()
		end
	end
end
this is installation error:

PHP Code:
ring_use.quest:330:syntax error : [string "say_ring_of_levi"]:22: <eofexpected near `elseif'
Abort (core dumped) 
rapperclau is offline  
Old 09/03/2013, 16:40   #2



 
elite*gold: 0
The Black Market: 265/0/0
Join Date: Jul 2012
Posts: 24,491
Received Thanks: 3,215
Please use this Thread.



#clsrq
Sintiax is offline  
Closed Thread


Similar Threads Similar Threads
[Server] Problem guild_war_bet.quest
09/03/2013 - Metin2 Private Server - 2 Replies
Hi As he says and in the title I have a problem with this quest: P.S: I have to mention that I have not changed at all, this is original quest SG 2 Hours torturing myself and do not give him the end..... Sorry for my bad english... quest guild_war_bet begin state start begin when guild_war_observer1.chat."Guild War-Bet" or guild_war_observer2.chat."Guild War-Bet" or
[Server] Problem guild_war_bet.quest
09/03/2013 - Metin2 - 2 Replies
Hi As he says and in the title I have a problem with this quest: P.S: I have to mention that I have not changed at all, this is original quest SG 2 Hours torturing myself and do not give him the end..... Sorry for my bad english... quest guild_war_bet begin state start begin when guild_war_observer1.chat."Guild War-Bet" or guild_war_observer2.chat."Guild War-Bet" or
Problem bei eigenen Quest im Server implementieren:>
11/05/2011 - Metin2 Private Server - 0 Replies
Hay E-pvper. Hoffe ihr könnt mir bei einem folgenden problem helfen undzwar will ich bei mir im Server eigene Quest reinfügen aber es kommt dauernt ne Fehlermeldung die so geht assertion failure: nested==0 waffruss.quest:44:Abort trap Error occured on compile waffruss.quest Hoffe um hilfe Gibt auch ein THX;) Ps: nicht kritisieren ist mein erster eintrag:D
[Problem] Problem with server starting - cannot find quest index for PaxHeader
12/22/2009 - Metin2 Private Server - 1 Replies
Hello! I have this same problem as here when i'm starting my server: http://www.elitepvpers.com/forum/metin2-pserver-di scussions-questions/307143-metin2-serverfiles-ques t-index-fehler.html But I didn't know the answer.. how to repair this? Greetings



All times are GMT +1. The time now is 05:12.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.