Lua functions

SetLootDropType

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

Historical signature: SetLootDropType(spawn, loot_drop_type)

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

Function: SetLootDropType(spawn, loot_drop_type)

Description: When set to 0 (default) for a Spawn it will drop its loot as a group (unless its a body drop). If set to 1 then this NPC, despite being in a group will drop it's own loot chest.

Parameters:

  • spawn (Spawn) - Spawn object representing spawn.
  • loot_drop_type (int32) - Integer value loot_drop_type.

Returns: None.

Checked example

No checked example is published for this function yet. No active script call with the current C++ argument count was found.

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