Inel de teleportare ca pe serverele oficiale Quest

Avatar utilizator
.Răzvan
Nivel 4

Nivel 4
Mesaje: 526
Membru din: 02 Feb 2014, 21:18
Regat: Shinsoo
Aprecieri: 0
Mulţumiri: 108  
Medalii

Quest – Inel de teleportare ca pe serverele oficiale

Cod: Selectaţi tot

quest ezio_move begin
	state start begin
		when 70058.use begin
		local moves = pc.getqf("ezio_move_ring")
		local movenum = 50-moves
		local showmove = movenum-1
		local empire = pc.get_empire()
		local town1 = " Map1 "

				if empire == 1 then
					town1 = "  Yongan "
				elseif empire == 2 then
					town1 = " Joan "
					elseif empire == 3 then
					town1 = " Pyungmoo "
				end
				local town2 = " Map2 "

				if empire == 1 then
					town2 = " Jayang "
				elseif empire == 2 then
					town2 = " Bokjung "
					elseif empire == 3 then
					town2 = " Bakra "
				end

		if movenum==0 then
		syschat(" Oops, ai consumat toata energia inelului! ")
		item.remove()
		pc.setqf("ezio_move_ring",0)
		elseif movenum<0 then
		syschat(" Oops, ai consumat toata energia inelului! ")
		item.remove()
		pc.setqf("ezio_move_ring",0)
		else
				local ezio_time = 10*60
				local ezio_timr1 = get_time()
				local ezio_timr2 = pc.getqf("ezio_ring_timr")
				local ezio_timr3 = ezio_timr1-ezio_timr2
				local ezio_sec = ezio_time-ezio_timr3
				local ezio_secs = " necunoscut "
				local ezio_min = " necunoscut "
				local ezio_secwrd = " secunde "
				if ezio_sec <= 60 then
				ezio_min = " 0 minute "
				ezio_secs = ezio_sec
				elseif ezio_sec >= 60 and ezio_sec <= 119 then
				ezio_min = " 1 minut "
				ezio_secs = ezio_sec-60
				elseif ezio_sec >= 120 and ezio_sec <= 179 then
				ezio_min = " 2 minute "
				ezio_secs = ezio_sec-120
				elseif ezio_sec >= 180 and ezio_sec <= 239 then
				ezio_min = " 3 minute "
				ezio_secs = ezio_sec-180
				elseif ezio_sec >= 240 and ezio_sec <= 299 then
				ezio_min = " 4 minute "
				ezio_secs = ezio_sec-240
				elseif ezio_sec >= 300 and ezio_sec <= 359 then
				ezio_min = " 5 minute "
				ezio_secs = ezio_sec-300
				elseif ezio_sec >= 360 and ezio_sec <= 419 then
				ezio_min = " 6 minute "
				ezio_secs = ezio_sec-360
				elseif ezio_sec >= 420 and ezio_sec <= 479 then
				ezio_min = " 7 minute "
				ezio_secs = ezio_sec-420
				elseif ezio_sec >= 480 and ezio_sec <= 539 then
				ezio_min = " 8 minute "
				ezio_secs = ezio_sec-480
				elseif ezio_sec >= 540 and ezio_sec <= 599 then
				ezio_min = " 9 minute "
				ezio_secs = ezio_sec-540
				elseif ezio_sec == 600 then
				ezio_min = " 10 minute "
				ezio_secs = 0
				end
				if ezio_secs >= 3 and ezio_secs <=10 then
				ezio_secwrd = " secunde "
				end
				
				local ezio_error_msg_move_ring = " Te poti teleporta din nou dupa "..ezio_min.." si "..ezio_secs.." "..ezio_secwrd..". "
				if ezio_sec < 60 then
				ezio_error_msg_move_ring = " Te poti teleporta din nou dupa  "..ezio_secs.." "..ezio_secwrd..". "
				elseif ezio_secs ==0 then
				ezio_error_msg_move_ring = " Te poti teleporta din nou dupa "..ezio_min..". "
				end
				if ezio_timr3 < ezio_time then
								syschat(ezio_error_msg_move_ring)

				else
	say_title(" Inel de Teleportare ")
	say_reward(" Teleportari ramase : "..movenum.." ")
	say(" Unde vrei sa te teleportez? ")
						local ss = select("  Map1 "..town1.."  "," Map2 "..town2.." "," Valea Seungryong "," Desertul Yongbi "," Muntele Sohan "," Doyyumhwaji "," Inchide ")
						local anmin = 10
						local corectmv = moves+1
						local msg1 = " Teleportari ramase : "..showmove.." "
						local msg2 = " Poti utiliza inelul dupa "..anmin.." min "
						if corectmv == 50  then
						msg1 = " Poti utiliza inelul de 50 de ori  "
						msg2 = " "
						end
		if ss == 1 then
		if correctmv == 50 then
		item.remove()
		end
		pc.setqf("ezio_ring_timr", get_time())
	pc.setqf("ezio_move_ring",moves+1)
		say_title(" Inel Teleport ")
		say(" Teleportare .. ")
		say_reward(msg1)
		say_reward(msg2)
		wait()
	if empire==1 then
		pc.warp(469300,964200)
		elseif empire==2 then
		pc.warp(55700,157900)
		elseif empire==3 then
		pc.warp(969600,278400)
		end
		elseif ss == 2 then
		if correctmv == 50 then
		item.remove()
		end
		pc.setqf("ezio_ring_timr", get_time())
		pc.setqf("ezio_move_ring",moves+1)
		say_title(" Inel Teleport ")
		say(" Teleportare .. ")
		say_reward(msg1)
		say_reward(msg2)
		wait()
	if empire==1 then
	
		pc.warp(360800,877600)
		elseif empire==2 then
		pc.warp(138500,234900)
		elseif empire==3 then
		pc.warp(873100,242600)
		end
		elseif ss == 3 then
		if correctmv == 50 then
		item.remove()
		end
	pc.setqf("ezio_ring_timr", get_time())
	pc.setqf("ezio_move_ring",moves+1)
		say_title(" Valea Seungryong ")
		say(" Ai ales o zona periculoasa! ")
		say_reward(msg1)
		say_reward(msg2)
		wait()
		pc.warp(336000,755600)
	elseif ss == 4 then
	if correctmv == 50 then
		item.remove()
		end
	pc.setqf("ezio_move_ring",moves+1)
	pc.setqf("ezio_ring_timr", get_time())
		say_title(" Desertul Yongbi ")
		say(" Ai ales o zona periculoasa! ")
		say_reward(msg1)
		say_reward(msg2)
		wait()
		pc.warp(296800,547400)
		elseif ss == 5 then
		if correctmv == 50 then
		item.remove()
		end
	pc.setqf("ezio_ring_timr", get_time())
	pc.setqf("ezio_move_ring",moves+1)
		say_title(" Muntele Sohan ")
		say(" Ai ales o zona periculoasa! ")
		say_reward(msg1)
		say_reward(msg2)
		wait()
		pc.warp(436400,215600)
	elseif ss == 6 then
	if correctmv == 50 then
		item.remove()
		end
	pc.setqf("ezio_ring_timr", get_time())
	pc.setqf("ezio_move_ring",moves+1)
		say_title(" Tara de Foc ")
		say(" Ai ales o zona periculoasa! ")
		say_reward(msg1)
		say_reward(msg2)
		wait()
		pc.warp(730700,689800)
--- END IF
		end
		--- END IF
			end
			---END IF
				end
				--- END WHEN
					end
					--- END STAT
						end
						--- END QUEST
							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 .
Avatar utilizator
Yoghy
Utilizator interzis !

Utilizator interzis !
Mesaje: 416
Membru din: 22 Ian 2014, 23:46
Server: New York
Regat: Jinno
Aprecieri: 0
Mulţumiri: 46  
Medalii

Mutat in Resurse Metin2 !
Imagine
Afișează semnătura
Avatar utilizator
AlexTzutzu
Nivel 10

Nivel 10
Mesaje: 2345
Membru din: 12 Feb 2014, 13:59
Server: Am RENUNTAT
Regat: Jinno
Aprecieri: 18  
Mulţumiri: 91  
 Contact:
Medalii

Mutat la Quest-urii.
Imagine


The quieter you become,the more you are able to hear.
Afișează semnătura
Răspunde
Răspunsuri
39
Vizualizări
19814
Răspunsuri
4
Vizualizări
483
Răspunsuri
6
Vizualizări
802
Răspunsuri
6
Vizualizări
740

Înapoi la “Quest-uri”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 5 vizitatori