Reference library

Lua functions

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

FunctionHistorical signatureCurrent bindingExample review
GiveQuestItemGiveQuestItem(…) via current bindingEQ2Emu_lua_GiveQuestItemChecked call
GiveQuestRewardGiveQuestReward(quest, spawn)EQ2Emu_lua_GiveQuestRewardChecked call
HandInCollectionsHandInCollections(player)EQ2Emu_lua_HandInCollectionsChecked call
HarvestHarvest(player, node)EQ2Emu_lua_HarvestChecked call
HasCoinHasCoin(Spawn, Value)EQ2Emu_lua_HasCoinChecked call
HasCollectionsToHandInHasCollectionsToHandIn(player)EQ2Emu_lua_HasCollectionsToHandInChecked call
HasCompletedQuestHasCompletedQuest(player, quest_id)EQ2Emu_lua_HasCompletedQuestChecked call
HasControlEffectHasControlEffect(spawn, type)EQ2Emu_lua_HasControlEffectChecked call
HasFreeSlotHasFreeSlot(player)EQ2Emu_lua_HasFreeSlotUnder review
HasGroupHasGroup(spawn)EQ2Emu_lua_HasGroupUnder review
HasItemHasItem(Player, ItemID, IncludeBank)EQ2Emu_lua_HasItemChecked call
HasItemEquippedHasItemEquipped(player, item_id)EQ2Emu_lua_HasItemEquippedChecked call
HasLanguageHasLanguage(player, language_id)EQ2Emu_lua_HasLanguageChecked call
HasLootItemHasLootItem(spawn, item_id)EQ2Emu_lua_HasLootItemChecked call
HasMovedHasMoved(spawn)EQ2Emu_lua_HasMovedChecked call
HasPendingLootHasPendingLoot(entity, player)EQ2Emu_lua_HasPendingLootChecked call
HasPendingLootItemHasPendingLootItem(entity, player, item_id)EQ2Emu_lua_HasPendingLootItemUnder review
HasPendingQuestHasPendingQuest(player, quest_id)EQ2Emu_lua_HasPendingQuestChecked call
HasQuestHasQuest(player, quest_id)EQ2Emu_lua_HasQuestChecked call
HasQuestRewardItemHasQuestRewardItem(quest, item_id)EQ2Emu_lua_HasQuestRewardItemUnder review
HasRecipeBookHasRecipeBook(player, recipe_id)EQ2Emu_lua_HasRecipeBookChecked call
HasRecoveredHasRecovered(spawn)EQ2Emu_lua_HasRecoveredUnder review
HasSkillHasSkill(player, skill_id)EQ2Emu_lua_HasSkillChecked call
HasSocialAggroHasSocialAggro(…) via current bindingEQ2Emu_lua_HasSocialAggroUnder review
HasSpellHasSpell(player, spellid, tier)EQ2Emu_lua_HasSpellUnder review
HasSpellEffectHasSpellEffect(spawn, spellID, tier)EQ2Emu_lua_HasSpellEffectChecked call
HasSpellImmunityHasSpellImmunity(spawn, type)EQ2Emu_lua_HasSpellImmunityChecked call
IncreaseSkillCapsByTypeIncreaseSkillCapsByType(player_spawn, skill_type, amount, more_to_increase)EQ2Emu_lua_IncreaseSkillCapsByTypeUnder review
InFrontInFront(spawn, target)EQ2Emu_lua_InFrontChecked call
InLavaInLava(Spawn)EQ2Emu_lua_InLavaUnder review
InSameRaidInSameRaid(…) via current bindingEQ2Emu_lua_InSameRaidUnder review
InstructionWindowInstructionWindow(player, duration, text, voice, voice_key1, voice_key2, signal, goal1, task1, goal2, task2, goal3, task3, goal4, task4)EQ2Emu_lua_InstructionWindowChecked call
InstructionWindowCloseInstructionWindowClose(player)EQ2Emu_lua_InstructionWindowCloseChecked call
InstructionWindowGoalInstructionWindowGoal(player, goal_num)EQ2Emu_lua_InstructionWindowGoalChecked call
InterruptInterrupt(…) via current bindingEQ2Emu_lua_InterruptChecked call
InWaterInWater(Spawn)EQ2Emu_lua_InWaterUnder review
IsAliveIsAlive(spawn)EQ2Emu_lua_IsAliveChecked call
IsBehindIsBehind(spawn, target)EQ2Emu_lua_IsBehindChecked call
IsBindAllowedIsBindAllowed(spawn)EQ2Emu_lua_IsBindAllowedUnder review
IsCastingIsCasting(spawn)EQ2Emu_lua_IsCastingUnder review
IsCastOnAggroCompleteIsCastOnAggroComplete(spawn)EQ2Emu_lua_IsCastOnAggroCompleteUnder review
IsEntityIsEntity(spawn)EQ2Emu_lua_IsEntityChecked call
IsEpicIsEpic(Spawn)EQ2Emu_lua_IsEpicChecked call
IsFlankingIsFlanking(spawn, target)EQ2Emu_lua_IsFlankingChecked call
IsFollowingIsFollowing(spawn)EQ2Emu_lua_IsFollowingChecked call
IsGateAllowedIsGateAllowed(spawn)EQ2Emu_lua_IsGateAllowedUnder review
IsGroundSpawnIsGroundSpawn(spawn)EQ2Emu_lua_IsGroundSpawnChecked call
IsHeroicIsHeroic(spawn)EQ2Emu_lua_IsHeroicChecked call
IsInCombatIsInCombat(spawn)EQ2Emu_lua_IsInCombatChecked call
IsInRaidIsInRaid(…) via current bindingEQ2Emu_lua_IsInRaidUnder review
IsInvisIsInvis(spawn)EQ2Emu_lua_IsInvisChecked call
IsInvulnerableIsInvulnerable(spawn)EQ2Emu_lua_IsInvulnerableChecked call
IsMezzedIsMezzed(spawn)EQ2Emu_lua_IsMezzedUnder review
IsMezzedOrStunnedIsMezzedOrStunned(spawn)EQ2Emu_lua_IsMezzedOrStunnedUnder review
IsNightIsNight(Zone)EQ2Emu_lua_IsNightChecked call
IsOnAutoMountIsOnAutoMount(player)EQ2Emu_lua_IsOnAutoMountChecked call
IsOpenIsOpen(…) via current bindingEQ2Emu_lua_IsOpenChecked call
IsPetIsPet(…) via current bindingEQ2Emu_lua_IsPetUnder review
IsPlayerIsPlayer(Player)EQ2Emu_lua_IsPlayerChecked call
IsRunningIsRunning(spawn)EQ2Emu_lua_IsRunningUnder review
IsSpawnGroupAliveIsSpawnGroupAlive(zone, group_id)EQ2Emu_lua_IsSpawnGroupAliveChecked call
IsStealthedIsStealthed(spawn)EQ2Emu_lua_IsStealthedChecked call
IsStunnedIsStunned(spawn)EQ2Emu_lua_IsStunnedUnder review
IsTransportSpawnIsTransportSpawn(spawn)EQ2Emu_lua_IsTransportSpawnUnder review
IsZoneLoadingIsZoneLoading(zone)EQ2Emu_lua_IsZoneLoadingUnder review
IsZoneTypeIsZoneType(…) via current bindingEQ2Emu_lua_IsZoneTypeChecked call
KillSpawnKillSpawn(dead, killer)EQ2Emu_lua_KillSpawnChecked call
KillSpawnByDistanceKillSpawnByDistance(spawn, max_distance, include_players, send_packet)EQ2Emu_lua_KillSpawnByDistanceChecked call
KnockbackKnockback(target_spawn, spawn, duration, vertical, horizontal, use_heading)EQ2Emu_lua_KnockbackChecked call
LastSpellAttackHitLastSpellAttackHit()EQ2Emu_lua_LastSpellAttackHitChecked call
LuaDebugLogLuaDebugLog(…) via current bindingEQ2Emu_lua_LuaDebugLogUnder review
MakeRandomFloatMakeRandomFloat(min, max)EQ2Emu_lua_MakeRandomFloatChecked call
MakeRandomIntMakeRandomInt(…) via current bindingEQ2Emu_lua_MakeRandomIntChecked call
ModifyHPModifyHP(spawn, value)EQ2Emu_lua_ModifyHPChecked call
ModifyMaxHPModifyMaxHP(spawn, value)EQ2Emu_lua_ModifyMaxHPChecked call
ModifyMaxPowerModifyMaxPower(spawn, value)EQ2Emu_lua_ModifyMaxPowerChecked call
ModifyPowerModifyPower(spawn, value)EQ2Emu_lua_ModifyPowerChecked call
MovementLoopAddMovementLoopAdd(spawn, x, y, z, speed, delay, function, heading, exclude_heading, use_nav_path)EQ2Emu_lua_MovementLoopAddChecked call
MovementLoopAddLocationMovementLoopAddLocation(…) via current bindingEQ2Emu_lua_MovementLoopAddUnder review
MoveToLocationMoveToLocation(spawn, x, y, z, speed, lua_function, more_points, use_nav_path)EQ2Emu_lua_MoveToLocationChecked call
OfferQuestOfferQuest(npc, player, quest_id, forced)EQ2Emu_lua_OfferQuestChecked call
OpenBotRecruitmentOpenBotRecruitment(…) via current bindingEQ2Emu_lua_OpenBotRecruitmentUnder review
OpenBotRosterOpenBotRoster(…) via current bindingEQ2Emu_lua_OpenBotRosterUnder review
OpenDoorOpenDoor(…) via current bindingEQ2Emu_lua_OpenDoorChecked call
PauseMovementPauseMovement(…) via current bindingEQ2Emu_lua_PauseMovementUnder review
PerformCameraShakePerformCameraShake(…) via current bindingEQ2Emu_lua_PerformCameraShakeChecked call
PlayAnimationPlayAnimation(spawn, anim, target, hide_type)EQ2Emu_lua_PlayAnimationChecked call
PlayAnimationStringPlayAnimationString(spawn, name, opt_target, set_no_target, use_all_spelltargets, ignore_self)EQ2Emu_lua_PlayAnimationStringChecked call
PlayFlavorPlayFlavor(spawn, mp3_string, text_string, emote_string, key1, key2, player, language)EQ2Emu_lua_PlayFlavorChecked call
PlayFlavorIDPlayFlavorID(spawn, type, id, index, player, language)EQ2Emu_lua_PlayFlavorIDUnder review
PlaySoundPlaySound(spawn, sound_string, x, y, z, player)EQ2Emu_lua_PlaySoundChecked call
PlayVoicePlayVoice(spawn, mp3_string, key1, key2, player)EQ2Emu_lua_PlayVoiceChecked call
ProcDamageProcDamage(caster, target, name, dmg_type, low_damage, high_damage, success_msg, effect_msg)EQ2Emu_lua_ProcDamageChecked call
ProcessMeleeProcessMelee(spawn, target, distance)EQ2Emu_lua_ProcessMeleeUnder review
ProcessSpellProcessSpell(spawn, target, distance)EQ2Emu_lua_ProcessSpellUnder review
ProcHateProcHate(…) via current bindingEQ2Emu_lua_ProcHateChecked call
ProvidesQuestProvidesQuest(npc, quest_id)EQ2Emu_lua_ProvidesQuestChecked call
QuestIsCompleteQuestIsComplete(player, quest_id)EQ2Emu_lua_QuestIsCompleteChecked call
QuestReturnNPCQuestReturnNPC(quest, spawn_id)EQ2Emu_lua_QuestReturnNPCChecked call
QuestStepIsCompleteQuestStepIsComplete(player, quest_id, step_id)EQ2Emu_lua_QuestStepIsCompleteChecked call

Historical source: ZekLabs AllLUAFunctions. Current source: WorldServer/Lua/LuaInterface.cpp.