Jump to content

Save player location


Mefarious

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
Share on other sites

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
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Similar Content

  • Activity

    1. 20

      Item ToolTip Width Fix

    2. 4

      Connection problem

    3. 1276

      [40250] Reference Serverfile + Client + Src [15 Available Languages]

    4. 1276

      [40250] Reference Serverfile + Client + Src [15 Available Languages]

    5. 1276

      [40250] Reference Serverfile + Client + Src [15 Available Languages]

    6. 1

      Sanii Switchbot problem

    7. 4

      Connection problem

    8. 1

      Maintenance System (For P2P)

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.