Lua functions

Harvest

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

Historical signature: Harvest(player, node)

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

Function: Harvest(player, node)

Description: Forces a harvest action on the specified harvestable object or resource node. When called on a harvestable spawn (like a resource node), it attempts to collect from it as if a player harvested it.

Parameters:

  • player (Spawn) - Spawn object representing player.
  • node (Spawn) - Spawn object representing node.

Returns: None (the harvesting results — items or updates — are handled by the system).

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.

Harvest(Caster, Target)

Evidence: server/Spells/Commoner/harvest.lua:19; binding EQ2Emu_lua_Harvest.

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