Teleport [NPC] Quest !

Închis
Avatar utilizator
z3fast
Nivel 1

Nivel 1
Mesaje: 118
Membru din: 10 Mai 2014, 23:11
Server: Metin2 Romania
Regat: Shinsoo
Aprecieri: 9  
Mulţumiri: 2  
 Contact:
Medalii

Buna am si eu nevoie de un quest pentru NPC Teleporter din map1 ma ajuta cineva?
Avatar utilizator
[RaffaeL]
Software Developer

Software Developer
Mesaje: 3223
Membru din: 19 Mar 2016, 12:58
Server: ...
Aprecieri: 15  
Mulţumiri: 2502  
  Rezolvări prob.: 2
Discord: Copiază ID
 Contact:
Medalii

z3fast scrie:Buna am si eu nevoie de un quest pentru NPC Teleporter din map1 ma ajuta cineva?

Poftim:
quest neutral_warp begin
	state start begin
		when 20009.chat.gameforge.neutral_warp._10_npcChat begin
			say_title(gameforge.neutral_warp._20_sayTitle)

			say(gameforge.neutral_warp._30_say)
			local s =  select(gameforge.locale.neutral_warp.go, gameforge.locale.neutral_warp.not_go)

			if 2 == s then
				return
			end

			local cost = 1000
			say_title(gameforge.neutral_warp._20_sayTitle)

			say(string.format(gameforge.neutral_warp._40_say, cost))
			if pc.gold < cost then
				say(gameforge.locale.oldwoman.not_enough_money)
				return
			end

			local m = pc.get_map_index()
			local e = pc.empire

			if m == 1 or m == 3 then
				e = 1
			elseif m == 21 or m == 23 then
				e = 2
			elseif m == 41 or m == 43 then
				e = 3
			end

			if m == 1 or m == 21 or m == 41 then
				if pc.count_item(30180) == 0 then
					s =  select(gameforge.locale.quiz_33_1_choice, gameforge.neutral_warp._50_select, gameforge.locale.cancel)
					if 3 == s then
						return
					end
				else
					s =  select(gameforge.locale.quiz_33_1_choice, gameforge.neutral_warp._50_select, gameforge.map_warp._97_select, gameforge.locale.cancel)
					if 4 == s then
						return
					end
				end

				local warp = {
					{
						{ 402100, 673900 },
						{ 270400, 739900 },
						{ 321300, 808000 },
					},
					{
						{ 434200, 290600 },
						{ 375200, 174900 },
						{ 491800, 173600 },
					},
					{
						{ 287800, 799700 },
						{ 275500, 800000 },
						{ 277000, 788000 },
					},
				}
				test_chat(warp[e][1]..warp[e][2])

				pc.warp(warp[e][1], warp[e][2])
				pc.changegold(-cost)

			elseif m == 3 or m == 23 or m == 43 then
				if pc.count_item(30180) == 0 then
					s =  select(gameforge.locale.quiz_33_2_choice, gameforge.neutral_warp._60_select, gameforge.locale.cancel)
					if 3 == s then
						return
					end
				else 
					s =  select(gameforge.locale.quiz_33_2_choice, gameforge.neutral_warp._60_select, gameforge.map_warp._97_select, gameforge.locale.cancel)
					if 4 == s then
						return
					end
				end
					
				local warp = {
					{
						{ 217800, 627200 },
						{ 221900, 502700 },
						{ 344000, 502500 },
					},
					{
						{ 599400, 756300 },
						{ 597800, 622200 },
						{ 730700, 689800 },
					},
					{
						{ 287800, 799700 },
						{ 275500, 800000 },
						{ 277000, 788000 },
					},
				}
				test_chat(warp[e][1]..warp[e][2])

				pc.warp(warp[e][1], warp[e][2])
				pc.changegold(-cost)
			end
		end 
	end
end
Imagine
Imagine
https://www.youtube.com/watch?v=GhYkCIETEto
Do everything, if you know what you're doing, else... Imagine
Ma gasesti si aici: Discord https://discord.gg/5J5GnyZVSR
Afișează semnătura
Avatar utilizator
[Brahma]
Veteran

Veteran
Mesaje: 1526
Membru din: 16 Mai 2017, 22:18
Aprecieri: 0
Mulţumiri: 2309  
Medalii

Dacă în 3 zile autorul subiectului nu va da niciun semn de viata în topic, subiectul va fi mutat în Arhivă.
Imagine
Afișează semnătura
Închis
Răspunsuri
6
Vizualizări
121
Răspunsuri
5
Vizualizări
455
Răspunsuri
11
Vizualizări
899

Înapoi la “Arhivă”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Baidu [Spider], Google [Bot] și 14 vizitatori