Difference between revisions of "LUA:AllFunctions"

(EQ2Emulator: All LUA Functions)
Line 11: Line 11:
 
|-
 
|-
 
|[[LUA:AddImmunitySpell|AddImmunitySpell()]]
 
|[[LUA:AddImmunitySpell|AddImmunitySpell()]]
 +
|[[LUA:AddItem|AddItem()]]
 
|[[LUA:AddLanguage|AddLanguage()]]
 
|[[LUA:AddLanguage|AddLanguage()]]
 
|[[LUA:AddLootCoin|AddLootCoin()]]
 
|[[LUA:AddLootCoin|AddLootCoin()]]
 +
|-
 
|[[LUA:AddLootItem|AddLootItem()]]
 
|[[LUA:AddLootItem|AddLootItem()]]
|-
 
 
|[[LUA:AddMultiFloorLift|AddMultiFloorLift()]]
 
|[[LUA:AddMultiFloorLift|AddMultiFloorLift()]]
 
|[[LUA:AddOptionWindowOption|AddOptionWindowOption()]]
 
|[[LUA:AddOptionWindowOption|AddOptionWindowOption()]]
 
|[[LUA:AddPrimaryEntityCommand|AddPrimaryEntityCommand()]]
 
|[[LUA:AddPrimaryEntityCommand|AddPrimaryEntityCommand()]]
 +
|-
 
|[[LUA:AddProc|AddProc()]]
 
|[[LUA:AddProc|AddProc()]]
|-
 
 
|[[LUA:AddQuestPrereqClass|AddQuestPrereqClass()]]
 
|[[LUA:AddQuestPrereqClass|AddQuestPrereqClass()]]
 
|[[LUA:AddQuestPrereqFaction|AddQuestPrereqFaction()]]
 
|[[LUA:AddQuestPrereqFaction|AddQuestPrereqFaction()]]
 
|[[LUA:AddQuestPrereqItem|AddQuestPrereqItem()]]
 
|[[LUA:AddQuestPrereqItem|AddQuestPrereqItem()]]
 +
|-
 
|[[LUA:AddQuestPrereqModelType|AddQuestPrereqModelType()]]
 
|[[LUA:AddQuestPrereqModelType|AddQuestPrereqModelType()]]
|-
 
 
|[[LUA:AddQuestPrereqQuest|AddQuestPrereqQuest()]]
 
|[[LUA:AddQuestPrereqQuest|AddQuestPrereqQuest()]]
 
|[[LUA:AddQuestPrereqRace|AddQuestPrereqRace()]]
 
|[[LUA:AddQuestPrereqRace|AddQuestPrereqRace()]]
 
|[[LUA:AddQuestPrereqTradeskillClass|AddQuestPrereqTradeskillClass()]]
 
|[[LUA:AddQuestPrereqTradeskillClass|AddQuestPrereqTradeskillClass()]]
 +
|-
 
|[[LUA:AddQuestPrereqTradeskillLevel|AddQuestPrereqTradeskillLevel()]]
 
|[[LUA:AddQuestPrereqTradeskillLevel|AddQuestPrereqTradeskillLevel()]]
|-
 
 
|[[LUA:AddQuestRewardCoin|AddQuestRewardCoin()]]
 
|[[LUA:AddQuestRewardCoin|AddQuestRewardCoin()]]
 
|[[LUA:AddQuestRewardFaction|AddQuestRewardFaction()]]
 
|[[LUA:AddQuestRewardFaction|AddQuestRewardFaction()]]
 
|[[LUA:AddQuestRewardItem|AddQuestRewardItem()]]
 
|[[LUA:AddQuestRewardItem|AddQuestRewardItem()]]
 +
|-
 
|[[LUA:AddQuestSelectableRewardItem|AddQuestSelectableRewardItem()]]
 
|[[LUA:AddQuestSelectableRewardItem|AddQuestSelectableRewardItem()]]
|-
 
 
|[[LUA:AddQuestStep|AddQuestStep()]]
 
|[[LUA:AddQuestStep|AddQuestStep()]]
 
|[[LUA:AddQuestStepChat|AddQuestStepChat()]]
 
|[[LUA:AddQuestStepChat|AddQuestStepChat()]]
 
|[[LUA:AddQuestStepCompleteAction|AddQuestStepCompleteAction()]]
 
|[[LUA:AddQuestStepCompleteAction|AddQuestStepCompleteAction()]]
 +
|-
 
|[[LUA:AddQuestStepCraft|AddQuestStepCraft()]]
 
|[[LUA:AddQuestStepCraft|AddQuestStepCraft()]]
|-
 
 
|[[LUA:AddQuestStepFailureAction|AddQuestStepFailureAction()]]
 
|[[LUA:AddQuestStepFailureAction|AddQuestStepFailureAction()]]
 
|[[LUA:AddQuestStepHarvest|AddQuestStepHarvest()]]
 
|[[LUA:AddQuestStepHarvest|AddQuestStepHarvest()]]
 
|[[LUA:AddQuestStepKill|AddQuestStepKill()]]
 
|[[LUA:AddQuestStepKill|AddQuestStepKill()]]
 +
|-
 
|[[LUA:AddQuestStepLocation|AddQuestStepLocation()]]
 
|[[LUA:AddQuestStepLocation|AddQuestStepLocation()]]
|-
 
 
|[[LUA:AddQuestStepObtainItem|AddQuestStepObtainItem()]]
 
|[[LUA:AddQuestStepObtainItem|AddQuestStepObtainItem()]]
 
|[[LUA:AddQuestStepProgressAction|AddQuestStepProgressAction()]]
 
|[[LUA:AddQuestStepProgressAction|AddQuestStepProgressAction()]]
 
|[[LUA:AddQuestStepSpell|AddQuestStepSpell()]]
 
|[[LUA:AddQuestStepSpell|AddQuestStepSpell()]]
 +
|-
 
|[[LUA:AddSkillBonus|AddSkillBonus()]]
 
|[[LUA:AddSkillBonus|AddSkillBonus()]]
|-
 
 
|[[LUA:AddSpawnAccess|AddSpawnAccess()]]
 
|[[LUA:AddSpawnAccess|AddSpawnAccess()]]
 
|[[LUA:AddSpawnIDAccess|AddSpawnIDAccess()]]
 
|[[LUA:AddSpawnIDAccess|AddSpawnIDAccess()]]
 
|[[LUA:AddSpawnSpellBonus|AddSpawnSpellBonus()]]
 
|[[LUA:AddSpawnSpellBonus|AddSpawnSpellBonus()]]
 +
|-
 
|[[LUA:AddSpellBonus|AddSpellBonus()]]
 
|[[LUA:AddSpellBonus|AddSpellBonus()]]
|-
 
 
|[[LUA:AddSpellBookEntry|AddSpellBookEntry()]]
 
|[[LUA:AddSpellBookEntry|AddSpellBookEntry()]]
 
|[[LUA:AddSpellTimer|AddSpellTimer()]]
 
|[[LUA:AddSpellTimer|AddSpellTimer()]]
 
|[[LUA:AddStepProgress|AddStepProgress()]]
 
|[[LUA:AddStepProgress|AddStepProgress()]]
 +
|-
 
|[[LUA:AddThreatTransfer|AddThreatTransfer()]]
 
|[[LUA:AddThreatTransfer|AddThreatTransfer()]]
|-
 
 
|[[LUA:AddTimer|AddTimer()]]
 
|[[LUA:AddTimer|AddTimer()]]
 
|[[LUA:AddToWard|AddToWard()]]
 
|[[LUA:AddToWard|AddToWard()]]
 
|[[LUA:AddTransportSpawn|AddTransportSpawn()]]
 
|[[LUA:AddTransportSpawn|AddTransportSpawn()]]
 +
|-
 
|[[LUA:AddWard|AddWard()]]
 
|[[LUA:AddWard|AddWard()]]
|-
 
 
|[[LUA:ApplySpellVisual|ApplySpellVisual()]]
 
|[[LUA:ApplySpellVisual|ApplySpellVisual()]]
 
|[[LUA:Attack|Attack()]]
 
|[[LUA:Attack|Attack()]]
Line 85: Line 86:
 
|-
 
|-
 
|[[LUA:CastSpell|CastSpell()]]
 
|[[LUA:CastSpell|CastSpell()]]
 +
|[[LUA:CastCustomSpell|CastCustomSpell()]]
 +
|[[LUA:CanSeeInvis|CanSeeInvis()]]
 
|[[LUA:Charm|Charm()]]
 
|[[LUA:Charm|Charm()]]
 +
|-
 +
|[[LUA:CheckLOS|CheckLOS()]]
 +
|[[LUA:CheckLOSByCoordinates|CheckLOSByCoordinates()]]
 
|[[LUA:CheckRaceType|CheckRaceType()]]
 
|[[LUA:CheckRaceType|CheckRaceType()]]
 
|[[LUA:ClearEncounter|ClearEncounter()]]
 
|[[LUA:ClearEncounter|ClearEncounter()]]
Line 91: Line 97:
 
|[[LUA:ClearHate|ClearHate()]]
 
|[[LUA:ClearHate|ClearHate()]]
 
|[[LUA:CloseConversation|CloseConversation()]]
 
|[[LUA:CloseConversation|CloseConversation()]]
 +
|[[LUA:CloseDoor|CloseDoor()]]
 
|[[LUA:CreateOptionWindow|CreateOptionWindow()]]
 
|[[LUA:CreateOptionWindow|CreateOptionWindow()]]
 +
|-
 
|[[LUA:CloseItemConversation|CloseItemConversation()]]
 
|[[LUA:CloseItemConversation|CloseItemConversation()]]
|-
 
 
|[[LUA:CompareSpawns|CompareSpawns()]]
 
|[[LUA:CompareSpawns|CompareSpawns()]]
 
|[[LUA:CopySpawnAppearance|CopySpawnAppearance()]]
 
|[[LUA:CopySpawnAppearance|CopySpawnAppearance()]]
 
|[[LUA:CreateConversation|CreateConversation()]]
 
|[[LUA:CreateConversation|CreateConversation()]]
 +
|-
 
|[[LUA:CureByControlEffect|CureByControlEffect()]]
 
|[[LUA:CureByControlEffect|CureByControlEffect()]]
|-
 
 
|[[LUA:CureByType|CureByType()]]
 
|[[LUA:CureByType|CureByType()]]
 
|}
 
|}
Line 150: Line 157:
 
|[[LUA:GetEquippedItemBySlot|GetEquippedItemBySlot()]]
 
|[[LUA:GetEquippedItemBySlot|GetEquippedItemBySlot()]]
 
|[[LUA:GetFactionAmount|GetFactionAmount()]]
 
|[[LUA:GetFactionAmount|GetFactionAmount()]]
 +
|[[LUA:GetFactionID|GetFactionID()]]
 
|[[LUA:GetFollowTarget|GetFollowTarget()]]
 
|[[LUA:GetFollowTarget|GetFollowTarget()]]
 +
|-
 
|[[LUA:GetGender|GetGender()]]
 
|[[LUA:GetGender|GetGender()]]
|-
 
 
|[[LUA:GetGroup|GetGroup()]]
 
|[[LUA:GetGroup|GetGroup()]]
 
|[[LUA:GetHateList|GetHateList()]]
 
|[[LUA:GetHateList|GetHateList()]]
 
|[[LUA:GetHeading|GetHeading()]]
 
|[[LUA:GetHeading|GetHeading()]]
 +
|-
 
|[[LUA:GetHP|GetHP()]]
 
|[[LUA:GetHP|GetHP()]]
|-
 
 
|[[LUA:GetInt|GetInt()]]
 
|[[LUA:GetInt|GetInt()]]
 
|[[LUA:GetIntBase|GetIntBase()]]
 
|[[LUA:GetIntBase|GetIntBase()]]
 
|[[LUA:GetItemByID|GetItemByID()]]
 
|[[LUA:GetItemByID|GetItemByID()]]
 +
|-
 
|[[LUA:GetItemCount|GetItemCount()]]
 
|[[LUA:GetItemCount|GetItemCount()]]
|-
 
 
|[[LUA:GetItemID|GetItemID()]]
 
|[[LUA:GetItemID|GetItemID()]]
 
|[[LUA:GetItemSkillReq|GetItemSkillReq()]]
 
|[[LUA:GetItemSkillReq|GetItemSkillReq()]]
 
|[[LUA:GetItemType|GetItemType()]]
 
|[[LUA:GetItemType|GetItemType()]]
 +
|-
 
|[[LUA:GetLevel|GetLevel()]]
 
|[[LUA:GetLevel|GetLevel()]]
|-
 
 
|[[LUA:GetLootCoin|GetLootCoin()]]
 
|[[LUA:GetLootCoin|GetLootCoin()]]
 
|[[LUA:GetMaxHP|GetMaxHP()]]
 
|[[LUA:GetMaxHP|GetMaxHP()]]
 
|[[LUA:GetMaxHPBase|GetMaxHPBase()]]
 
|[[LUA:GetMaxHPBase|GetMaxHPBase()]]
 +
|-
 
|[[LUA:GetMaxPower|GetMaxPower()]]
 
|[[LUA:GetMaxPower|GetMaxPower()]]
|-
 
 
|[[LUA:GetMaxPowerBase|GetMaxPowerBase()]]
 
|[[LUA:GetMaxPowerBase|GetMaxPowerBase()]]
 
|[[LUA:GetModelType|GetModelType()]]
 
|[[LUA:GetModelType|GetModelType()]]
 
|[[LUA:GetMostHated|GetMostHated()]]
 
|[[LUA:GetMostHated|GetMostHated()]]
 +
|-
 
|[[LUA:GetMount|GetMount()]]
 
|[[LUA:GetMount|GetMount()]]
|-
 
 
|[[LUA:GetName|GetName()]]
 
|[[LUA:GetName|GetName()]]
 
|[[LUA:GetOrigX|GetOrigX()]]
 
|[[LUA:GetOrigX|GetOrigX()]]
 
|[[LUA:GetOrigY|GetOrigY()]]
 
|[[LUA:GetOrigY|GetOrigY()]]
 +
|-
 
|[[LUA:GetOrigZ|GetOrigZ()]]
 
|[[LUA:GetOrigZ|GetOrigZ()]]
|-
 
 
|[[LUA:GetOwner|GetOwner()]]
 
|[[LUA:GetOwner|GetOwner()]]
 
|[[LUA:GetPet|GetPet()]]
 
|[[LUA:GetPet|GetPet()]]
 
|[[LUA:GetPlayerHistory|GetPlayerHistory()]]
 
|[[LUA:GetPlayerHistory|GetPlayerHistory()]]
 +
|-
 
|[[LUA:GetPlayersInZone|GetPlayersInZone()]]
 
|[[LUA:GetPlayersInZone|GetPlayersInZone()]]
|-
 
 
|[[LUA:GetPower|GetPower()]]
 
|[[LUA:GetPower|GetPower()]]
 
|[[LUA:GetQuest|GetQuest()]]
 
|[[LUA:GetQuest|GetQuest()]]
 
|[[LUA:GetQuestCompleteCount|GetQuestCompleteCount()]]
 
|[[LUA:GetQuestCompleteCount|GetQuestCompleteCount()]]
 +
|-
 
|[[LUA:GetQuestFlags|GetQuestFlags()]]
 
|[[LUA:GetQuestFlags|GetQuestFlags()]]
|-
 
 
|[[LUA:GetQuestStep|GetQuestStep()]]
 
|[[LUA:GetQuestStep|GetQuestStep()]]
 
|[[LUA:GetQuestStepProgress|GetQuestStepProgress()]]
 
|[[LUA:GetQuestStepProgress|GetQuestStepProgress()]]
 
|[[LUA:GetRace|GetRace()]]
 
|[[LUA:GetRace|GetRace()]]
 +
|-
 
|[[LUA:GetRaceBaseType|GetRaceBaseType()]]
 
|[[LUA:GetRaceBaseType|GetRaceBaseType()]]
|-
 
 
|[[LUA:GetRaceType|GetRaceType()]]
 
|[[LUA:GetRaceType|GetRaceType()]]
 
|[[LUA:GetRaceName|GetRaceName()]]
 
|[[LUA:GetRaceName|GetRaceName()]]
 
|[[LUA:GetRunbackDistance|GetRunbackDistance()]]
 
|[[LUA:GetRunbackDistance|GetRunbackDistance()]]
 +
|-
 
|[[LUA:GetServerVariable|GetServerVariable()]]
 
|[[LUA:GetServerVariable|GetServerVariable()]]
|-
 
 
|[[LUA:GetSkill|GetSkill()]]
 
|[[LUA:GetSkill|GetSkill()]]
 
|[[LUA:GetSkillMaxValue|GetSkillMaxValue()]]
 
|[[LUA:GetSkillMaxValue|GetSkillMaxValue()]]
 
|[[LUA:GetSkillName|GetSkillName()]]
 
|[[LUA:GetSkillName|GetSkillName()]]
 +
|-
 
|[[LUA:GetSkillValue|GetSkillValue()]]
 
|[[LUA:GetSkillValue|GetSkillValue()]]
|-
 
 
|[[LUA:GetSpawn|GetSpawn()]]
 
|[[LUA:GetSpawn|GetSpawn()]]
 
|[[LUA:GetSpawnByGroupID|GetSpawnByGroupID()]]
 
|[[LUA:GetSpawnByGroupID|GetSpawnByGroupID()]]
 
|[[LUA:GetSpawnByLocationID|GetSpawnByLocationID()]]
 
|[[LUA:GetSpawnByLocationID|GetSpawnByLocationID()]]
 +
|-
 
|[[LUA:GetSpawnGroupID|GetSpawnGroupID()]]
 
|[[LUA:GetSpawnGroupID|GetSpawnGroupID()]]
|-
 
 
|[[LUA:GetSpawnID|GetSpawnID()]]
 
|[[LUA:GetSpawnID|GetSpawnID()]]
 
|[[LUA:GetSpawnLocationID|GetSpawnLocationID()]]
 
|[[LUA:GetSpawnLocationID|GetSpawnLocationID()]]
 
|[[LUA:GetSpawnLocationPlacementID|GetSpawnLocationPlacementID()]]
 
|[[LUA:GetSpawnLocationPlacementID|GetSpawnLocationPlacementID()]]
 +
|-
 
|[[LUA:GetSpeed|GetSpeed()]]
 
|[[LUA:GetSpeed|GetSpeed()]]
 +
|[[LUA:GetSpellDataIndex|GetSpellDataIndex()]]
 +
|[[LUA:GetSpellDisplayEffect|GetSpellDisplayEffect()]]
 +
|[[LUA:GetSpellTriggerCount|GetSpellTriggerCount()]]
 
|-
 
|-
|[[LUA:GetSpellTriggerCount|GetSpellTriggerCount()]]
 
 
|[[LUA:GetSta|GetSta()]]
 
|[[LUA:GetSta|GetSta()]]
 
|[[LUA:GetStaBase|GetStaBase()]]
 
|[[LUA:GetStaBase|GetStaBase()]]
 
|[[LUA:GetStr|GetStr()]]
 
|[[LUA:GetStr|GetStr()]]
 +
|[[LUA:GetStrBase|GetStrBase()]]
 
|-
 
|-
|[[LUA:GetStrBase|GetStrBase()]]
 
 
|[[LUA:GetTarget|GetTarget()]]
 
|[[LUA:GetTarget|GetTarget()]]
 
|[[LUA:GetTaskGroupStep|GetTaskGroupStep()]]
 
|[[LUA:GetTaskGroupStep|GetTaskGroupStep()]]
 
|[[LUA:GetTempVariable|GetTempVariable()]]
 
|[[LUA:GetTempVariable|GetTempVariable()]]
 +
|[[LUA:GetTradeskillClass|GetTradeskillClass()]]
 
|-
 
|-
|[[LUA:GetTradeskillClass|GetTradeskillClass()]]
 
 
|[[LUA:GetTradeskillClassName|GetTradeskillClassName()]]
 
|[[LUA:GetTradeskillClassName|GetTradeskillClassName()]]
 
|[[LUA:GetTradeskillLevel|GetTradeskillLevel()]]
 
|[[LUA:GetTradeskillLevel|GetTradeskillLevel()]]
 
|[[LUA:GetVariableValue|GetVariableValue()]]
 
|[[LUA:GetVariableValue|GetVariableValue()]]
 +
|[[LUA:GetWardAmountLeft|GetWardAmountLeft()]]
 
|-
 
|-
|[[LUA:GetWardAmountLeft|GetWardAmountLeft()]]
 
 
|[[LUA:GetWis|GetWis()]]
 
|[[LUA:GetWis|GetWis()]]
 
|[[LUA:GetWisBase|GetWisBase()]]
 
|[[LUA:GetWisBase|GetWisBase()]]
 
|[[LUA:GetX|GetX()]]
 
|[[LUA:GetX|GetX()]]
 +
|[[LUA:GetY|GetY()]]
 
|-
 
|-
|[[LUA:GetY|GetY()]]
 
 
|[[LUA:GetZ|GetZ()]]
 
|[[LUA:GetZ|GetZ()]]
 
|[[LUA:GetZone|GetZone()]]
 
|[[LUA:GetZone|GetZone()]]
 
|[[LUA:GetZoneID|GetZoneID()]]
 
|[[LUA:GetZoneID|GetZoneID()]]
 +
|[[LUA:GetZoneName|GetZoneName()]]
 
|-
 
|-
|[[LUA:GetZoneName|GetZoneName()]]
 
 
|[[LUA:GiveLoot|GiveLoot()]]
 
|[[LUA:GiveLoot|GiveLoot()]]
 
|[[LUA:GiveQuestItem|GiveQuestItem()]]
 
|[[LUA:GiveQuestItem|GiveQuestItem()]]
 
|[[LUA:GiveQuestReward|GiveQuestReward()]]
 
|[[LUA:GiveQuestReward|GiveQuestReward()]]
|-
 
 
|[[LUA:GetSpellTier|GetSpellTier()]]
 
|[[LUA:GetSpellTier|GetSpellTier()]]
 
|}
 
|}
Line 281: Line 291:
 
|-
 
|-
 
|[[LUA:IsCasting|IsCasting()]]
 
|[[LUA:IsCasting|IsCasting()]]
 +
|[[LUA:IsDoor|IsDoor()]]
 
|[[LUA:IsEntity|IsEntity()]]
 
|[[LUA:IsEntity|IsEntity()]]
 
|[[LUA:IsEpic|IsEpic()]]
 
|[[LUA:IsEpic|IsEpic()]]
 +
|-
 
|[[LUA:IsFlanking|IsFlanking()]]
 
|[[LUA:IsFlanking|IsFlanking()]]
|-
 
 
|[[LUA:IsFollowing|IsFollowing()]]
 
|[[LUA:IsFollowing|IsFollowing()]]
 
|[[LUA:IsGateAllowed|IsGateAllowed()]]
 
|[[LUA:IsGateAllowed|IsGateAllowed()]]
 
|[[LUA:IsGroundSpawn|IsGroundSpawn()]]
 
|[[LUA:IsGroundSpawn|IsGroundSpawn()]]
 +
|-
 
|[[LUA:IsHeroic|IsHeroic()]]
 
|[[LUA:IsHeroic|IsHeroic()]]
|-
 
 
|[[LUA:IsInCombat|IsInCombat()]]
 
|[[LUA:IsInCombat|IsInCombat()]]
 
|[[LUA:IsInvis|IsInvis()]]
 
|[[LUA:IsInvis|IsInvis()]]
 
|[[LUA:IsMezzed|IsMezzed()]]
 
|[[LUA:IsMezzed|IsMezzed()]]
 +
|-
 
|[[LUA:IsMezzedOrStunned|IsMezzedOrStunned()]]
 
|[[LUA:IsMezzedOrStunned|IsMezzedOrStunned()]]
|-
 
 
|[[LUA:IsNight|IsNight()]]
 
|[[LUA:IsNight|IsNight()]]
 
|[[LUA:IsOnAutoMount|IsOnAutoMount()]]
 
|[[LUA:IsOnAutoMount|IsOnAutoMount()]]
 
|[[LUA:IsPlayer|IsPlayer()]]
 
|[[LUA:IsPlayer|IsPlayer()]]
 +
|-
 
|[[LUA:IsPet|IsPet()]]
 
|[[LUA:IsPet|IsPet()]]
|-
 
 
|[[LUA:IsStealthed|IsStealthed()]]
 
|[[LUA:IsStealthed|IsStealthed()]]
 
|[[LUA:IsStunned|IsStunned()]]
 
|[[LUA:IsStunned|IsStunned()]]
Line 324: Line 335:
 
| style="width: 25%"|[[LUA:ModifyHP|ModifyHP()]]
 
| style="width: 25%"|[[LUA:ModifyHP|ModifyHP()]]
 
| style="width: 25%"|[[LUA:ModifyPower|ModifyPower()]]
 
| style="width: 25%"|[[LUA:ModifyPower|ModifyPower()]]
| style="width: 25%"|[[LUA:MovementLoopAddLocation|MovementLoopAddLocation()]]
+
| style="width: 25%"|[[LUA:MakeRandomFloat|MakeRandomFloat()]]
| style="width: 25%"|[[LUA:MoveToLocation|MoveToLocation()]]
+
| style="width: 25%"|[[LUA:MakeRandomInt|MakeRandomInt()]]
 
|-
 
|-
 +
|[[LUA:MovementLoopAddLocation|MovementLoopAddLocation()]]
 +
|[[LUA:MoveToLocation|MoveToLocation()]]
 
|}
 
|}
  
Line 332: Line 345:
 
{| style="width: 100%; text-align:center"
 
{| style="width: 100%; text-align:center"
 
| style="width: 25%"|[[LUA:OfferQuest|OfferQuest()]]
 
| style="width: 25%"|[[LUA:OfferQuest|OfferQuest()]]
| style="width: 25%"|
+
| style="width: 25%"||[[LUA:OpenDoor|OpenDoor()]]
 
| style="width: 25%"|
 
| style="width: 25%"|
 
| style="width: 25%"|
 
| style="width: 25%"|
Line 406: Line 419:
 
|[[LUA:SetCompletedDescription|SetCompletedDescription()]]
 
|[[LUA:SetCompletedDescription|SetCompletedDescription()]]
 
|[[LUA:SetCompleteFlag|SetCompleteFlag()]]
 
|[[LUA:SetCompleteFlag|SetCompleteFlag()]]
 +
|[[LUA:SetFactionID|SetFactionID()]]
 +
|-
 
|[[LUA:SetFailureTimer|SetFailureTimer()]]
 
|[[LUA:SetFailureTimer|SetFailureTimer()]]
|-
 
 
|[[LUA:SetFollowTarget|SetFollowTarget()]]
 
|[[LUA:SetFollowTarget|SetFollowTarget()]]
 
|[[LUA:SetGridID|SetGridID()]]
 
|[[LUA:SetGridID|SetGridID()]]
 
|[[LUA:SetHeading|SetHeading()]]
 
|[[LUA:SetHeading|SetHeading()]]
 +
|-
 
|[[LUA:SetHP|SetHP()]]
 
|[[LUA:SetHP|SetHP()]]
|-
 
 
|[[LUA:SetIllusion|SetIllusion()]]
 
|[[LUA:SetIllusion|SetIllusion()]]
 
|[[LUA:SetInCombat|SetInCombat()]]
 
|[[LUA:SetInCombat|SetInCombat()]]
 
|[[LUA:SetInt|SetInt()]]
 
|[[LUA:SetInt|SetInt()]]
 +
|-
 
|[[LUA:SetIntBase|SetIntBase()]]
 
|[[LUA:SetIntBase|SetIntBase()]]
|-
 
 
|[[LUA:SetItemCount|SetItemCount()]]
 
|[[LUA:SetItemCount|SetItemCount()]]
 
|[[LUA:SetLocationProximityFunction|SetLocationProximityFunction()]]
 
|[[LUA:SetLocationProximityFunction|SetLocationProximityFunction()]]
 
|[[LUA:SetLootCoin|SetLootCoin()]]
 
|[[LUA:SetLootCoin|SetLootCoin()]]
 +
|-
 
|[[LUA:SetLuaBrain|SetLuaBrain()]]
 
|[[LUA:SetLuaBrain|SetLuaBrain()]]
|-
 
 
|[[LUA:SetMaxHP|SetMaxHP()]]
 
|[[LUA:SetMaxHP|SetMaxHP()]]
 
|[[LUA:SetMaxHPBase|SetMaxHPBase()]]
 
|[[LUA:SetMaxHPBase|SetMaxHPBase()]]
 
|[[LUA:SetMaxPower|SetMaxPower()]]
 
|[[LUA:SetMaxPower|SetMaxPower()]]
 +
|-
 
|[[LUA:SetMaxPowerBase|SetMaxPowerBase()]]
 
|[[LUA:SetMaxPowerBase|SetMaxPowerBase()]]
|-
 
 
|[[LUA:SetModelType|SetModelType()]]
 
|[[LUA:SetModelType|SetModelType()]]
 
|[[LUA:SetMount|SetMount()]]
 
|[[LUA:SetMount|SetMount()]]
 
|[[LUA:SetMountColor|SetMountColor()]]
 
|[[LUA:SetMountColor|SetMountColor()]]
 +
|-
 
|[[LUA:SetPlayerLevel|SetPlayerLevel()]]
 
|[[LUA:SetPlayerLevel|SetPlayerLevel()]]
|-
 
 
|[[LUA:SetPlayerProximityFunction|SetPlayerProximityFunction()]]
 
|[[LUA:SetPlayerProximityFunction|SetPlayerProximityFunction()]]
 
|[[LUA:SetPlayerHistory|SetPlayerHistory()]]
 
|[[LUA:SetPlayerHistory|SetPlayerHistory()]]
 
|[[LUA:SetPosition|SetPosition()]]
 
|[[LUA:SetPosition|SetPosition()]]
 +
|-
 
|[[LUA:SetPower|SetPower()]]
 
|[[LUA:SetPower|SetPower()]]
|-
 
 
|[[LUA:SetQuestCompleteAction|SetQuestCompleteAction()]]
 
|[[LUA:SetQuestCompleteAction|SetQuestCompleteAction()]]
 
|[[LUA:SetQuestFeatherColor|SetQuestFeatherColor()]]
 
|[[LUA:SetQuestFeatherColor|SetQuestFeatherColor()]]
 
|[[LUA:SetQuestFlags|SetQuestFlags()]]
 
|[[LUA:SetQuestFlags|SetQuestFlags()]]
 +
|-
 
|[[LUA:SetQuestPrereqLevel|SetQuestPrereqLevel()]]
 
|[[LUA:SetQuestPrereqLevel|SetQuestPrereqLevel()]]
|-
 
 
|[[LUA:SetQuestRepeatable|SetQuestRepeatable()]]
 
|[[LUA:SetQuestRepeatable|SetQuestRepeatable()]]
 
|[[LUA:SetQuestRewardComment|SetQuestRewardComment()]]
 
|[[LUA:SetQuestRewardComment|SetQuestRewardComment()]]
 
|[[LUA:SetQuestRewardExp|SetQuestRewardExp()]]
 
|[[LUA:SetQuestRewardExp|SetQuestRewardExp()]]
 +
|-
 
|[[LUA:SetQuestRewardStatus|SetQuestRewardStatus()]]
 
|[[LUA:SetQuestRewardStatus|SetQuestRewardStatus()]]
|-
 
 
|[[LUA:SetQuestTimer|SetQuestTimer()]]
 
|[[LUA:SetQuestTimer|SetQuestTimer()]]
 
|[[LUA:SetQuestTimerComplete|SetQuestTimerComplete()]]
 
|[[LUA:SetQuestTimerComplete|SetQuestTimerComplete()]]
 
|[[LUA:SetQuestYellow|SetQuestYellow()]]
 
|[[LUA:SetQuestYellow|SetQuestYellow()]]
 +
|-
 
|[[LUA:SetRequiredHistory|SetRequiredHistory()]]
 
|[[LUA:SetRequiredHistory|SetRequiredHistory()]]
 +
|[[LUA:SetRequiredQuest|SetRequiredQuest()]]
 +
|[[LUA:SetSeeHide|SetSeeHide()]]
 +
|[[LUA:SetSeeInvis|SetSeeInvis()]]
 
|-
 
|-
|[[LUA:SetRequiredQuest|SetRequiredQuest()]]
 
 
|[[LUA:SetServerControlFlag|SetServerControlFlag()]]
 
|[[LUA:SetServerControlFlag|SetServerControlFlag()]]
 
|[[LUA:SetServerVariable|SetServerVariable()]]
 
|[[LUA:SetServerVariable|SetServerVariable()]]
 
|[[LUA:SetSkillMaxValue|SetSkillMaxValue()]]
 
|[[LUA:SetSkillMaxValue|SetSkillMaxValue()]]
 +
|[[LUA:SetSkillValue|SetSkillValue()]]
 
|-
 
|-
|[[LUA:SetSkillValue|SetSkillValue()]]
 
 
|[[LUA:SetSpawnAnimation|SetSpawnAnimation()]]
 
|[[LUA:SetSpawnAnimation|SetSpawnAnimation()]]
 
|[[LUA:SetSpeed|SetSpeed()]]
 
|[[LUA:SetSpeed|SetSpeed()]]
 
|[[LUA:SetSpeedMultiplier|SetSpeedMultiplier()]]
 
|[[LUA:SetSpeedMultiplier|SetSpeedMultiplier()]]
 
|-
 
|-
 +
|[[LUA:SetSpellDataIndex|SetSpellDataIndex()]]
 +
|[[LUA:SetSpellDisplayEffect|SetSpellDisplayEffect()]]
 
|[[LUA:SetSpellList|SetSpellList()]]
 
|[[LUA:SetSpellList|SetSpellList()]]
 
|[[LUA:SetSpellSnareValue|SetSpellSnareValue()]]
 
|[[LUA:SetSpellSnareValue|SetSpellSnareValue()]]
 +
|-
 
|[[LUA:SetSpellTriggerCount|SetSpellTriggerCount()]]
 
|[[LUA:SetSpellTriggerCount|SetSpellTriggerCount()]]
 
|[[LUA:SetSta|SetSta()]]
 
|[[LUA:SetSta|SetSta()]]
|-
 
 
|[[LUA:SetStaBase|SetStaBase()]]
 
|[[LUA:SetStaBase|SetStaBase()]]
 
|[[LUA:SetStepComplete|SetStepComplete()]]
 
|[[LUA:SetStepComplete|SetStepComplete()]]
 +
|-
 
|[[LUA:SetStepFailed|SetStepFailed()]]
 
|[[LUA:SetStepFailed|SetStepFailed()]]
 
|[[LUA:SetStr|SetStr()]]
 
|[[LUA:SetStr|SetStr()]]
|-
 
 
|[[LUA:SetStrBase|SetStrBase()]]
 
|[[LUA:SetStrBase|SetStrBase()]]
 
|[[LUA:SetSuccessTimer|SetSuccessTimer()]]
 
|[[LUA:SetSuccessTimer|SetSuccessTimer()]]
 +
|-
 
|[[LUA:SetTarget|SetTarget()]]
 
|[[LUA:SetTarget|SetTarget()]]
 
|[[LUA:SetTempVariable|SetTempVariable()]]
 
|[[LUA:SetTempVariable|SetTempVariable()]]
|-
 
 
|[[LUA:SetTradeskillClass|SetTradeskillClass()]]
 
|[[LUA:SetTradeskillClass|SetTradeskillClass()]]
 
|[[LUA:SetTradeskillLevel|SetTradeskillLevel()]]
 
|[[LUA:SetTradeskillLevel|SetTradeskillLevel()]]
 +
|-
 
|[[LUA:SetVision|SetVision()]]
 
|[[LUA:SetVision|SetVision()]]
 
|[[LUA:SetWis|SetWis()]]
 
|[[LUA:SetWis|SetWis()]]
|-
 
 
|[[LUA:SetWisBase|SetWisBase()]]
 
|[[LUA:SetWisBase|SetWisBase()]]
 
|[[LUA:Shout|Shout()]]
 
|[[LUA:Shout|Shout()]]
 +
|-
 
|[[LUA:SpawnByLocationID|SpawnByLocationID()]]
 
|[[LUA:SpawnByLocationID|SpawnByLocationID()]]
 
|[[LUA:SpawnMob|SpawnMob()]]
 
|[[LUA:SpawnMob|SpawnMob()]]
|-
 
 
|[[LUA:SpawnMove|SpawnMove()]]
 
|[[LUA:SpawnMove|SpawnMove()]]
 
|[[LUA:SpawnSet|SpawnSet()]]
 
|[[LUA:SpawnSet|SpawnSet()]]
 +
|-
 
|[[LUA:SpawnSetByDistance|SpawnSetByDistance()]]
 
|[[LUA:SpawnSetByDistance|SpawnSetByDistance()]]
 
|[[LUA:SpellDamage|SpellDamage()]]
 
|[[LUA:SpellDamage|SpellDamage()]]
|-
 
 
|[[LUA:SpellHeal|SpellHeal()]]
 
|[[LUA:SpellHeal|SpellHeal()]]
 
|[[LUA:StartAutoMount|StartAutoMount()]]
 
|[[LUA:StartAutoMount|StartAutoMount()]]
 +
|-
 
|[[LUA:StartConversation|StartConversation()]]
 
|[[LUA:StartConversation|StartConversation()]]
 
|[[LUA:StartDialogConversation|StartDialogConversation()]]
 
|[[LUA:StartDialogConversation|StartDialogConversation()]]
|-
 
 
|[[LUA:StartHeroicOpportunity|StartHeroicOpportunity()]]
 
|[[LUA:StartHeroicOpportunity|StartHeroicOpportunity()]]
 
|[[LUA:Stealth|Stealth()]]
 
|[[LUA:Stealth|Stealth()]]
 +
|-
 
|[[LUA:SummonCosmeticPet|SummonCosmeticPet()]]
 
|[[LUA:SummonCosmeticPet|SummonCosmeticPet()]]
 
|[[LUA:SummonDeityPet|SummonDeityPet()]]
 
|[[LUA:SummonDeityPet|SummonDeityPet()]]
|-
 
 
|[[LUA:SummonDumbFirePet|SummonDumbFirePet()]]
 
|[[LUA:SummonDumbFirePet|SummonDumbFirePet()]]
 
|[[LUA:SummonItem|SummonItem()]]
 
|[[LUA:SummonItem|SummonItem()]]
 +
|-
 
|[[LUA:SummonPet|SummonPet()]]
 
|[[LUA:SummonPet|SummonPet()]]
 
|}
 
|}

Revision as of 15:22, 30 January 2021

LUA - AllFunctions

Return to: LUA | Tutorials | Portal | Forum | Project Manager | Bug Tracker

EQ2Emulator: All LUA Functions

This is a list of all the LUA functions currently in EQ2Emu.

A

AddCoin() AddControlEffect() AddConversationOption() AddHate()
AddImmunitySpell() AddItem() AddLanguage() AddLootCoin()
AddLootItem() AddMultiFloorLift() AddOptionWindowOption() AddPrimaryEntityCommand()
AddProc() AddQuestPrereqClass() AddQuestPrereqFaction() AddQuestPrereqItem()
AddQuestPrereqModelType() AddQuestPrereqQuest() AddQuestPrereqRace() AddQuestPrereqTradeskillClass()
AddQuestPrereqTradeskillLevel() AddQuestRewardCoin() AddQuestRewardFaction() AddQuestRewardItem()
AddQuestSelectableRewardItem() AddQuestStep() AddQuestStepChat() AddQuestStepCompleteAction()
AddQuestStepCraft() AddQuestStepFailureAction() AddQuestStepHarvest() AddQuestStepKill()
AddQuestStepLocation() AddQuestStepObtainItem() AddQuestStepProgressAction() AddQuestStepSpell()
AddSkillBonus() AddSpawnAccess() AddSpawnIDAccess() AddSpawnSpellBonus()
AddSpellBonus() AddSpellBookEntry() AddSpellTimer() AddStepProgress()
AddThreatTransfer() AddTimer() AddToWard() AddTransportSpawn()
AddWard() ApplySpellVisual() Attack()

B

Bind() BlurVision() BreatheUnderwater()

C

CancelSpell() CanHarvest() CanReceiveQuest() CastEntityCommand()
CastSpell() CastCustomSpell() CanSeeInvis() Charm()
CheckLOS() CheckLOSByCoordinates() CheckRaceType() ClearEncounter()
ClearHate() CloseConversation() CloseDoor() CreateOptionWindow()
CloseItemConversation() CompareSpawns() CopySpawnAppearance() CreateConversation()
CureByControlEffect() CureByType()

D

Despawn() DismissPet()

E

Emote() EndAutoMount() Evac()

F

FaceTarget()

G

Gate() GetAgi() GetAgiBase() GetCharmedPet()
GetArchetypeName() GetClass() GetClassName() GetClientVersion()
GetCoinMessage() GetCosmeticPet() GetCurrentZoneSafeLocation() GetDeityPet()
GetDistance() GetEncounter() GetEncounterSize() GetEquippedItemByID()
GetEquippedItemBySlot() GetFactionAmount() GetFactionID() GetFollowTarget()
GetGender() GetGroup() GetHateList() GetHeading()
GetHP() GetInt() GetIntBase() GetItemByID()
GetItemCount() GetItemID() GetItemSkillReq() GetItemType()
GetLevel() GetLootCoin() GetMaxHP() GetMaxHPBase()
GetMaxPower() GetMaxPowerBase() GetModelType() GetMostHated()
GetMount() GetName() GetOrigX() GetOrigY()
GetOrigZ() GetOwner() GetPet() GetPlayerHistory()
GetPlayersInZone() GetPower() GetQuest() GetQuestCompleteCount()
GetQuestFlags() GetQuestStep() GetQuestStepProgress() GetRace()
GetRaceBaseType() GetRaceType() GetRaceName() GetRunbackDistance()
GetServerVariable() GetSkill() GetSkillMaxValue() GetSkillName()
GetSkillValue() GetSpawn() GetSpawnByGroupID() GetSpawnByLocationID()
GetSpawnGroupID() GetSpawnID() GetSpawnLocationID() GetSpawnLocationPlacementID()
GetSpeed() GetSpellDataIndex() GetSpellDisplayEffect() GetSpellTriggerCount()
GetSta() GetStaBase() GetStr() GetStrBase()
GetTarget() GetTaskGroupStep() GetTempVariable() GetTradeskillClass()
GetTradeskillClassName() GetTradeskillLevel() GetVariableValue() GetWardAmountLeft()
GetWis() GetWisBase() GetX() GetY()
GetZ() GetZone() GetZoneID() GetZoneName()
GiveLoot() GiveQuestItem() GiveQuestReward() GetSpellTier()

H

HandInCollections() Harvest() HasCollectionsToHandIn() HasCompletedQuest()
HasFreeSlot() HasGroup() HasItem() HasLanguage()
HasMoved() HasPendingLootItem() HasPendingLoot() HasQuest()
HasRecipeBook() HasRecovered() HasSpellEffect()

I

Interrupt() IsAlive() IsBehind() IsBindAllowed()
IsCasting() IsDoor() IsEntity() IsEpic()
IsFlanking() IsFollowing() IsGateAllowed() IsGroundSpawn()
IsHeroic() IsInCombat() IsInvis() IsMezzed()
IsMezzedOrStunned() IsNight() IsOnAutoMount() IsPlayer()
IsPet() IsStealthed() IsStunned()

K

KillSpawn() KillSpawnByDistance() Knockback()

L

LastSpellAttackHit()

M

ModifyHP() ModifyPower() MakeRandomFloat() MakeRandomInt()
MovementLoopAddLocation() MoveToLocation()

O

OfferQuest() style="width: 25%" OpenDoor()

P

PlayAnimation() PlayFlavor() PlaySound() PlayVoice()
ProcDamage() ProcessSpell() ProcessMelee() ProvidesQuest()
PerformCameraShake()

Q

QuestIsComplete() QuestReturnNPC() QuestStepIsComplete()

R

RegisterQuest() RemoveCoin() RemoveControlEffect() RemoveImmunitySpell()
RemoveInvis() RemoveItem() RemoveLootItem() RemoveProc()
RemoveQuestStep() RemoveSkillBonus() RemoveSpawnAccess() RemoveSpawnIDAccess()
RemoveSpellBonus() RemoveStealth() RemoveThreatTransfer() RemoveTriggerFromSpell()
RemoveWard() ResetIllusion() ResetQuestStep() Resurrect()
Runback()

S

Say() SayOOC() SendMessage() SendOptionWindow()
SendPopUpMessage() SetAdventureClass() SetAgi() SetAgiBase()
SetBrainTick() SetCompletedDescription() SetCompleteFlag() SetFactionID()
SetFailureTimer() SetFollowTarget() SetGridID() SetHeading()
SetHP() SetIllusion() SetInCombat() SetInt()
SetIntBase() SetItemCount() SetLocationProximityFunction() SetLootCoin()
SetLuaBrain() SetMaxHP() SetMaxHPBase() SetMaxPower()
SetMaxPowerBase() SetModelType() SetMount() SetMountColor()
SetPlayerLevel() SetPlayerProximityFunction() SetPlayerHistory() SetPosition()
SetPower() SetQuestCompleteAction() SetQuestFeatherColor() SetQuestFlags()
SetQuestPrereqLevel() SetQuestRepeatable() SetQuestRewardComment() SetQuestRewardExp()
SetQuestRewardStatus() SetQuestTimer() SetQuestTimerComplete() SetQuestYellow()
SetRequiredHistory() SetRequiredQuest() SetSeeHide() SetSeeInvis()
SetServerControlFlag() SetServerVariable() SetSkillMaxValue() SetSkillValue()
SetSpawnAnimation() SetSpeed() SetSpeedMultiplier()
SetSpellDataIndex() SetSpellDisplayEffect() SetSpellList() SetSpellSnareValue()
SetSpellTriggerCount() SetSta() SetStaBase() SetStepComplete()
SetStepFailed() SetStr() SetStrBase() SetSuccessTimer()
SetTarget() SetTempVariable() SetTradeskillClass() SetTradeskillLevel()
SetVision() SetWis() SetWisBase() Shout()
SpawnByLocationID() SpawnMob() SpawnMove() SpawnSet()
SpawnSetByDistance() SpellDamage() SpellHeal() StartAutoMount()
StartConversation() StartDialogConversation() StartHeroicOpportunity() Stealth()
SummonCosmeticPet() SummonDeityPet() SummonDumbFirePet() SummonItem()
SummonPet()

T

ToggleFollow() ToggleTracking()

U

UpdateQuestDescription() UpdateQuestStepDescription() UpdateQuestTaskGroupDescription() UpdateQuestZone()
UseWidget()

Z

Zone()