Jump to content

Recommended Posts

Hello, anyone know how to save player location?
I want to make a quest
that saves player current location, then teleport to somewhere else
if player fails something, it will teleport him back to saved location


i tried something like
 

local index = pc.get_map_index()

            local x = pc.get_local_x()

            local y = pc.get_local_y()
and multiple X/Y *100 but when i use 
pc.warp_local(index, x, y)
nothing happens

Link to comment
https://metin2.dev/topic/29975-save-player-location/
Share on other sites

  • Active Member

I don't understand your question but maybe you want character location

 


quest mapshowcoordinat begin
	state start begin

		when 40004.use with pc.is_gm() begin
			chat ("--------------------------------------------------------------")
			chat("Map x : "..pc.get_x().. "")
			chat("Map y : " ..pc.get_y().. "")
			chat("Map index : " ..pc.getcurrentmapindex().. "")

		end

	end
end

 

Link to comment
https://metin2.dev/topic/29975-save-player-location/#findComment-153341
Share on other sites

I want to save players location where they start quest

then teleport them to other map

when they finish quest they teleport back to saved location

problem is, i dont know how to save current player location
something like
local x = pc.get_x() doesnt work

Link to comment
https://metin2.dev/topic/29975-save-player-location/#findComment-153343
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

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.