Jump to content
Forgot your email address? ×
×
×
  • Create New...
  • 0

Quest Problem


Shisui

Question

  • Former Staff

Hello, can you tell me what's wrong in this quest?

 

quest teleport begin


state start begin
when login begin
cmdchat("teleporter_index "..q.getcurrentquestindex())
end
when button or info begin
say_title("Teleportation Ring:")
say("Choose a place to go.")
say("")
local s = select("Kingdoms","Forests","Spider Caves","Sürgün Maðarasý ","Other Places","Close")
if s == 1 then
say_title("Teleportation Ring:")
local k = select("Jinno","Chunjo","Shinsoo","Cancel")
if k == 1 then
say_title("Teleportation Ring:")
say("Jinno Kingdom selected.")
say("")
say("Choose a village to go.")
say("")
say("")
local j = select("Pyungmoo","Bakra","Cancel")
if j == 1 then
pc.warp(959800,268400)
elseif j == 1 then
pc.warp(873100,242600)
end
elseif k == 2 then
say_title("Teleportation Ring:")
say("Chunjo Kingdom selected.")
say("")
say("Choose a village to go.")
say("")
say("")
local c = select("Joan","Bokjung","Cancel")
if c == 1 then
pc.warp(63800,166400)
elseif c == 2 then
pc.warp(138500,234900)
end
elseif k == 3 then
say_title("Teleportation Ring:")
say("Shinsoo Kingdom selected.")
say("")
say("Choose a village to go.")
say("")
say("")
local sh = select("Yongan","Yayang","Cancel")
if sh == 1 then
pc.warp(474300,954800)
elseif sh == 2 then
pc.warp(360800,877600)
end
elseif s == 2 then
say_title("Teleportation Ring:")
local sss = select("Ghost Forest","Red Wood","Cancel")
if sss == 1 then
pc.warp(288700,5700)
elseif sss == 2 then
pc.warp(1119900,70800)
end
elseif s == 3 then
say_title("Teleportation Ring:")
local zindan = select("Örümcek Zindaný 1. Kat Baþý ","Örümcek Zindaný 2. Kat Sonu","Vazgeç ")
if zindan == 1 then
pc.warp(59800,497300)
elseif zindan == 2 then
pc.warp(704100,521900)
end
elseif s == 4 then
say_title("Teleportation Ring:")
say("Sürgün Maðarasý giriþine ýþýnlanýyorsun...")
wait()
pc.warp(284400,810700)
elseif s == 5 then
say_title("Teleportation Ring:")
local sssssss = select("Seungryong Vadisi","Sohan Daðý ","Yongbi Çölü ","Doyyumhwan","Devler Diyarý ","Þeytan Kulesi","Þeytan Mezarlýðý ","Kýrmýzý Ejderha Kalesi ","Nemere'nin Gözetleme Kulesi ","Vazgeç ")
if sssssss == 1 then
pc.warp(336000,755600)
elseif sssssss == 2 then
pc.warp(436400,215600)
elseif sssssss == 3 then
pc.warp(296800,547400)
elseif sssssss == 4 then
pc.warp(600800,687400)
elseif sssssss == 5 then
pc.warp(829900,763300)
elseif sssssss == 6 then
pc.warp(590500,110500)
elseif sssssss == 7 then
pc.warp(591100,99300)
elseif sssssss == 8 then
pc.warp(614739,706929)
elseif sssssss == 9 then
pc.warp(432792,165998)
end
elseif s == 9 then
end
end
end
end
end

 

Thanks in advance.

Link to comment

3 answers to this question

Recommended Posts

  • 0
quest teleport begin
	state start begin
		when login begin
			cmdchat("teleporter_index "..q.getcurrentquestindex())
		end
		when button or info begin
			say_title("Teleportation Ring:")
			say("Choose a place to go.")
			say("")
			local s = select("Kingdoms","Forests","Spider Caves","Sürgün Maðarasý","Other Places","Close")
			if s == 1 then
				say_title("Teleportation Ring:")
				local k = select("Jinno","Chunjo","Shinsoo","Cancel")
				if k == 1 then
					say_title("Teleportation Ring:")
					say("Jinno Kingdom selected.")
					say("")
					say("Choose a village to go.")
					say("")
					say("")
					local j = select("Pyungmoo","Bakra","Cancel")
					if j == 1 then
						pc.warp(959800,268400)
					elseif j == 1 then
						pc.warp(873100,242600)
					end
				elseif k == 2 then
					say_title("Teleportation Ring:")
					say("Chunjo Kingdom selected.")
					say("")
					say("Choose a village to go.")
					say("")
					say("")
					local c = select("Joan","Bokjung","Cancel")
					if c == 1 then
						pc.warp(63800,166400)
					elseif c == 2 then
						pc.warp(138500,234900)
					end
				elseif k == 3 then
					say_title("Teleportation Ring:")
					say("Shinsoo Kingdom selected.")
					say("")
					say("Choose a village to go.")
					say("")
					say("")
					local sh = select("Yongan","Yayang","Cancel")
					if sh == 1 then
						pc.warp(474300,954800)
					elseif sh == 2 then
						pc.warp(360800,877600)
					end
				end
			elseif s == 2 then
				say_title("Teleportation Ring:")
				local sss = select("Ghost Forest","Red Wood","Cancel")
				if sss == 1 then
					pc.warp(288700,5700)
				elseif sss == 2 then
					pc.warp(1119900,70800)
				elseif sss == 3 then 
					return
				end
			elseif s == 3 then
				say_title("Teleportation Ring:")
				local zindan = select("Örümcek Zindaný 1. Kat Baþý ","Örümcek Zindaný 2. Kat Sonu","Vazgeç ")
				if zindan == 1 then
					pc.warp(59800,497300)
				elseif zindan == 2 then
					pc.warp(704100,521900)
				elseif zindan == 3 then
					return
				end
			elseif s == 4 then
				say_title("Teleportation Ring:")
				say("Sürgün Maðarasý giriþine ýþýnlanýyorsun...")
				wait()
				pc.warp(284400,810700)
			elseif s == 5 then
				say_title("Teleportation Ring:")
				local sssssss = select("Seungryong Vadisi","Sohan Daðý ","Yongbi Çölü ","Doyyumhwan","Devler Diyarý ","Þeytan Kulesi","Þeytan Mezarlýðý ","Kýrmýzý Ejderha Kalesi ","Nemere'nin Gözetleme Kulesi ","Vazgeç ")
				if sssssss == 1 then
					pc.warp(336000,755600)
				elseif sssssss == 2 then
					pc.warp(436400,215600)
				elseif sssssss == 3 then
					pc.warp(296800,547400)
				elseif sssssss == 4 then
					pc.warp(600800,687400)
				elseif sssssss == 5 then
					pc.warp(829900,763300)
				elseif sssssss == 6 then
					pc.warp(590500,110500)
				elseif sssssss == 7 then
					pc.warp(591100,99300)
				elseif sssssss == 8 then
					pc.warp(614739,706929)
				elseif sssssss == 9 then
					pc.warp(432792,165998)
				elseif sssssss == 10 then
					return
				end
			end
		end
	end
end

This should work. However, the variables are very ugly and i don't like warpquests with snake codes (like this).

  • Love 1
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Announcements

  • -15% Discount in Metin2 Dev Store (01/10/2021 => 31/12/2021) => Code => 15_PCT_OCT_TO_DEC_2021


  • Read our Rules
  • Activity

    1. 7

      PHOENIX2 !OLDSCHOOL SERVER, PAYTOWIN REMOVED!

    2. 0

      special_item_group and chest apprentice

    3. 2

      Alternative Alternative Zodiac Suit - Ninja M

    4. 0

      character details negative bonus

    5. 0

      Questlib mysql_query function problem

  • Recently Browsing

    • No registered users viewing this page.

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.