Jump to content

Teleport problem


Go to solution Solved by Remix,

Recommended Posts

Hello. I try to create a teleport for the beta map. This is the quest:

quest map_beta begin
	state start begin	
		when 20083.chat."Piatra Dragon Intunecat" begin			
			say_title("Teleporter:")
			say("Recent, a fost descoperita o insula misterioasa.")
			say("A fost denumita Piatra Dragon Intunecata.")
			say("Aceia ce doresc sa supravetuiasca acolo")
			say("trebuie sa aiba putina experienta.")		
			say("Din acest motiv, pot transporta numai  pe cei")
			say("care au trecut de nivelul 90 si o Autorizatie.")
			say("Ce zici, esti pregatit?")	
			
			if pc.level < 90 and pc.count_item(30129) <= 0 then
				say_reward("Pentru a putea intra ai nevoie")
				say_reward("de o Insarcinare de la calaret ºi minim nivelul 90.")
				say("")
				return
			end			
			if pc.count_item(30129) <= 0 then
				say_reward("Pentru a putea intra ai nevoie")
				say_reward("de o Insarcinare de la calaret.")
				say("")
				return
			end			
			if pc.level < 90 then
				say_reward("Pentru a putea intra ai nevoie")
				say_reward("de minim nivelul 90.")
				say("")
				return
			end
			
			if pc.count_item(30129) >= 1 then
			
			local s=select("Sunt pregatit", "M-am rãzgândit")
			
				if s==1 then
					pc.remove_item(30129,1)
					pc.warp(11070, 17915)						
				end
			end
		end
				
	end
end

If i write ingame /warp 11070 17915, it`s teleport me to the right place in the cape (beta map coordonates 830 1275). But, with the npc that i inserted the quest, it`s teleport me to another map -_-".  This are the coordonates that are in the settings of the map (it`s teleport you to the corner of the map) 1024000 1664000.

What shoud i change to teleport me to the right place?

P.S - This is the map that i wanna be teleported to.

eaff3e2d8570feca8596c63275a049a0.png

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

Replace this 216 is mapindex i think 216 map index is metin2_map_capedragonhead ._. 

pc.warp(11070, 17915,216)

Kind Regards

HaveBeen

On my server metin2_map_capedragonhead is 209 so i put: pc.warp(11070, 17915,209) but still nothig. stil the npc is teleporting me to the wrong map.

This is the map that i get teleported in: 6075a7f4ca6721d6387da0fe3970d2eb.png

P.S - The quest for npc is not .quest is .lua. I don`t this that the error is becouse of the extension:-?

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...

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.