Reference library

Lua functions

612 matching entries. Names and bindings reflect this WorldServer checkout. Historical parameter details are under review.

Lua script modules

Shared helpers defined by Lua scripts, available after explicitly loading their modules.

NPCModule → NPC initialization, orc clan appearances, and common orc equipment presets.

DialogModule → NPC conversations, response callbacks, voiceovers, emotes, and player requirements.

MovementModule → Waypoint routes, formation following, and location-based random movement.

NPC appearance examples: Bloodskull(NPC) and OrcArmorCommon(NPC).

FunctionHistorical signatureCurrent bindingExample review
SummonItemSummonItem(spawn, item_id, location, item_count)EQ2Emu_lua_SummonItemChecked call
SummonPetSummonPet(spawn, pet_id, max_level)EQ2Emu_lua_SummonPetChecked call
ToggleCharacterFlagToggleCharacterFlag(player, flag_id)EQ2Emu_lua_ToggleCharacterFlagUnder review
ToggleFollowToggleFollow(spawn)EQ2Emu_lua_ToggleFollowChecked call
ToggleTrackingToggleTracking(spawn)EQ2Emu_lua_ToggleTrackingChecked call
UnequipSlotUnequipSlot(…) via current bindingEQ2Emu_lua_UnequipSlotUnder review
UpdateQuestDescriptionUpdateQuestDescription(quest, description)EQ2Emu_lua_UpdateQuestDescriptionChecked call
UpdateQuestStepDescriptionUpdateQuestStepDescription(quest, step, description)EQ2Emu_lua_UpdateQuestStepDescriptionChecked call
UpdateQuestTaskGroupDescriptionUpdateQuestTaskGroupDescription(quest, step, description)EQ2Emu_lua_UpdateQuestTaskGroupDescriptionChecked call
UpdateQuestZoneUpdateQuestZone(quest, zone)EQ2Emu_lua_UpdateQuestZoneChecked call
UseWidgetUseWidget(widget)EQ2Emu_lua_UseWidgetChecked call
ZoneZone(zone, player, x, y, z, heading)EQ2Emu_lua_ZoneChecked call

Current source: WorldServer/Lua/LuaInterface.cpp.