Lua functions

MoveToLocation

Registered in this checkout as EQ2Emu_lua_MoveToLocation; implementation found at WorldServer/Lua/LuaFunctions.cpp:1496.

Historical signature: MoveToLocation(spawn, x, y, z, speed, lua_function, more_points, use_nav_path)

Parameter and behavior details in the historical explanation are under review against the current implementation.

Function: MoveToLocation(spawn, x, y, z, speed, lua_function, more_points, use_nav_path)

Description: Tells NPC to move to the location specified in the x,y,z.

Parameters:

  • spawn (Spawn) - Spawn object representing spawn.
  • x (int32) - Integer value x.
  • y (int32) - Integer value y.
  • z (int32) - Integer value z.
  • speed (int32) - Integer value speed.
  • lua_function (int32) - Integer value lua_function.
  • more_points (int32) - Integer value more_points.
  • use_nav_path (int32) - Integer value use_nav_path.

Returns: None.

Checked example

Active call in a local runtime Lua script. Argument count matches current fixed C++ readers. This is a contextual call pattern, not a tested standalone script.

MoveToLocation(NPC, 53.32, -38.49, 63.73, 5, "step1", false, true)

Evidence: server/SpawnScripts/Blackburrow/SpyDeMarco.lua:10; binding EQ2Emu_lua_MoveToLocation.

Current registration: WorldServer/Lua/LuaInterface.cpp. Historical explanation: EQ2Emu Lua documentation.