[Quest]Inel de Teleportare

Avatar utilizator
F. Gabriel
Administrator
Administrator
Mesaje: 497
Membru din: Lun Aug 01, 2022 10:23 am
Localitate: Tecuci
Status: Retras
Multumiri acordate: 17
Multumiri primite: 271
Contact:

[Quest]Inel de Teleportare

Mesaj de F. Gabriel »

Cod: Selectaţi tot

quest warp begin
	state start begin
		when 70007.use begin
			local regat = pc.get_empire()
			
			say_title("Happiness II:")
			say_size(350, 335)
			say_white("Bunã!")
			say_white("Unde doreºti sã fii teleportat?")
			say_white("")
			local mandi = select("Map1","Map2","Valea Seungryong","Deºertul Yongbi","Muntele Sohan","Doyyumhwan","Next")
			
			----------------START-MAP1------------------------------------
			if mandi == 1 then -- Map1
				say_title("Happiness II:")
				say_size(350, 250)
				say_white("Bunã!")
				say_white("Unde doreºti sã fii teleportat?")
				say_white("")
				local map1 = select("Regatul Roºu","Regatul Galben","Regatul Albastru","Închide")
				if map1 == 1 then
					pc.warp(473900, 954600)
					return
				end
				if map1 == 2 then
					pc.warp(63200, 166700)
					return
				end
				if map1 == 3 then
					pc.warp(959600, 269700)
					return
				end
			end
			
			----------------START-MAP2------------------------------------
			if mandi == 2 then -- Map2
				say_title("Happiness II:")
				say_size(350, 250)
				say_white("Bunã!")
				say_white("Unde doreºti sã fii teleportat?")
				say_white("")
				local map2 = select("Regatul Roºu","Regatul Galben","Regatul Albastru","Închide")
				if map2 == 1 then
					pc.warp(352300, 882700)
					return
				end
				if map2 == 2 then
					pc.warp(145700, 239800)
					return
				end
				if map2 == 3 then
					pc.warp(863800, 246000)
					return
				end
			end
		
			------------START-MAPS-RANDOM-IF-MANDI-1then---------------
			if mandi == 3 then -- Valea Seungryong
				pc.warp(332700, 745600)
				return
			end
			if mandi == 4 then -- Deºertul Yongbi
				if regat == 1 then
				pc.warp(217800, 627200)
				return
			end
				if regat == 2 then
				pc.warp(221900, 502700)
				return
			end
				if regat == 3 then
				pc.warp(344000, 502500)
				return
			end
		end
			if mandi == 5 then -- Muntele Sohan
				pc.warp(436200, 215300)
				return
			end
			if mandi == 6 then -- Doyyumhwan
				if regat == 1 then
					pc.warp(599400, 756300)
				return
			end
				if regat == 2 then
					pc.warp(597800, 622200)
				return
			end
				if regat == 3 then
					pc.warp(730700, 689800)
				return
			end
		end
			------------CLOSE-MAPS-RANDOM-IF-MANDI-1then---------------
			
			------------START-MAPS-RANDOM-IF-MANDI-2then---------------
			if mandi == 7 then -- Next Page
				say_title("Happiness II:")
				say_size(350, 335)
				say_white("Bunã!")
				say_white("Unde doreºti sã fii teleportat?")
				say_white("")
				local mandi2 = select("Turnul Demonilor","Kuahlo Dong","Lungsam","Pãdurea Roºie","V4","Temniþa Maimuþelor","Închide")
				if mandi2 == 1 then -- Turnul Demonilor 
					pc.warp(590400, 110500)
					return
				end
				if mandi2 == 2 then -- Kuahlo Dong (V2) 
					pc.warp(91900, 525400)
					return
				end
				if mandi2 == 3 then -- Lungsam
					pc.warp(289000, 5800)
					return
				end
				if mandi2 == 4 then -- Pãdurea Roºie
					say_title("Padurea Rosie:")
					say("")
					local padure = select("Inceput", "Sfarsit")
					if padure == 1 then
						pc.warp(1119900, 70800)
					end
					if padure == 2 then
						pc.warp(1119200, 7000)
					end
				end
				if mandi2 == 5 then -- V4
					pc.warp(153600,	1203200)
					return
				end
				if mandi2 == 6 then -- Temniþa Maimuþelor
					pc.warp(819200, 51200)
					return
				end
			end
		end
	end
end
Tutorial instalare quest:
1. Salvaţi conţinutul quest-ului într-un fişier text numit de exemplu nume_quest.quest .
2. Vă conectaţi la filezilla / winscp şi întrati în /usr/home/game/share/locale/germany/quest (depinde ce server aveţi).
3. Îl puneţi acolo (să fie .quest) şi da-ţi permisiuni 777.
4. Te loghezi în FreeBSD / putty şi scrii în felul următor: cd /usr/home/game/share/locale/germany/quest apoi ./qc nume_quest.quest
5. Intraţi pe server şi scrieţi /reload q .
6. Testaţi quest-ul.
Imagine

Hosting Metin2 by OVINETWORK.RO
Scrie răspuns