LuaBridge:Methods

From ArcEmu-Wiki
(Difference between revisions)
Jump to: navigation, search
(Player)
 
(34 intermediate revisions by 3 users not shown)
Line 2: Line 2:
 
These are the Methods in LuaBridge.
 
These are the Methods in LuaBridge.
 
<blockquote> '''Some method links have not be documented since the method name and parameters is self documenting enough'''.</blockquote><br/><br/><br/>
 
<blockquote> '''Some method links have not be documented since the method name and parameters is self documenting enough'''.</blockquote><br/><br/><br/>
 +
 +
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
 +
 
= <center>Class Hierarchy</center> =
 
= <center>Class Hierarchy</center> =
 
== Gossip Menu ==
 
== Gossip Menu ==
[[LuaBridge:Methods#GossipMenu|GossipMenu]] : [[LuaBridge:Methods:GossipMenu:constructor|constructor]]( [[LuaBridge:GUID|GUID]] creature_guid, [[LuaBridge:uint32|uint32]] text_id, [[LuaBridge:uint32|uint32]] language )<br>
+
[[LuaBridge:Methods#GossipMenu|GossipMenu]] : [[LuaBridge:Methods:GossipMenu:GossipMenu|GossipMenu]]( [[LuaBridge:GUID|GUID]] creature_guid, [[LuaBridge:uint32|uint32]] text_id, [[LuaBridge:uint32|uint32]] language )<br>
 
[[LuaBridge:void|void]] : [[LuaBridge:Methods:GossipMenu:AddItem|AddItem]]( [[LuaBridge:uint8|uint8]] icon, [[LuaBridge:string|string]] itemname, [[LuaBridge:uint32|uint32]] itemid, [[LuaBridge:boolean|bool]] codebox )<br>
 
[[LuaBridge:void|void]] : [[LuaBridge:Methods:GossipMenu:AddItem|AddItem]]( [[LuaBridge:uint8|uint8]] icon, [[LuaBridge:string|string]] itemname, [[LuaBridge:uint32|uint32]] itemid, [[LuaBridge:boolean|bool]] codebox )<br>
 
[[LuaBridge:void|void]] : [[LuaBridge:Methods:GossipMenu:AddMenuItem|AddMenuItem]]( [[LuaBridge:uint8|uint8]] icon, [[LuaBridge:string|string]] itemname, [[LuaBridge:uint32|uint32]] itemid, [[LuaBridge:uint32|uint32]] boxmoney, [[LuaBridge:string|string]] boxmsg, [[LuaBridge:boolean|bool]] codebox )<br>
 
[[LuaBridge:void|void]] : [[LuaBridge:Methods:GossipMenu:AddMenuItem|AddMenuItem]]( [[LuaBridge:uint8|uint8]] icon, [[LuaBridge:string|string]] itemname, [[LuaBridge:uint32|uint32]] itemid, [[LuaBridge:uint32|uint32]] boxmoney, [[LuaBridge:string|string]] boxmsg, [[LuaBridge:boolean|bool]] codebox )<br>
Line 12: Line 17:
 
[[LuaBridge:static|static]] [[LuaBridge:void|void]] : [[LuaBridge:Methods:GossipMenu:Complete|Complete]]( [[LuaBridge:Methods#Player|Player]] player )<br>
 
[[LuaBridge:static|static]] [[LuaBridge:void|void]] : [[LuaBridge:Methods:GossipMenu:Complete|Complete]]( [[LuaBridge:Methods#Player|Player]] player )<br>
 
[[LuaBridge:static|static]] [[LuaBridge:void|void]] : [[LuaBridge:Methods:GossipMenu:SendSimpleMenu|SendSimpleMenu]]( [[LuaBridge:GUID|GUID]] creature_guid, [[LuaBridge:uint32|uint32]] text_id, [[LuaBridge:Methods#Player|Player]] player )
 
[[LuaBridge:static|static]] [[LuaBridge:void|void]] : [[LuaBridge:Methods:GossipMenu:SendSimpleMenu|SendSimpleMenu]]( [[LuaBridge:GUID|GUID]] creature_guid, [[LuaBridge:uint32|uint32]] text_id, [[LuaBridge:Methods#Player|Player]] player )
 +
 +
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
  
 
== Object ==
 
== Object ==
Line 22: Line 31:
 
----
 
----
  
 +
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
  
  
Line 31: Line 42:
 
[[LuaBridge_wowguid|WoWGUID]] : [[LuaBridge_Object_GetNewGUID|GetNewGUID]]()<br>
 
[[LuaBridge_wowguid|WoWGUID]] : [[LuaBridge_Object_GetNewGUID|GetNewGUID]]()<br>
 
[[LuaBridge_uint32|uint32]] : [[LuaBridge_Object_GetEntryFromGUID|GetEntryFromGUID()]] <br>
 
[[LuaBridge_uint32|uint32]] : [[LuaBridge_Object_GetEntryFromGUID|GetEntryFromGUID()]] <br>
 +
 +
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
  
 
=== Class identification methods===
 
=== Class identification methods===
Line 42: Line 57:
 
[[LuaBridge_boolean|bool]] : [[LuaBridge_Object_IsCreature|IsCreature()]] <br>
 
[[LuaBridge_boolean|bool]] : [[LuaBridge_Object_IsCreature|IsCreature()]] <br>
 
[[LuaBridge_boolean|bool]] : [[LuaBridge_Object_IsPet|IsPet()]]<br>
 
[[LuaBridge_boolean|bool]] : [[LuaBridge_Object_IsPet|IsPet()]]<br>
 +
 +
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
  
 
=== Position methods ===
 
=== Position methods ===
Line 63: Line 82:
 
[[LuaBridge:uint32|uint32]] : [[LuaBridge:Methods:Object:SetMapID|SetMapID]]( [[LuaBridge:uint32|uint32]] newmapid )<br>
 
[[LuaBridge:uint32|uint32]] : [[LuaBridge:Methods:Object:SetMapID|SetMapID]]( [[LuaBridge:uint32|uint32]] newmapid )<br>
 
[[LuaBridge:uint32|uint32]] : [[LuaBridge:Methods:Object:SetZoneID|SetZoneID]]( [[LuaBridge:uint32|uint32]] newzoneid )<br>
 
[[LuaBridge:uint32|uint32]] : [[LuaBridge:Methods:Object:SetZoneID|SetZoneID]]( [[LuaBridge:uint32|uint32]] newzoneid )<br>
 +
 +
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
  
 
=== Object Model Manipulation===
 
=== Object Model Manipulation===
Line 68: Line 91:
 
[[LuaBridge_float|float]] : [[LuaBridge_Object_GetScale|GetScale]]()<br>
 
[[LuaBridge_float|float]] : [[LuaBridge_Object_GetScale|GetScale]]()<br>
 
[[LuaBridge_void|void]] : [[LuaBridge_Object_SetScale|SetScale]]( [[LuaBridge_float|float]] newscale )<br>
 
[[LuaBridge_void|void]] : [[LuaBridge_Object_SetScale|SetScale]]( [[LuaBridge_float|float]] newscale )<br>
 +
 +
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
  
 
=== Distance Manipulation Methods===
 
=== Distance Manipulation Methods===
Line 73: Line 100:
 
[[LuaBridge:float|float]] : [[LuaBridge:Methods:Object:CalcDistanceToObject|CalcDistanceToObject]]( [[LuaBridge:Methods#Object|Object]] )<br>
 
[[LuaBridge:float|float]] : [[LuaBridge:Methods:Object:CalcDistanceToObject|CalcDistanceToObject]]( [[LuaBridge:Methods#Object|Object]] )<br>
 
[[LuaBridge:float|float]] : [[LuaBridge:Methods:Object:CalcDistanceToLocation|CalcDistanceToLocation]]( [[LuaBridge:float|float]] x, [[LuaBridge:float|float]] y, [[LuaBridge:float|float]] z )<br>
 
[[LuaBridge:float|float]] : [[LuaBridge:Methods:Object:CalcDistanceToLocation|CalcDistanceToLocation]]( [[LuaBridge:float|float]] x, [[LuaBridge:float|float]] y, [[LuaBridge:float|float]] z )<br>
 +
 +
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
  
 
=== Phasing Methods ===
 
=== Phasing Methods ===
Line 81: Line 112:
 
[[LuaBridge:LCFREQUIRE|'''<small>LCF</small>''']] [[LuaBridge:void|void]] : [[LuaBridge:Methods:Object:PhaseSet|PhaseSet]]( [[LuaBridge:uint32|uint32]] phasetoset )<br>
 
[[LuaBridge:LCFREQUIRE|'''<small>LCF</small>''']] [[LuaBridge:void|void]] : [[LuaBridge:Methods:Object:PhaseSet|PhaseSet]]( [[LuaBridge:uint32|uint32]] phasetoset )<br>
 
[[LuaBridge:LCFREQUIRE|'''<small>LCF</small>''']] [[LuaBridge:void|void]] : [[LuaBridge:Methods:Object:PhaseDelete|PhaseDelete]]( [[LuaBridge:uint32|uint32]] phasetodelete )<br>
 
[[LuaBridge:LCFREQUIRE|'''<small>LCF</small>''']] [[LuaBridge:void|void]] : [[LuaBridge:Methods:Object:PhaseDelete|PhaseDelete]]( [[LuaBridge:uint32|uint32]] phasetodelete )<br>
 +
 +
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
  
 
=== InRange Objects Methods ===
 
=== InRange Objects Methods ===
Line 101: Line 136:
 
[[LuaBridge:LCFREQUIRE|'''<small>LCF</small>''']] [[LuaBridge:table|table]]<[[LuaBridge:Methods#Creature|Creature]]> : [[LuaBridge:Methods:Object:GetHostileCreatures|GetHostileCreatures()]]<br>
 
[[LuaBridge:LCFREQUIRE|'''<small>LCF</small>''']] [[LuaBridge:table|table]]<[[LuaBridge:Methods#Creature|Creature]]> : [[LuaBridge:Methods:Object:GetHostileCreatures|GetHostileCreatures()]]<br>
 
[[LuaBridge:LCFREQUIRE|'''<small>LCF</small>''']] [[LuaBridge:table|table]]<[[LuaBridge:Methods#GameObject|GameObject]]> : [[LuaBridge:Methods:Object:GetInRangeGameObjects|GetInRangeGameObjects()]]<br>
 
[[LuaBridge:LCFREQUIRE|'''<small>LCF</small>''']] [[LuaBridge:table|table]]<[[LuaBridge:Methods#GameObject|GameObject]]> : [[LuaBridge:Methods:Object:GetInRangeGameObjects|GetInRangeGameObjects()]]<br>
 +
 +
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
  
 
=== Object Flag Methods ===
 
=== Object Flag Methods ===
Line 119: Line 158:
 
[[LuaBridge:void|void]] : [[LuaBridge:Methods:Object:SetFlag|SetFlag]] ( [[LuaBridge:uint32|uint32]] field_index, [[LuaBridge:uint32|uint32]] flag_to_append )<br>
 
[[LuaBridge:void|void]] : [[LuaBridge:Methods:Object:SetFlag|SetFlag]] ( [[LuaBridge:uint32|uint32]] field_index, [[LuaBridge:uint32|uint32]] flag_to_append )<br>
 
[[LuaBridge:void|void]] : [[LuaBridge:Methods:Object:RemoveFlag|RemoveFlag]] ( [[LuaBridge:uint32|uint32]] field_index, [[LuaBridge:uint32|uint32]] flag_to_remove)<br>
 
[[LuaBridge:void|void]] : [[LuaBridge:Methods:Object:RemoveFlag|RemoveFlag]] ( [[LuaBridge:uint32|uint32]] field_index, [[LuaBridge:uint32|uint32]] flag_to_remove)<br>
 +
 +
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
  
 
=== Misc Methods ===
 
=== Misc Methods ===
Line 128: Line 171:
 
[[LuaBridge:void|void]] : [[LuaBridge:Methods:Object:SendPacket|SendPacket]]( [[LuaBridge:Methods#WorldPacket|WorldPacket]] packet )<br>
 
[[LuaBridge:void|void]] : [[LuaBridge:Methods:Object:SendPacket|SendPacket]]( [[LuaBridge:Methods#WorldPacket|WorldPacket]] packet )<br>
 
[[LuaBridge:void|void]] : [[LuaBridge:Methods:Object:DealDamage|DealDamage]]( [[LuaBridge:Methods#Unit|Unit]] target, [[LuaBridge:uint32|uint32]] damage, [[LuaBridge:uint32|uint32]] targetEvent, [[LuaBridge:uint32|uint32]] spellid, [[LuaBridge:boolean|bool]] no_remove_auras )<br>
 
[[LuaBridge:void|void]] : [[LuaBridge:Methods:Object:DealDamage|DealDamage]]( [[LuaBridge:Methods#Unit|Unit]] target, [[LuaBridge:uint32|uint32]] damage, [[LuaBridge:uint32|uint32]] targetEvent, [[LuaBridge:uint32|uint32]] spellid, [[LuaBridge:boolean|bool]] no_remove_auras )<br>
 +
 +
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
  
 
== Unit ==
 
== Unit ==
Line 138: Line 185:
 
Unit derives from [[LuaBridge:Methods#Object|Object]] so it contains all its methods meaning you can call Object methods from a Unit userdata.
 
Unit derives from [[LuaBridge:Methods#Object|Object]] so it contains all its methods meaning you can call Object methods from a Unit userdata.
  
<center>'''Methods'''</center>
+
 
 +
'''Source(s):''' [http://www.downloadranking.com  LuaBridge:Methods]
 +
 
 +
 
 +
=== ''Methods'' ===
 
----
 
----
 
[[LuaBridge:Methods#AIInterface|AIInterface]] : [[LuaBridge:Methods:Unit:GetAIInterface|GetAIInterface()]]<br>
 
[[LuaBridge:Methods#AIInterface|AIInterface]] : [[LuaBridge:Methods:Unit:GetAIInterface|GetAIInterface()]]<br>
  
=== '''PvP Methods''' ===
+
 
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
 
 +
 
 +
==== '''PvP Methods''' ====
 
----
 
----
 
[[LuaBridge:boolean|bool]] : [[LuaBridge:Methods:Unit:IsPVPFlagged|IsPVPFlagged()]]<br>
 
[[LuaBridge:boolean|bool]] : [[LuaBridge:Methods:Unit:IsPVPFlagged|IsPVPFlagged()]]<br>
Line 154: Line 209:
 
[[LuaBridge:void|void]] : [[LuaBridge:Methods:Unit:RemoveSanctuaryFlag|RemoveSanctuaryFlag()]]<br>
 
[[LuaBridge:void|void]] : [[LuaBridge:Methods:Unit:RemoveSanctuaryFlag|RemoveSanctuaryFlag()]]<br>
  
=== '''Stat Methods''' ===
+
 
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
 
 +
 
 +
==== '''Stat Methods''' ====
 
----
 
----
 
[[LuaBridge:uint32|uint32]] : [[LuaBridge:Methods:Unit:GetLevel|GetLevel()]]<br>
 
[[LuaBridge:uint32|uint32]] : [[LuaBridge:Methods:Unit:GetLevel|GetLevel()]]<br>
Line 191: Line 250:
 
[[LuaBridge:void|void]] : [[LuaBridge:Methods:Unit:SetManaPct|SetManaPct]]( [[LuaBridge:uint32|uint32]] percent )<br>
 
[[LuaBridge:void|void]] : [[LuaBridge:Methods:Unit:SetManaPct|SetManaPct]]( [[LuaBridge:uint32|uint32]] percent )<br>
  
=== '''State Methods ''' ===
+
 
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
 
 +
 
 +
==== '''State Methods ''' ====
 
----
 
----
 
[[LuaBridge:boolean|bool]] : [[LuaBridge:Methods:Unit:IsCasting|IsCasting()]]<br>
 
[[LuaBridge:boolean|bool]] : [[LuaBridge:Methods:Unit:IsCasting|IsCasting()]]<br>
Line 213: Line 276:
 
[[LuaBridge:uint32|uint32]] : [[LuaBridge:Methods:Unit:GetOldEmote|GetOldEmote()]]<br>
 
[[LuaBridge:uint32|uint32]] : [[LuaBridge:Methods:Unit:GetOldEmote|GetOldEmote()]]<br>
  
=== '''Attributes''' ===
+
 
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
 
 +
 
 +
==== '''Attributes''' ====
 
----
 
----
 
[[LuaBridge:uint32|uint32]] : [[LuaBridge:Methods:Unit:GetClassMask|GetClassMask()]]<br>
 
[[LuaBridge:uint32|uint32]] : [[LuaBridge:Methods:Unit:GetClassMask|GetClassMask()]]<br>
Line 231: Line 298:
 
[[LuaBridge:void|void]] : [[LuaBridge:Methods:Unit:SetNativeDisplayID|SetNativeDisplayID]]( [[LuaBridge:uint32|uint32]] newdisplay )<br>
 
[[LuaBridge:void|void]] : [[LuaBridge:Methods:Unit:SetNativeDisplayID|SetNativeDisplayID]]( [[LuaBridge:uint32|uint32]] newdisplay )<br>
  
=== '''Combat Methods''' ===
+
 
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
 
 +
 
 +
==== '''Combat Methods''' ====
 
----
 
----
 
{| class="wikitable"
 
{| class="wikitable"
Line 251: Line 322:
 
|}
 
|}
  
=== '''Messaging Methods''' ===
+
 
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
 
 +
 
 +
==== '''Messaging Methods''' ====
 
{| class="wikitable"
 
{| class="wikitable"
 
! return type !! method
 
! return type !! method
Line 262: Line 337:
 
|}
 
|}
  
=== '''Movement''' ===
+
 
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
 
 +
 
 +
==== '''Movement''' ====
 
----
 
----
 
{| class="wikitable"
 
{| class="wikitable"
Line 274: Line 353:
 
|}
 
|}
  
=== '''Spell/Aura''' ===
+
 
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
 
 +
 
 +
==== '''Spell/Aura''' ====
 
----
 
----
 
[[LuaBridge:void|void]] : [[LuaBridge:Unit:Method:Demorph|Demorph()]]<br>
 
[[LuaBridge:void|void]] : [[LuaBridge:Unit:Method:Demorph|Demorph()]]<br>
Line 287: Line 370:
 
[[LuaBridge:void|void]] : [[LuaBridge:Methods:Unit:RemoveAllNonPersistentAuras|RemoveAllNonPersistentAuras()]]<br>
 
[[LuaBridge:void|void]] : [[LuaBridge:Methods:Unit:RemoveAllNonPersistentAuras|RemoveAllNonPersistentAuras()]]<br>
  
== CombatStatus ==
+
 
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
 
 +
 
 +
=== CombatStatus ===
 +
----
 
[[LuaBridge:boolean|bool]] : [[LuaBridge:Methods:CombatStatus:IsInCombat|IsInCombat()]]<br>
 
[[LuaBridge:boolean|bool]] : [[LuaBridge:Methods:CombatStatus:IsInCombat|IsInCombat()]]<br>
 +
 +
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
  
 
== Creature ==
 
== Creature ==
 
The Creature class is what all in-game npcs are. It derives from Unit, so it contains all of Units methods.
 
The Creature class is what all in-game npcs are. It derives from Unit, so it contains all of Units methods.
  
'''<center>Methods</center>'''
+
 
 +
'''Source(s):''' [http://www.downloadranking.com  LuaBridge:Methods]
 +
 
 +
 
 +
=== Methods ===
 
----
 
----
=== '''Attributes''' ===
+
 
 +
 
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
 
 +
 
 +
==== '''Attributes''' ====
 
----
 
----
 
[[LuaBridge:boolean|bool]] : [[LuaBridge:Methods:Creature:IsVehicle|IsVehicle()]]<br>
 
[[LuaBridge:boolean|bool]] : [[LuaBridge:Methods:Creature:IsVehicle|IsVehicle()]]<br>
Line 319: Line 420:
 
[[LuaBridge:uint32|uint32]] : [[LuaBridge:Methods:Creature:GetSQLID|GetSQLID()]]<br>
 
[[LuaBridge:uint32|uint32]] : [[LuaBridge:Methods:Creature:GetSQLID|GetSQLID()]]<br>
  
=== '''Item''' ===
+
 
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
 
 +
 
 +
==== '''Item''' ====
 
----
 
----
 
[[LuaBridge:boolean|bool]] : [[LuaBridge:Methods:Creature:HasItems|HasItems()]]<br>
 
[[LuaBridge:boolean|bool]] : [[LuaBridge:Methods:Creature:HasItems|HasItems()]]<br>
Line 327: Line 432:
 
[[LuaBridge:uint32|uint32]] : [[LuaBridge:Methods:Creature:GetItemAmountByItemId|GetItemAmountByItemId]]( [[LuaBridge:uint32|uint32]] itemid)<br>
 
[[LuaBridge:uint32|uint32]] : [[LuaBridge:Methods:Creature:GetItemAmountByItemId|GetItemAmountByItemId]]( [[LuaBridge:uint32|uint32]] itemid)<br>
  
=== '''Quests''' ===
+
 
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
 
 +
 
 +
==== '''Quests''' ====
 
----
 
----
 
[[LuaBridge:boolean|bool]] : [[LuaBridge:Methods:Creature:HasQuests|HasQuests()]]<br>
 
[[LuaBridge:boolean|bool]] : [[LuaBridge:Methods:Creature:HasQuests|HasQuests()]]<br>
Line 337: Line 446:
 
[[LuaBridge:uint32|uint32]] : [[LuaBridge:Methods:Creature:NumOfQuests|NumOfQuests()]]<br>
 
[[LuaBridge:uint32|uint32]] : [[LuaBridge:Methods:Creature:NumOfQuests|NumOfQuests()]]<br>
  
=== '''Misc''' ===
+
 
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
 
 +
 
 +
==== '''Misc''' ====
 
----
 
----
 
[[LuaBridge:void|void]] : [[LuaBridge:Methods:Creature:RemoveFromWorld|RemoveFromWorld]]( [[LuaBridge:boolean|bool]] free_guid)<br>
 
[[LuaBridge:void|void]] : [[LuaBridge:Methods:Creature:RemoveFromWorld|RemoveFromWorld]]( [[LuaBridge:boolean|bool]] free_guid)<br>
Line 356: Line 469:
 
[[LuaBridge:Methods#CreatureAIScript|CreatureAIScript]] : [[LuaBridge:Methods:Creature:GetScript|GetScript()]]<br>
 
[[LuaBridge:Methods#CreatureAIScript|CreatureAIScript]] : [[LuaBridge:Methods:Creature:GetScript|GetScript()]]<br>
  
== CreatureProto ==
+
 
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
 
 +
 
 +
=== CreatureProto ===
 
A structure that holds useful information describing a creature. Every unique creature id has a copy of this structure.
 
A structure that holds useful information describing a creature. Every unique creature id has a copy of this structure.
 
{| class="wikitable"
 
{| class="wikitable"
Line 394: Line 511:
 
|}
 
|}
  
== CreatureInfo ==
+
 
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
 
 +
 
 +
=== CreatureInfo ===
 
Another structure that holds useful information for a creature.
 
Another structure that holds useful information for a creature.
 
{| class="wikitable"
 
{| class="wikitable"
Line 412: Line 533:
 
|}
 
|}
  
== CreatureAIScript ==
+
 
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
 
 +
 
 +
=== CreatureAIScript ===
 
This class is what is responsible for calling the method AIUpdate() for creatures.
 
This class is what is responsible for calling the method AIUpdate() for creatures.
  
Line 418: Line 543:
 
[[LuaBridge:void|void]] : [[LuaBridge:Methods:CreatureAIScript:ModifyAIUpdateEvent|ModifyAIUpdateEvent]]( [[LuaBridge:uint32|uint32]] newperiod)<br>
 
[[LuaBridge:void|void]] : [[LuaBridge:Methods:CreatureAIScript:ModifyAIUpdateEvent|ModifyAIUpdateEvent]]( [[LuaBridge:uint32|uint32]] newperiod)<br>
 
[[LuaBridge:void|void]] : [[LuaBridge:Methods:CreatureAIScript:RemoveAIUpdateEvent|RemoveAIUpdateEvent()]]
 
[[LuaBridge:void|void]] : [[LuaBridge:Methods:CreatureAIScript:RemoveAIUpdateEvent|RemoveAIUpdateEvent()]]
 +
 +
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
  
 
== AIInterface==
 
== AIInterface==
 
This class is what defines AI behavior for creatures.
 
This class is what defines AI behavior for creatures.
 +
=== ''Methods'' ===
 
{| class="wikitable sortable"
 
{| class="wikitable sortable"
 
! return type !! method name
 
! return type !! method name
Line 520: Line 650:
 
|}
 
|}
  
== Waypoint ==
+
 
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
 
 +
 
 +
=== Waypoint ===
 
This class defines a structure that provides location vector coordinates and other information creatures use for waypoints.
 
This class defines a structure that provides location vector coordinates and other information creatures use for waypoints.
 
{| class="wikitable sortable"
 
{| class="wikitable sortable"
Line 544: Line 678:
 
| [[LuaBridge:uint32|uint32]] || [[LuaBridge:Methods:Waypoint:forwardskinid|forwardskinid]]
 
| [[LuaBridge:uint32|uint32]] || [[LuaBridge:Methods:Waypoint:forwardskinid|forwardskinid]]
 
|}
 
|}
 +
 +
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
  
 
== GameObject ==
 
== GameObject ==
 
This class object defines things like doors/chests/traps/transports, etc. GameObjects are very passive objects since they mostly require input from a unit to function.
 
This class object defines things like doors/chests/traps/transports, etc. GameObjects are very passive objects since they mostly require input from a unit to function.
 +
 +
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
 +
 +
=== Methods ===
 
{| class="wikitable sortable"
 
{| class="wikitable sortable"
 
! return type !! method name
 
! return type !! method name
Line 571: Line 715:
 
|}
 
|}
  
== GameObjectAIScript ==
+
 
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
 
 +
 
 +
=== GameObjectAIScript ===
  
 
This class is what is responsible for calling the method AIUpdate() for gameobjects.
 
This class is what is responsible for calling the method AIUpdate() for gameobjects.
Line 584: Line 732:
 
|}
 
|}
  
== GameObjectInfo ==
+
 
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
 
 +
 
 +
=== GameObjectInfo ===
 
{| class="wikitable"
 
{| class="wikitable"
 
! property type !! property name
 
! property type !! property name
Line 598: Line 750:
 
| [[LuaBridge:uint32|uint32]] || [[LuaBridge:Methods:GameObjectInfo:SpellFocus|SpellFocus]]
 
| [[LuaBridge:uint32|uint32]] || [[LuaBridge:Methods:GameObjectInfo:SpellFocus|SpellFocus]]
 
|}
 
|}
 +
 +
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
  
 
== Player ==
 
== Player ==
 
This class is what defines the player. It derives from Unit so it has all of its methods.
 
This class is what defines the player. It derives from Unit so it has all of its methods.
 +
 +
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
 +
 
=== Methods ===
 
=== Methods ===
 +
----
 +
 +
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
 +
 
==== Skill Manipulation ====
 
==== Skill Manipulation ====
 
{| class="wikitable"
 
{| class="wikitable"
Line 632: Line 799:
 
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:Player:learnSkillSpells|learnSkillSpells]]( [[LuaBridge:uint32|uint32]] skilline, [[LuaBridge:uint32|uint32]] skillcurrent )
 
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:Player:learnSkillSpells|learnSkillSpells]]( [[LuaBridge:uint32|uint32]] skilline, [[LuaBridge:uint32|uint32]] skillcurrent )
 
|}
 
|}
 +
 +
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
  
 
==== Languages ====
 
==== Languages ====
Line 641: Line 812:
 
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:Player:AddLanguages|AddLanguages]]( [[LuaBridge:boolean|bool]]  all )
 
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:Player:AddLanguages|AddLanguages]]( [[LuaBridge:boolean|bool]]  all )
 
|}
 
|}
 +
 +
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
  
 
==== Taxi ====
 
==== Taxi ====
Line 656: Line 831:
 
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:Player:SetTaxiState|SetTaxiState]]( [[LuaBridge:boolean|bool]] state )
 
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:Player:SetTaxiState|SetTaxiState]]( [[LuaBridge:boolean|bool]] state )
 
|}
 
|}
 +
 +
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
  
 
==== Quest ====
 
==== Quest ====
Line 693: Line 872:
 
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:Player:RemoveQuestMob|RemoveQuestMob]]( [[LuaBridge:uint32|uint32]] id )
 
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:Player:RemoveQuestMob|RemoveQuestMob]]( [[LuaBridge:uint32|uint32]] id )
 
|}
 
|}
 +
 +
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
  
 
==== Player Team ====
 
==== Player Team ====
Line 710: Line 893:
 
| [[LuaBridge:boolean|bool]] || [[LuaBridge:Methods:Player:isAllianceTeam|isAllianceTeam()]]
 
| [[LuaBridge:boolean|bool]] || [[LuaBridge:Methods:Player:isAllianceTeam|isAllianceTeam()]]
 
|}
 
|}
 +
 +
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
  
 
==== Spells/Talents ====
 
==== Spells/Talents ====
Line 741: Line 928:
 
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:Player:ResetTalents|ResetTalents()]]
 
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:Player:ResetTalents|ResetTalents()]]
 
|}
 
|}
 +
 +
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
  
 
==== Reputation ====
 
==== Reputation ====
Line 768: Line 959:
 
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:Player:SetKnownTitle|SetKnownTitle]]( [[LuaBridge:Methods#RankTitles|RankTitles]] title, [[LuaBridge:boolean|bool]] set )
 
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:Player:SetKnownTitle|SetKnownTitle]]( [[LuaBridge:Methods#RankTitles|RankTitles]] title, [[LuaBridge:boolean|bool]] set )
 
|}
 
|}
 +
 +
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
  
 
==== Group/Guild ====
 
==== Group/Guild ====
Line 789: Line 984:
 
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:Player:SetGuildRank|SetGuildRank]]( [[LuaBridge:uint32|uint32]] rank )
 
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:Player:SetGuildRank|SetGuildRank]]( [[LuaBridge:uint32|uint32]] rank )
 
|}
 
|}
 +
 +
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
  
 
==== Dueling ====
 
==== Dueling ====
Line 812: Line 1,011:
 
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:Player:SetDuelTeam|SetDuelTeam]]( [[LuaBridge:uint32|uint32]] team )
 
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:Player:SetDuelTeam|SetDuelTeam]]( [[LuaBridge:uint32|uint32]] team )
 
|}
 
|}
 +
 +
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
  
 
==== Ban/Kick ====
 
==== Ban/Kick ====
Line 832: Line 1,035:
 
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:Player:SoftDisconnect|SoftDisconnect()]]
 
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:Player:SoftDisconnect|SoftDisconnect()]]
 
|}
 
|}
 +
 +
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
  
 
==== Misc ====
 
==== Misc ====
Line 883: Line 1,090:
 
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:Player:GetGlyph|GetGlyph]]( [[LuaBridge:uint32|uint32]] slot )
 
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:Player:GetGlyph|GetGlyph]]( [[LuaBridge:uint32|uint32]] slot )
 
|}
 
|}
 +
 +
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
  
 
==== Targetting ====
 
==== Targetting ====
Line 902: Line 1,113:
 
| [[LuaBridge:Methods#GameObject|GameObject]] || [[LuaBridge:Methods:Player:GetSelectedGO|GetSelectedGO()]]
 
| [[LuaBridge:Methods#GameObject|GameObject]] || [[LuaBridge:Methods:Player:GetSelectedGO|GetSelectedGO()]]
 
|}
 
|}
 +
 +
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
  
 
==== Gold/Honor/XP ====
 
==== Gold/Honor/XP ====
Line 937: Line 1,152:
 
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:Player:SetNextLevelXP|SetNextLevelXP]]( [[LuaBridge:uint32|uint32]] xp_to_set )
 
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:Player:SetNextLevelXP|SetNextLevelXP]]( [[LuaBridge:uint32|uint32]] xp_to_set )
 
|}
 
|}
 +
 +
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
  
 
=== WorldSession ===
 
=== WorldSession ===
Line 952: Line 1,171:
 
|}
 
|}
  
=== Movement Info ===
+
 
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
 
 +
 
 +
=== MovementInfo ===
 
A player structure that contains movement data.
 
A player structure that contains movement data.
 
{| class="wikitable"
 
{| class="wikitable"
Line 959: Line 1,182:
 
| [[LuaBridge:uint32|uint32]] || [[LuaBridge:Methods:MovementInfo:flags|flags]]
 
| [[LuaBridge:uint32|uint32]] || [[LuaBridge:Methods:MovementInfo:flags|flags]]
 
|}
 
|}
 +
 +
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
 +
 +
=== ItemInterface ===
 +
This class handles item manipulation and is coupled w/ a player object.
 +
{| class="wikitable"
 +
! return type !! method proto
 +
|-
 +
| [[LuaBridge:Methods#Player|Player]] || [[LuaBridge:Methods:ItemInterface:GetOwner|GetOwner()]]
 +
|-
 +
| [[LuaBridge:boolean|bool]] || [[LuaBridge:Methods:ItemInterface:IsBagSlot|IsBagSlot]]( [[LuaBridge:uint32|uint32]] slot )
 +
|-
 +
| [[LuaBridge:Methods#Item|Item]] || [[LuaBridge:Methods:ItemInterface:GetInventoryItem|GetInventoryItem]]( [[LuaBridge:int8|int8]] slot_of_bag, [[LuaBridge:int32|int32]] slot_in_bag )
 +
|-
 +
| [[LuaBridge:Methods:int32|int32]] || [[LuaBridge:Methods:ItemInterface:GetInventorySlotByID|GetInventorySlotByID]]( [[LuaBridge:uint32|uint32]] item_id )
 +
|-
 +
| [[LuaBridge:boolean|bool]] || [[LuaBridge:Methods:ItemInterface:RemoveItemFromSlot|RemoveItemFromSlot]]( [[LuaBridge:int8|int8]] slot_of_bag, [[LuaBridge:int32|int32]] slot_in_bag )
 +
|-
 +
| [[LuaBridge:uint32|uint32]] || [[LuaBridge:Methods:ItemInterface:AddItemToFreeSlot|AddItemToFreeSlot]]( [[LuaBridge:Methods#Item|Item]] item_to_add )
 +
|-
 +
| [[LuaBridge:uint32|uint32]] || [[LuaBridge:Methods:ItemInterface:AddItemToFreeBankSlot|AddItemToFreeBankSlot]]( [[LuaBridge:Methods#Item|Item]] item_to_add )
 +
|-
 +
| [[LuaBridge:uint32|uint32]] || [[LuaBridge:Methods:ItemInterface:GetItemCount|GetItemCount]]( [[LuaBridge:uint32|uint32]] item_id, [[LuaBridge:boolean|bool]] include_bank )
 +
|-
 +
| [[LuaBridge:uint32|uint32]] || [[LuaBridge:Methods:ItemInterface:RemoveItemAmount|RemoveItemAmount]]( [[LuaBridge:uint32|uint32]] item_id, [[LuaBridge:uint32|uint32]] amount_to_remove )
 +
|-
 +
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:ItemInterface:RemoveAllConjured|RemoveAllConjured()]]
 +
|-
 +
| [[LuaBridge:int8|int8]] || [[LuaBridge:Methods:ItemInterface:FindFreeBackPackSlot|FindFreeBackPackSlot()]]
 +
|-
 +
| [[LuaBridge:uint8|uint8]] || [[LuaBridge:Methods:ItemInterface:FindFreeBackPackSlotMax|FindFreeBackPackSlotMax()]]
 +
|-
 +
| [[LuaBridge:int8|int8]] || [[LuaBridge:Methods:ItemInterface:FindFreeKeyringSlot|FindFreeKeyringSlot()]]
 +
|-
 +
| [[LuaBridge:boolean|bool]] || [[LuaBridge:Methods:ItemInterface:IsEquipped|IsEquipped]]( [[LuaBridge:uint32|uint32]] item_id )
 +
|-
 +
| [[LuaBridge:boolean|bool]] || [[LuaBridge:Methods:ItemInterface:AddItemByID|AddItemByID]]( [[LuaBridge:uint32|uint32]] item_id, [[LuaBridge:uint32|uint32]] item_count, [[LuaBridge:int32|int32]] random_prop = 0 )
 +
|}
 +
 +
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
  
 
== Global Methods ==
 
== Global Methods ==
[[LuaBridge_Global_LuaPacket|LuaPacket(opcode, size)]]<br /> - Creates a LuaPacket object so that you can use [[LuaBridge_Methods#Packet_Methods|Packet Methods]]<br /> on it.<br />
+
=== Event Registering/Creation ===
[[LuaBridge_Global_CreateLuaEvent|CreateLuaEvent()]]<br />
+
{| class="wikitable"
[[LuaBridge_Global_ModifyLuaEventInterval|ModifyLuaEventInterval()]]<br />
+
! return type !! function proto
[[LuaBridge_Global_ModifyLuaEventTimer|ModifyLuaEventTimer()]]<br />
+
|-
[[LuaBridge_Global_DestroyLuaEvent|DestroyLuaEvent()]]<br />
+
| [[LuaBridge:boolean|bool]] || [[LuaBridge:Methods:Global:RegisterServerHook|RegisterServerHook]]( [[LuaBridge:uint32|uint32]] server_enter_to_hook, [[LuaBridge:lua_function|lua_function]] callback_function )
[[LuaBridge_Global_getregistry|getregistry()]]<br />
+
|-
[[LuaBridge_Global_TO_PLAYER|TO_PLAYER()]]<br />
+
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:Global:RegisterCreatureEvent|RegisterCreatureEvent]]( [[LuaBridge:uint32|uint32]] creature_id, [[LuaBridge:uint32|uint32]] creature_event_to_hook, [[LuaBridge:lua_function|lua_function]] callback_function)
[[LuaBridge_Global_TO_CREATURE|TO_CREATURE()]]<br />
+
|-
[[LuaBridge_Global_TO_ITEM|TO_ITEM()]]<br />
+
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:Global:RegisterQuestEvent|RegisterQuestEvent]]( [[LuaBridge:uint32|uint32]] quest_id, [[LuaBridge:uint32|uint32]] quest_event_to_hook, [[LuaBridge:lua_function|lua_function]] callback_function)
[[LuaBridge_Global_TO_UNIT|TO_UNIT()]]<br />
+
|-
[[LuaBridge_Global_TO_GAMEOBJECT|TO_GAMEOBJECT()]]<br />
+
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:Global:RegisterGameObjectEvent|RegisterGameObjectEvent]]( [[LuaBridge:uint32|uint32]] gameobject_id, [[LuaBridge:uint32|uint32]] gameobject_event_to_hook, [[LuaBridge:lua_function|lua_function]] callback_function)
[[LuaBridge_Global_GetGameTime|GetGameTime()]]<br />
+
|-
[[LuaBridge_Global_GetPlayer|GetPlayer()]]<br />
+
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:Global:RegisterInstanceEvent|RegisterInstanceEvent]]( [[LuaBridge:uint32|uint32]] map_id, [[LuaBridge:uint32|uint32]] instance_event_to_hook, [[LuaBridge:lua_function|lua_function]] callback_function)
[[LuaBridge_Global_GetEngineName|GetEngineName()]]<br />
+
|-
[[LuaBridge_Global_GetEngineVersion|GetEngineVersion()]]<br />
+
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:Global:RegisterCreatureGossip|RegisterCreatureGossip]]( [[LuaBridge:uint32|uint32]] creature_id, [[LuaBridge:uint32|uint32]] gossip_event_to_hook, [[LuaBridge:lua_function|lua_function]] callback_function)
[[LuaBridge_Global_logcolor|logcolor()]]<br />
+
|-
[[LuaBridge_Global_WorldDBQuery|WorldDBQuery()]]<br />
+
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:Global:RegisterItemGossip|RegisterItemGossip]]( [[LuaBridge:uint32|uint32]] item_id, [[LuaBridge:uint32|uint32]] gossip_event_to_hook, [[LuaBridge:lua_function|lua_function]] callback_function)
[[LuaBridge_Global_CharDBQuery|CharDBQuery()]]<br />
+
|-
[[LuaBridge_Global_SendWorldMessage|SendWorldMessage()]]<br />
+
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:Global:RegisterGOGossip|RegisterGOGossip]]( [[LuaBridge:uint32|uint32]] gameobject_id, [[LuaBridge:uint32|uint32]] gossip_event_to_hook, [[LuaBridge:lua_function|lua_function]] callback_function)
[[LuaBridge_Global_ReloadTable|ReloadTable()]]<br />
+
|-
[[LuaBridge_Global_ReloadLuaEngine|ReloadLuaEngine()]]<br />
+
| [[LuaBridge:boolean|bool]] || [[LuaBridge:Methods:Global:RegisterDummySpell|RegisterDummySpell]]( [[LuaBridge:uint32|uint32]] spell_id, [[LuaBridge:lua_function|lua_function]] callback_function, [[LuaBridge:varags|...]] args_to_pass)
[[LuaBridge_Global_GetPlayersInWorld|GetPlayersInWorld()]]<br />
+
|-
[[LuaBridge_Global_Rehash|Rehash()]]<br />
+
| [[LuaBridge:int32|int32]] || [[LuaBridge:Methods:Global:CreateLuaEvent|CreateLuaEvent]]( [[LuaBridge:lua_function|lua_function]] callback_function, [[LuaBridge:uint32|uint32]] callback_delay, [[LuaBridge:uint32|uint32]] callback_repeats )
[[LuaBridge_Global_GetArcemuRevision|GetArcemuRevision()]]<br />
+
|-
[[LuaBridge_Global_GetPlayersInMap|GetPlayersInMap()]]<br />
+
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:Global:ModifyLuaEventInterval|ModifyLuaEventInterval]]( [[LuaBridge:int32|int32]] event_id, [[LuaBridge:uint32|uint32]] new_callback_delay )
[[LuaBridge_Global_GetPlayersInZone|GetPlayersInZone()]]<br />
+
|-
[[LuaBridge_Global_bit_and|bit_and()]]<br />
+
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:Global:DestroyLuaEvent|DestroyLuaEvent]]( [[LuaBridge:int32|int32]] event_id )
[[LuaBridge_Global_bit_or|bit_or()]]<br />
+
|}
[[LuaBridge_Global_bit_xor|bit_xor()]]<br />
+
 
[[LuaBridge_Global_bit_not|bit_not()]]<br />
+
 
[[LuaBridge_Global_bit_shiftleft|bit_shiftleft()]]<br />
+
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
[[LuaBridge_Global_bit_shiftright|bit_shiftright()]]<br />
+
 
[[LuaBridge_Global_GetPlatform|GetPlatform()]]<br />
+
 
[[LuaBridge_Global_SendPacketToZone|SendPacketToZone()]]<br />
+
=== Timed Coroutines ===
[[LuaBridge_Global_SendPacketToInstance|SendPacketToInstance()]]<br />
+
{| class="wikitable"
[[LuaBridge_Global_SendPacketToWorld|SendPacketToWorld()]]<br />
+
! return type !! method proto
[[LuaBridge_Global_SendPacketToChannel|SendPacketToChannel()]]<br />
+
|-
[[LuaBridge_Global_GetInstanceCreature|GetInstanceCreature()]]<br />
+
| [[LuaBridge:int32|int32]] || [[LuaBridge:Methods:Global:SuspendLuaThread|SuspendLuaThread]](  [[LuaBridge:coroutine|coroutine]] coroutine_to_yield, [[LuaBridge:uint32|uint32]] yield_duration, [[LuaBridge:varargs|...]] args_to_save)
[[LuaBridge_Global_GetInstancePlayerCount|GetInstancePlayerCount()]]<br />
+
|}
[[LuaBridge_Global_GetPlayersInInstance|GetPlayersInInstance()]]<br />
+
 
=== DBC Spell ===
+
 
''' This is executed on dbcSpell. This is a global variable. '''<br />
+
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
[[LuaBridge_dbcSpell_LookupEntry|:LookupEntry()]]<br />
+
 
[[LuaBridge_dbcSpell_GetNumRows|:GetNumRows()]]<br />
+
 
[[LuaBridge_dbcSpell_LookupEntryForced|:LookupEntryForced()]]<br />
+
=== Object Type Casting ===
=== SQL Query ===
+
{| class="wikitable"
''' These are executed on WorldDB or CharacterDB. Both of these are global variables. '''<br />
+
! return type !! method proto
[[LuaBridge_SQLQuery_Query|:Query()]]<br />
+
|-
[[LuaBridge_SQLQuery_Execute|:Execute()]]<br />
+
| [[LuaBridge:Methods#Player|Player]] || [[LuaBridge:Methods:Global:TO_PLAYER|TO_PLAYER]]( [[LuaBridge:Methods#Object|Object]] object_to_cast )
== Map Methods ==
+
|-
[[LuaBridge_MapMgr_GetMapID|:GetMapID()]]<br />
+
| [[LuaBridge:Methods#Creature|Creature]] || [[LuaBridge:Methods:Global:TO_CREATURE|TO_CREATURE]]( [[LuaBridge:Methods#Object|Object]] object_to_cast )
[[LuaBridge_MapMgr_GetObject|:GetObject()]]<br />
+
|-
[[LuaBridge_MapMgr_CreateGameObject|:CreateGameObject()]]<br />
+
| [[LuaBridge:Methods#Item|Item]] || [[LuaBridge:Methods:Global:TO_ITEM|TO_ITEM]]( [[LuaBridge:Methods#Object|Object]] object_to_cast )
[[LuaBridge_MapMgr_CreateAndSpawnGameObject|:CreateAndSpawnGameObject()]]<br />
+
|-
[[LuaBridge_MapMgr_GetGameObject|:GetGameObject()]]<br />
+
| [[LuaBridge:Methods#Container|Container]] || [[LuaBridge:Methods:Global:TO_CONTAINER|TO_CONTAINER]]( [[LuaBridge:Methods#Object|Object]] object_to_cast )
[[LuaBridge_MapMgr_GetCreature|:GetCreature()]]<br />
+
|-
[[LuaBridge_MapMgr_GetMapInfo|:GetMapInfo()]]<br />
+
| [[LuaBridge:Methods#Unit|Unit]] || [[LuaBridge:Methods:Global:TO_UNIT|TO_UNIT]]( [[LuaBridge:Methods#Object|Object]] object_to_cast )
[[LuaBridge_MapMgr_CreateCreature|:CreateCreature()]]<br />
+
|-
[[LuaBridge_MapMgr_CreateDynamicObject|:CreateDynamicObject()]]<br />
+
| [[LuaBridge:Methods#GameObject|GameObject]] || [[LuaBridge:Methods:Global:TO_GAMEOBJECT|TO_GAMEOBJECT]]( [[LuaBridge:Methods#Object|Object]] object_to_cast )
[[LuaBridge_MapMgr_GetDynamicObject|:GetDynamicObject()]]<br />
+
|}
[[LuaBridge_MapMgr_GetPlayer|:GetPlayer()]]<br />
+
 
[[LuaBridge_MapMgr_GetInstanceID|:GetInstanceID()]]<br />
+
 
[[LuaBridge_MapMgr_GetInterface|:GetInterface()]]<br />
+
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
[[LuaBridge_MapMgr_HasPlayers|:HasPlayers()]]<br />
+
 
[[LuaBridge_MapMgr_GetPlayerCount|:GetPlayerCount()]]<br />
+
 
[[LuaBridge_MapMgr_GetSqlIdCreature|:GetSqlIdCreature()]]<br />
+
=== Bitwise Operators ===
[[LuaBridge_MapMgr_GetSqlIdGameObject|:GetSqlIdGameObject()]]<br />
+
{| class="wikitable"
=== Map Script Interface ===
+
! return type !! method proto
[[LuaBridge_MapScriptInterface_GetGameObjectNearestCoords|:GetGameObjectNearestCoords(GetGameObjectNearestCoords)]]<br />
+
|-
[[LuaBridge_MapScriptInterface_GetCreatureNearestCoords|:GetCreatureNearestCoords(GetCreatureNearestCoords)]]<br />
+
| [[LuaBridge:uint32|uint32]] || [[LuaBridge:Methods:Global:bit_and|bit_and]]( [[LuaBridge:uint32|uint32]] left_operand, [[LuaBridge:varargs|...]] right_operands )
[[LuaBridge_MapScriptInterface_GetPlayerNearestCoords|:GetPlayerNearestCoords(GetPlayerNearestCoords)]]<br />
+
|-
[[LuaBridge_MapScriptInterface_SpawnCreature|:SpawnCreature(uint32,float,float,float,float,bool,bool,uint32,uint32,uint32)]]<br />
+
| [[LuaBridge:uint32|uint32]] || [[LuaBridge:Methods:Global:bit_or|bit_or]]( [[LuaBridge:uint32|uint32]] left_operand, [[LuaBridge:varargs|...]] right_operands )
[[LuaBridge_MapScriptInterface_SpawnGameObject|:SpawnGameObject(uint32,float,float,float,float,bool,uint32,uint32,uint32)]]<br />
+
|-
 +
| [[LuaBridge:uint32|uint32]] || [[LuaBridge:Methods:Global:bit_xor|bit_xor]]( [[LuaBridge:uint32|uint32]] left_operand, [[LuaBridge:varargs|...]] right_operands )
 +
|-
 +
| [[LuaBridge:uint32|uint32]] || [[LuaBridge:Methods:Global:bit_not|bit_not]]( [[LuaBridge:uint32|uint32]] operand_to_negate )
 +
|-
 +
| [[LuaBridge:uint32|uint32]] || [[LuaBridge:Methods:Global:bit_shiftleft|bit_shiftleft]]( [[LuaBridge:uint32|uint32]] operand_to_shift, [[LuaBridge:uint8|uint8]] shift_count)
 +
|-
 +
| [[LuaBridge:uint32|uint32]] || [[LuaBridge:Methods:Global:bit_shiftright|bit_shiftright]]( [[LuaBridge:uint32|uint32]] operand_to_shift, [[LuaBridge:uint8|uint8]] shift_count)
 +
|}
 +
 
 +
 
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
 
 +
 
 +
=== Misc ===
 +
{| class="wikitable"
 +
! return type !! method proto
 +
|-
 +
| [[LuaBridge:table|table]] || [[LuaBridge:Methods:Global:GetRegistry|GetRegistry]]( [[LuaBridge:string|string]] table_name )
 +
|-
 +
| [[LuaBridge:uint32|uint32]] || [[LuaBridge:Methods:Global:GetGameTime|GetGameTime()]]
 +
|-
 +
| [[LuaBridge:Methods#Player|Player]] || [[LuaBridge:Methods:Global:GetPlayer|GetPlayer]]( [[LuaBridge:string|string]] player_character_name )
 +
|-
 +
| [[LuaBridge:string|string]] || [[LuaBridge:Methods:Global:GetEngineName|GetEngineName()]]
 +
|-
 +
| [[LuaBridge:uint32|uint32]] || [[LuaBridge:Methods:Global:GetEngineVersion|GetEngineVersion()]]
 +
|-
 +
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:Global:SetConsoleColor|SetConsoleColor]]( [[LuaBridge:uint32|uint32]] color_number )
 +
|-
 +
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:Global:SendWorldMessage|SendWorldMessage]]( [[LuaBridge:string|string]] message_to_send, [[LuaBridge:uint32|uint32]] message_type )
 +
|-
 +
| [[LuaBridge:table|table]]<[[LuaBridge:Methods#Player|Player]]> || [[LuaBridge:Methods:Global:GetPlayersInWorld|GetPlayersInWorld()]]
 +
|-
 +
| [[LuaBridge:table|table]]<[[LuaBridge:Methods#Player|Player]]> || [[LuaBridge:Methods:Global:GetPlayersInMap|GetPlayersInMap]]( [[LuaBridge:uint32|uint32]] map_id )
 +
|-
 +
| [[LuaBridge:table|table]]<[[LuaBridge:Methods#Player|Player]]> || [[LuaBridge:Methods:Global:GetPlayersInZone|GetPlayersInZone]]( [[LuaBridge:uint32|uint32]] zone_id)
 +
|-
 +
| [[LuaBridge:string|string]] || [[LuaBridge:Method:Global:GetPlatform|GetPlatform()]]
 +
|-
 +
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:Global:SendPacketToZone|SendPacketToZone]]( [[LuaBridge:Methods#WorldPacket|WorldPacket]] packet_to_send, [[LuaBridge:uint32|uint32]] zone_id )
 +
|-
 +
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:Global:SendPacketToInstance|SendPacketToInstance]]( [[LuaBridge:Methods#WorldPacket|WorldPacket]] packet_to_send, [[LuaBridge:uint32|uint32]] map_id )
 +
|-
 +
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:Global:SendPacketToWorld|SendPacketToWorld]]( [[LuaBridge:Methods#WorldPacket|WorldPacket]] packet_to_send )
 +
|-
 +
| [[LuaBridge:boolean|bool]] || [[LuaBridge:Methods:Global:include|include]]( [[LuaBridge:string|string]] script_filename, [[LuaBridge:boolean|bool]] once )
 +
|}
 +
 
 +
 
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
 
 +
 
 +
== Global Objects ==
 +
Some classes in core are singletons. Meaning that there can only be one instance of that class. Such classes are pushed to Lua as global objects. They may or may not have static methods so always look out for static method tables.
 +
=== dbcSpell ===
 +
{| class="wikitable"
 +
! return type !! method proto
 +
|-
 +
| [[LuaBridge:Methods#SpellEntry|SpellEntry]] || [[LuaBridge:Methods:dbcSpell:LookupEntryForced|LookupEntryForced]]( [[LuaBridge:uint32|uint32]] spell_entry )
 +
|-
 +
| [[LuaBridge:uint32|uint32]] || [[LuaBridge:Methods:dbcSpell:GetNumRows|GetNumRows()]]
 +
|}
 +
 
 +
 
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
 
 +
 
 +
=== WorldDB and CharacterDB ===
 +
{| class="wikitable"
 +
! return type !! method proto
 +
|-
 +
| [[LuaBridge:Methods#QueryResult|QueryResult]] || [[LuaBridge:Methods:Database:Query|Query]]( [[LuaBridge:string|string]] sql_statement )
 +
|-
 +
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:Database:Execute|Execute]]( [[LuaBridge:string|string]] sql_statement )
 +
|}
 +
 
 +
 
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
 
 +
 
 +
=== MapMgr ===
 +
{| class ="wikitable"
 +
! return type !! method proto
 +
|-
 +
| [[LuaBridge:uint32|uint32]] || [[LuaBridge:Methods:MapMgr:GetMapID|GetMapID()]]
 +
|-
 +
| [[LuaBridge:Methods#Object|Object]] || [[LuaBridge:Methods:MapMgr:GetObject|GetObject]]( [[LuaBridge:GUID|GUID]] object_guid )
 +
|-
 +
| [[LuaBridge:Methods#GameObject|GameObject]] || [[LuaBridge:Methods:MapMgr:GetGameObject|GetGameObject]]( [[LuaBridge:uint32|uint32]] gameobject_low_guid )
 +
|-
 +
| [[LuaBridge:Methods#Creature|Creature]] || [[LuaBridge:Methods:MapMgr:GetCreature|GetCreature]]( [[LuaBridge:uint32|uint32]] creature_low_guid )
 +
|-
 +
| [[LuaBridge:Methods#Player|Player]] || [[LuaBridge:Methods:MapMgr:GetPlayer|GetPlayer]]( [[LuaBridge:uint32|uint32]] player_low_guid )
 +
|-
 +
| [[LuaBridge:Methods#MapInfo|MapInfo]] || [[LuaBridge:Methods:MapMgr:GetMapInfo|GetMapInfo()]]
 +
|-
 +
| [[LuaBridge:uint32|uint32]] || [[LuaBridge:Methods:MapMgr:GetInstanceID|GetInstanceID()]]
 +
|-
 +
| [[LuaBridge:Methods#MapScriptInterface|MapScriptInterface]] || [[LuaBridge:Methods:MapMgr:GetInterface|GetInterface()]]
 +
|-
 +
| [[LuaBridge:boolean|bool]] || [[LuaBridge:Methods:MapMgr:HasPlayers|HasPlayers()]]
 +
|-
 +
| [[LuaBridge:uint32|uint32]] || [[LuaBridge:Methods:MapMgr:GetPlayerCount|GetPlayerCount()]]
 +
|-
 +
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:MapMgr:SetWorldState|SetWorldState]]( [[LuaBridge:uint32|uint32]] zone_id, [[LuaBridge:uint32|uint32]] index, [[LuaBridge:uint32|uint32]] value )
 +
|-
 +
| [[LuaBridge:Methods#Creature|Creature]] || [[LuaBridge:Methods:MapMgr:GetSqlIdCreature|GetSqlIdCreature]]( [[LuaBridge:uint32|uint32]] creature_sqlid )
 +
|-
 +
| [[LuaBridge:Methods#GameObject|GameObject]] || [[LuaBridge:Methods:MapMgr:GetSqlIdGameObject|GetSqlIdGameObject]]( [[LuaBridge:uint32|uint32]] go_sqlid )
 +
|-
 +
| [[LuaBridge:Methods#DynamicObject|DynamicObject]] || [[LuaBridge:Methods:MapMgr:CreateDynamicObject|CreateDynamicObject()]]
 +
|-
 +
| [[LuaBridge:Methods#DynamicObject|DynamicObject]] || [[LuaBridge:Methods:MapMgr:GetDynamicObject|GetDynamicObject]]( [[LuaBridge:uint32|uint32]]] dygo_low_guid )
 +
|}
 +
 
 +
 
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
 
 +
 
 +
==== MapScriptInterface ====
 +
----
 +
A class that handles retrieval/spawning of any objects on the map.
 +
{| class="wikitable"
 +
! return type !! method proto
 +
|-
 +
| [[LuaBridge:Methods#GameObject|GameObject]] || [[LuaBridge:Methods:MapScriptInterface:GetGameObjectNearestCoords|GetGameObjectNearestCoords]]( [[LuaBridge:float|float]] x, [[LuaBridge:float|float]] y, [[LuaBridge:float|float]] z, [[LuaBridge:uint32|uint32]] gameobject_entry )
 +
|-
 +
| [[LuaBridge:Methods#Creature|Creature]] || [[LuaBridge:Methods:MapScriptInterface:GetCreatureNearestCoords|GetCreatureNearestCoords]]( [[LuaBridge:float|float]] x, [[LuaBridge:float|float]] y, [[LuaBridge:float|float]] z, [[LuaBridge:uint32|uint32]] creature_entry )
 +
|-
 +
| [[LuaBridge:Methods#Player|Player]] || [[LuaBridge:Methods:MapScriptInterface:GetPlayerNearestCoords|GetPlayerNearestCoords]]( [[LuaBridge:float|float]] x, [[LuaBridge:float|float]] y, [[LuaBridge:float|float]] z, [[LuaBridge:uint32|uint32]] player_entry = 0 )
 +
|-
 +
| <small>[[LuaBridge:LCFREQUIRE|LCF]]</small> [[LuaBridge:Methods#Creature|Creature]] || [[LuaBridge:Methods:MapMgr:SpawnCreature|SpawnCreature]]( [[LuaBridge:uint32|uint32]] creature_entry, [[LuaBridge:float|float]] x, [[LuaBridge:float|float]] y, [[LuaBridge:float|float]] z, [[LuaBridge:float|float]] o,  [[LuaBridge:uint32|uint32]] phase )
 +
|-
 +
| <small>[[LuaBridge:LCFREQUIRE|LCF]]</small> [[LuaBridge:Methods#GameObject|GameObject]] || [[LuaBridge:Methods:MapMgr:SpawnGameObject|SpawnGameObject]]( [[LuaBridge:uint32|uint32]] gameobject_entry, [[LuaBridge:float|float]] x, [[LuaBridge:float|float]] y, [[LuaBridge:float|float]] z, [[LuaBridge:float|float]] o,  [[LuaBridge:uint32|uint32]] phase )
 +
|}
 +
 
 +
 
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
 
 +
 
 +
==== MapInfo ====
 +
----
 +
A structure that contains information describing a map
 +
{| class="wikitable"
 +
! property type !! property name
 +
|-
 +
| [[LuaBridge:uint32|uint32]] || [[LuaBridge:Methods:MapInfo:mapid|mapid]]
 +
|-
 +
| [[LuaBridge:uint32|uint32]] || [[LuaBridge:Methods:MapInfo:screenid|screenid]]
 +
|-
 +
| [[LuaBridge:uint32|uint32]] || [[LuaBridge:Methods:MapInfo:type|type]]
 +
|-
 +
| [[LuaBridge:uint32|uint32]] || [[LuaBridge:Methods:MapInfo:playerlimit|playerlimit]]
 +
|-
 +
| [[LuaBridge:uint32|uint32]] || [[LuaBridge:Methods:MapInfo:minlevel|minlevel]]
 +
|-
 +
| [[LuaBridge:uint32|uint32]] || [[LuaBridge:Methods:MapInfo:minlevel_heroic|minlevel_heroic]]
 +
|-
 +
| [[LuaBridge:float|float]] || [[LuaBridge:Methods:MapInfo:repopx|repopx]]
 +
|-
 +
| [[LuaBridge:float|float]] || [[LuaBridge:Methods:MapInfo:repopy|repopy]]
 +
|-
 +
| [[LuaBridge:float|float]] || [[LuaBridge:Methods:MapInfo:repopz|repopz]]
 +
|-
 +
| [[LuaBridge:string|string]] || [[LuaBridge:Methods:MapInfo:name|name]]
 +
|-
 +
| [[LuaBridge:uint32|uint32]] || [[LuaBridge:Methods:MapInfo:flags|flags]]
 +
|-
 +
| [[LuaBridge:uint32|uint32]] || [[LuaBridge:Methods:MapInfo:cooldown|cooldown]]
 +
|-
 +
| [[LuaBridge:uint32|uint32]] || [[LuaBridge:Methods:MapInfo:required_quest|required_quest]]
 +
|-
 +
| [[LuaBridge:uint32|uint32]] || [[LuaBridge:Methods:MapInfo:required_item|required_item]]
 +
|-
 +
| [[LuaBridge:uint32|uint32]] || [[LuaBridge:Methods:MapInfo:heroic_key_1|heroic_key_1]]
 +
|-
 +
| [[LuaBridge:uint32|uint32]] || [[LuaBridge:Methods:MapInfo:heroic_key_2|heroic_key_2]]
 +
|}
 +
{| class="wikitable"
 +
! return type !! method proto
 +
|-
 +
| [[LuaBridge:boolean|bool]] || [[LuaBridge:Methods:MapInfo:HasFlag|HasFlag]]( [[LuaBridge:uint32|uint32]] flag_to_check )
 +
|}
 +
 
 +
 
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
 
 +
 
 +
=== sChatHandler ===
 +
{| class="wikitable"
 +
! return type !! method proto
 +
|-
 +
| [[LuaBridge:Methods#WorldPacket|WorldPacket]] || [[LuaBridge:Methods:ChatHandler:FillMessageData|FillMessageData]]( [[LuaBridge:uint32|uint32]] chat_type, [[LuaBridge:uint32|uint32]] language_type, [[LuaBridge:string|string]] message, [[LuaBridge:GUID|GUID]] speaker, [[LuaBridge:uint32|uint32]] flag )
 +
|-
 +
| [[LuaBridge:Methods#WorldPacket|WorldPacket]] || [[LuaBridge:Methods:ChatHandler:FillSystemMessageData|FillSystemMessageData]]( [[LuaBridge:string|string]] message )
 +
|}
 +
 
 +
 
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
 
 +
 
 +
=== sMailSystem ===
 +
{| class="wikitable"
 +
! return type !! method proto
 +
|-
 +
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:MailSystem:SendAutomatedMessage|SendAutomatedMessage]]([[LuaBridge:uint32|uint32]] type, [[LuaBridge:uint64|uint64]] sender, [[LuaBridge:uint64|uint64]] receiver, [[LuaBridge:string|string]] subject, [[LuaBridge:string|string]] body, [[LuaBridge:uint32|uint32]] money, [[LuaBridge:uint32|uint32]] cod, [[LuaBridge:uint64|uint64]] item_guid, [[LuaBridge:uint32|uint32]] stationery)
 +
|}
 +
 
 +
 
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
 
 +
 
 +
=== sTaxiMgr ===
 +
{| class="wikitable"
 +
! return type !! method proto
 +
|-
 +
| [[LuaBridge:Methods#TaxiNode|TaxiNode]] || [[LuaBridge:Methods:TaxiMgr:GetTaxiNode|GetTaxiNode]]( [[LuaBridge:uint32|uint32]] node_number )
 +
|-
 +
| [[LuaBridge:Methods#TaxiPath|TaxiPath]] || [[LuaBridge:Methods:TaxiMgr:GetTaxiPath|GetTaxiPath]]( [[LuaBridge:uint32|uint32]] path_number )
 +
|-
 +
| [[LuaBridge:Methods#TaxiPath|TaxiPath]] || [[LuaBridge:Methods:TaxiMgr:GetTaxiPathFT|GetTaxiPathFT]]( [[LuaBridge:uint32|uint32]] from, [[LuaBridge:uint32|uint32]] to )
 +
|-
 +
| [[LuaBridge:uint32|uint32]] || [[LuaBridge:Methods:TaxiMgr:GetNearestTaxiNode|GetNearestTaxiNode]]( [[LuaBridge:float|float]] x, [[LuaBridge:float|float]] y, [[LuaBridge:float|float]] z, [[LuaBridge:uint32|uint32]] map_id )
 +
|}
 +
 
 +
 
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
 
 +
 
 +
==== TaxiPath ====
 +
{| class="wikitable"
 +
! return type !! method proto
 +
|-
 +
| [[LuaBridge:Methods#TaxiPath|TaxiPath]] || [[LuaBride:Methods:TaxiPath:TaxiPath|TaxiPath()]]
 +
|-
 +
| [[LuaBridge:uint32|uint32]] || [[LuaBridge:Methods:TaxiPath:GetID|GetID()]]
 +
|-
 +
| [[LuaBridge:uint32|uint32]] || [[LuaBridge:Methods:TaxiPath:GetNodeCount|GetNodeCount()]]
 +
|-
 +
| [[LuaBridge:uint32|uint32]] || [[LuaBridge:Methods:TaxiPath:GetPrice|GetPrice()]]
 +
|}
 +
 
 +
 
 +
'''Source(s):''' [http://www.downloadranking.com  LuaBridge:Methods]
 +
 
 +
 
 +
==== TaxiNode ====
 +
{| class="wikitable"
 +
! return type !! method proto
 +
|-
 +
| [[LuaBridge:Methods#TaxiNode|TaxiNode]] || [[LuaBridge:Methods:TaxiNode:TaxiNode|TaxiNode()]]
 +
|-
 +
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:TaxiNode:Destroy|Destroy()]]
 +
|}
 +
{| class="wikitable"
 +
! property type !! property name
 +
|-
 +
| [[LuaBridge:float|float]] || [[LuaBridge:Methods:TaxiNode:x|x]]
 +
|-
 +
| [[LuaBridge:float|float]] || [[LuaBridge:Methods:TaxiNode:y|y]]
 +
|-
 +
| [[LuaBridge:float|float]] || [[LuaBridge:Methods:TaxiNode:z|z]]
 +
|-
 +
| [[LuaBridge:uint32|uint32]] || [[LuaBridge:Methods:TaxiNode:id|id]]
 +
|-
 +
| [[LuaBridge:uint32|uint32]] || [[LuaBridge:Methods:TaxiNode:mapid|mapid]]
 +
|-
 +
| [[LuaBridge:uint32|uint32]] || [[LuaBridge:Methods:TaxiNode:alliance_mount|alliance_mount]]
 +
|-
 +
| [[LuaBridge:uint32|uint32]] || [[LuaBridge:Methods:TaxiNode:horde_mount|horde_mount]]
 +
|}
 +
 
 +
 
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
 
 +
 
 +
== Item ==
 +
{| class="wikitable"
 +
! return type !! method proto
 +
|}
 +
 
 +
 
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
 
 +
 
 +
=== ItemPrototype ===
 +
{| class="wikitable"
 +
! property type !! property name
 +
|}
 +
 
 +
 
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
 
 +
 
 +
== Container ==
 +
Container inherits Item, so all Item methods can be used on Containers. Containers are a kind of item that can be used as bags, or hold other items.
 +
{| class="wikitable"
 +
! return type !! method proto
 +
|-
 +
| [[LuaBridge:uint32|uint32]] || [[LuaBridge:Methods:Container:GetNumSlots|GetNumSlots()]]
 +
|-
 +
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:Container:SetNumSlots|SetNumSlots]]([[LuaBridge:uint32|uint32]] num)
 +
|-
 +
| [[LuaBridge:bool|bool]] || [[LuaBridge:Methods:Container:AddItem|AddItem]]([[LuaBridge:uint32|uint32]] slot, [[LuaBridge:Methods#Item|Item]] item)
 +
|-
 +
| [[LuaBridge:bool|bool]] || [[LuaBridge:Methods:Container:AddItemToFreeSlot|AddItemToFreeSlo]]t([[LuaBridge:Methods#Item|Item]] item)
 +
|-
 +
| [[LuaBridge:Methods#Item|Item]] || [[LuaBridge:Methods:Container:GetItem|GetItem]]([[LuaBridge:uint32|uint32]] slot)
 +
|-
 +
| [[LuaBridge:int8|int8]] || [[LuaBridge:Methods:Container:FindFreeSlot|FindFreeSlot()]]
 +
|-
 +
| [[LuaBridge:bool|bool]] || [[LuaBridge:Methods:Container:HasItems|HasItems()]]
 +
|-
 +
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:Container:SwapItems|SwapItems]]([[LuaBridge:int8|int8]] srcSlot, [[LuaBridge:int8|int8]] dstSlot)
 +
|-
 +
| [[LuaBridge:bool|bool]] || [[LuaBridge:Methods:Container:SafeFullRemoveItemFromSlot|SafeFullRemoveItemFromSlot]]([[LuaBridge:int16|int16]] slot)
 +
|-
 +
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:Container:SetSlot|SetSlot]]([[LuaBridge:int16|int16]] slot, [[LuaBridge:uint64|uint64]] guid)
 +
|-
 +
| [[LuaBridge:uint64|uint64]] || [[LuaBridge:Methods:Container:GetSlot|GetSlot]]([[LuaBridge:int16|int16]] slot)
 +
|}
 +
 
 +
 
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
 
 +
 
 +
== WorldPacket ==
 +
This class is what holds data to be sent over the network.
 +
{| class="wikitable"
 +
! return type !! method proto
 +
|-
 +
| [[LuaBridge:Methods#WorldPacket|WorldPacket]] || [[LuaBridge:Methods:WorldPacket:WorldPacket|WorldPacket]]( [[LuaBridge:uint32|uint32]] opcode, [[LuaBridge:uint32|uint32]] capacity )
 +
|-
 +
| [[LuaBridge:uint32|uint32]] || [[LuaBridge:Methods:WorldPacket:GetOpcode|GetOpcode()]]
 +
|-
 +
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:WorldPacket:Clear|Clear()]]
 +
|-
 +
| [[LuaBridge:uint32|uint32]] || [[LuaBridge:Methods:WorldPacket:Size|Size()]]
 +
|-
 +
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:WorldPacket:WriteInt8|WriteInt8]]( [[LuaBridge:int32|int32]] value_to_write )
 +
|-
 +
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:WorldPacket:WriteUInt8|WriteUInt8]]( [[LuaBridge:uint32|uint32]] value_to_write )
 +
|-
 +
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:WorldPacket:WriteInt16|WriteInt16]]( [[LuaBridge:int32|int32]] value_to_write )
 +
|-
 +
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:WorldPacket:WriteUInt16|WriteUInt16]]( [[LuaBridge:uint32|uint32]] value_to_write )
 +
|-
 +
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:WorldPacket:WriteInt32|WriteInt32]]( [[LuaBridge:int32|int32]] value_to_write )
 +
|-
 +
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:WorldPacket:WriteUInt32|WriteUInt32]]( [[LuaBridge:uint32|uint32]] value_to_write )
 +
|-
 +
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:WorldPacket:WriteFloat|WriteFloat]]( [[LuaBridge:float|float]] value_to_write )
 +
|-
 +
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:WorldPacket:WriteDouble|WriteDouble]]( [[LuaBridge:double|double]] value_to_write )
 +
|-
 +
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:WorldPacket:WriteString|WriteString]]( [[LuaBridge:string|string]] string_to_write )
 +
|-
 +
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:WorldPacket:WriteGUID|WriteGUID]]( [[LuaBridge:GUID|GUID]] guid_to_write )
 +
|-
 +
| [[LuaBridge:void|void]] || [[LuaBridge:Methods:WorldPacket:WriteWoWGUID|WriteWoWGUID]]( [[LuaBridge:wowguid|WoWGUID]] wowguid_to_write )
 +
|}
 +
 
 +
 
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
 
 +
 
 +
== QueryResult ==
 +
{| class="wikitable"
 +
! return type !! method proto
 +
|-
 +
| [[LuaBridge:boolean|bool]] || [[LuaBridge:Methods:QueryResult:NextRow|NextRow()]]
 +
|-
 +
| [[LuaBridge:uint32|uint32]] || [[LuaBridge:Methods:QueryResult:GetFieldCount|GetFieldCount()]]
 +
|-
 +
| [[LuaBridge:Methods#SQL_Field|SQL_Field]] || [[LuaBridge:Methods:QueryResult:GetColumn|GetColumn]]( [[LuaBridge:uint32|uint32]] column_index )
 +
|-
 +
| [[LuaBridge:uint32|uint32]] || [[LuaBridge:Methods:QueryResult:GetRowCount|GetRowCount()]]
 +
|}
 +
 
 +
 
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
 
 +
 
 +
=== SQL_Field ===
 +
{| class="wikitable"
 +
! return type !! method proto
 +
|-
 +
| [[LuaBrigde:string|string]] || [[LuaBridge:Methods:Field:GetString|GetString()]]
 +
|-
 +
| [[LuaBrigde:int8|int8]] || [[LuaBridge:Methods:Field:GetInt8|GetInt8()]]
 +
|-
 +
| [[LuaBrigde:uint8|uint8]] || [[LuaBridge:Methods:Field:GetUInt8|GetUInt8()]]
 +
|-
 +
| [[LuaBrigde:int16|int16]] || [[LuaBridge:Methods:Field:GetInt16|GetInt16()]]
 +
|-
 +
| [[LuaBrigde:uint16|uint16]] || [[LuaBridge:Methods:Field:GetUInt16|GetUInt16()]]
 +
|-
 +
| [[LuaBrigde:int32|int32]] || [[LuaBridge:Methods:Field:GetInt32|GetInt32()]]
 +
|-
 +
| [[LuaBrigde:uint32|uint32]] || [[LuaBridge:Methods:Field:GetUInt32|GetUInt32()]]
 +
|-
 +
| [[LuaBridge:float|float]] || [[LuaBridge:Methods:Field:GetFloat|GetFloat()]]
 +
|-
 +
| [[LuaBridge:GUID|GUID]] || [[LuaBridge:Methods:Field:GetGUID|GetGUID()]]
 +
|}
 +
 
 +
 
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
 +
 
  
== Taxi Methods ==
 
[[LuaBridge_Taxi_GetTaxiNode|:GetTaxiNode(GetTaxiNode)]]<br />
 
[[LuaBridge_Taxi_GetTaxiPath|:GetTaxiPath(uint32)]]<br />
 
[[LuaBridge_Taxi_GetTaxiPathFT|:GetTaxiPathFT(uint32,uint32)]]<br />
 
[[LuaBridge_Taxi_GetNearestTaxiNode|:GetNearestTaxiNode(GetNearestTaxiNode)]]<br />
 
[[LuaBridge_Taxi_GetID|:GetID(GetID)]]<br />
 
[[LuaBridge_Taxi_AddPathNode|:AddPathNode(AddPathNode)]]<br />
 
[[LuaBridge_Taxi_GetNodeCount|:GetNodeCount(GetNodeCount)]]<br />
 
[[LuaBridge_Taxi_GetPrice|:GetPrice(GetPrice)]]<br />
 
== Packet Methods ==
 
''' These are invoked on LuaPacket objects. '''
 
[[LuaBridge_Packet_opcode|:opcode()]]<br />
 
[[LuaBridge_Packet_clear|:clear()]]<br />
 
[[LuaBridge_Packet_WriteInt8|:WriteInt8()]]<br />
 
[[LuaBridge_Packet_WriteUInt8|:WriteUInt8()]]<br />
 
[[LuaBridge_Packet_WriteInt16|:WriteInt16()]]<br />
 
[[LuaBridge_Packet_WriteUInt16|:WriteUInt16()]]<br />
 
[[LuaBridge_Packet_WriteInt32|:WriteInt32()]]<br />
 
[[LuaBridge_Packet_WriteUInt32|:WriteUInt32()]]<br />
 
[[LuaBridge_Packet_WriteWoWGuid|:WriteWoWGuid()]]<br />
 
[[LuaBridge_Packet_size|:size()]]<br />
 
 
== Spell Methods ==
 
== Spell Methods ==
 
[[LuaBridge_Spell_gettype|:gettype()]]<br />
 
[[LuaBridge_Spell_gettype|:gettype()]]<br />
Line 1,070: Line 1,725:
 
[[LuaBridge_Spell_isstealthspell|:isstealthspell()]]<br />
 
[[LuaBridge_Spell_isstealthspell|:isstealthspell()]]<br />
 
[[LuaBridge_Spell_isinvisibilityspell|:isinvisibilityspell()]]<br />
 
[[LuaBridge_Spell_isinvisibilityspell|:isinvisibilityspell()]]<br />
 +
 +
 +
'''Source(s):'''  [http://www.downloadranking.com  LuaBridge:Methods]
  
  
 
[[Category:Lua (LuaBridge)]]<br />
 
[[Category:Lua (LuaBridge)]]<br />

Latest revision as of 01:52, 28 March 2013

Contents


These are the Methods in LuaBridge.

Some method links have not be documented since the method name and parameters is self documenting enough.




Source(s): LuaBridge:Methods


Class Hierarchy

Gossip Menu

GossipMenu : GossipMenu( GUID creature_guid, uint32 text_id, uint32 language )
void : AddItem( uint8 icon, string itemname, uint32 itemid, bool codebox )
void : AddMenuItem( uint8 icon, string itemname, uint32 itemid, uint32 boxmoney, string boxmsg, bool codebox )
void : Send( Player player )
uint32 : GetTextID()
void : SetTextID( uint32 newtextid )
static void : Complete( Player player )
static void : SendSimpleMenu( GUID creature_guid, uint32 text_id, Player player )


Source(s): LuaBridge:Methods


Object

The object class is the highest base class(actually eventableobject is the highest but it's not accessible in Lua since it's purely for utility rather than a standalone class) in Arcemu.

All other classes such as Item, Unit, GameObject, derive from Object. All objects in the Lua environment can access their methods without explicit casting since it's the most basic class.

Methods


Source(s): LuaBridge:Methods


GUID methods


GUID : GetGUID()
uint32 : GetHighGUID()
uint32 : GetLowGUID()
WoWGUID : GetNewGUID()
uint32 : GetEntryFromGUID()


Source(s): LuaBridge:Methods


Class identification methods


uint32 : GetEntry()
uint32 : GetTypeID()
bool : IsUnit()
bool : IsGameObject()
bool : IsPlayer()
bool : IsItem()
bool : IsCreature()
bool : IsPet()


Source(s): LuaBridge:Methods


Position methods


float : GetPositionX()
float : GetPositionY()
float : GetPositionZ()
float : GetOrientation()
void : SetPosition( float newX, float newY, float newZ, float newO )
float : GetSpawnX()
float : GetSpawnY()
float : GetSpawnZ()
float : GetSpawnO()
bool : IsInFront( Object target )
bool : IsBehind( Object target)
bool : IsInArc( Object target, float degrees )
float : CalcAngle( float x1, float y1, float x2, float y2 )
float : CalcRadAngle( float x1, float y1, float x2, float y2 )
uint32 : GetMapID()
uint32 : GetZoneID()
uint32 : SetMapID( uint32 newmapid )
uint32 : SetZoneID( uint32 newzoneid )


Source(s): LuaBridge:Methods


Object Model Manipulation


float : GetScale()
void : SetScale( float newscale )


Source(s): LuaBridge:Methods


Distance Manipulation Methods


float : CalcDistanceToObject( Object )
float : CalcDistanceToLocation( float x, float y, float z )


Source(s): LuaBridge:Methods


Phasing Methods


void : Phase ( uint32 command, uint32 newphase )
uint32 : GetPhase()
LCF void : PhaseAdd( uint32 phasetoadd )
LCF void : PhaseSet( uint32 phasetoset )
LCF void : PhaseDelete( uint32 phasetodelete )


Source(s): LuaBridge:Methods


InRange Objects Methods


table<Object> : GetInRangeOpposingFactions()
table<Object> : GetInRangeSameFactions()
table<Object> : GetInRangeObjects()
LCF table<Player> : GetInRangePlayers()
LCF table<Unit> : GetInRangeAllies()
LCF table<Unit> : GetInRangeEnemies()
LCF table<Unit> : GetRandomAlly()
LCF table<Unit> : GetRandomEnemy()
LCF table<Unit> : GetClosestAlly()
LCF table<Unit> : GetClosestEnemy()
LCF table<Player> : GetClosestPlayer()
LCF table<Player> : GetRandomPlayer( uint32 type )
LCF table<Creature> : GetInRangeCreatures()
LCF table<Unit> : GetInRangeUnits()
LCF table<Creature> : GetFriendlyCreatures()
LCF table<Creature> : GetHostileCreatures()
LCF table<GameObject> : GetInRangeGameObjects()


Source(s): LuaBridge:Methods


Object Flag Methods


uint32 : GetUInt32Value( uint32 field_index)
GUID : GetUInt64Value( uint32 field_index)
void : SetUInt32Value ( uint32 field_index, uint32 newvalue )
void : SetUInt64Value ( uint32 field_index, GUID newguid)
float : GetFloatValue ( uint32 field_index )
void : SetFloatValue ( uint32 field_index, float newvalue )
void : ModFloatValue ( uint32 field_index, float modvalue )
void : ModFloatValueByPCT ( uint32 field_index, int32 percentage )
void : ModUnsigned32Value ( uint32 field_index, int32 modvalue)
void : ModSigned32Value ( uint32 field_index, int32 modvalue)
uint8 : GetByte( uint32 field_index, uint32 byte_index )
void : SetByte( uint32 field_index, uint32 byte_index, uint8 byte_value)
void : SetFlag ( uint32 field_index, uint32 flag_to_append )
void : RemoveFlag ( uint32 field_index, uint32 flag_to_remove)


Source(s): LuaBridge:Methods


Misc Methods


void : PlaySoundToSet( uint32 sound_id )
bool : IsInBg()
bool : IsInWorld()
Spell : GetCurrentSpell()
void : SendPacket( WorldPacket packet )
void : DealDamage( Unit target, uint32 damage, uint32 targetEvent, uint32 spellid, bool no_remove_auras )


Source(s): LuaBridge:Methods


Unit

The Unit class is used to describe players and creatures.

It's effectively an abstract class since you can't instantiate a Unit.

It either has to be a player instantiation or a creature.

Unit derives from Object so it contains all its methods meaning you can call Object methods from a Unit userdata.


Source(s): LuaBridge:Methods


Methods


AIInterface : GetAIInterface()


Source(s): LuaBridge:Methods


PvP Methods


bool : IsPVPFlagged()
void : SetPVPFlag()
void : RemovePVPFlag()
bool : IsFFAPVPFlagged()
void : SetFFAPVPFlag()
void : RemoveFFAPVPFlag()
bool : IsSanctuaryFlagged()
void : SetSanctuaryFlag()
void : RemoveSanctuaryFlag()


Source(s): LuaBridge:Methods


Stat Methods


uint32 : GetLevel()
void : SetLevel( uint32 newlevel )
void : ModLevel( int32 modlevel )
uint32 : GetAP()
uint32 : GetRAP()
int32 : GetStealthLevel()
int32 : GetStealthDetectBonus()
void : SetMinDamage( float mindamage )
float : GetMinDamage()
void : SetMaxDamage( float maxdamage )
float : GetMaxDamage()
void : SetMinOffhandDamage( float minoffhanddamage )
float : GetMinOffhandDamage()
void : SetMaxOffhandDamage( float maxoffhanddamage )
float : GetMaxOffhandDamage()
void : SetStat( uint32 stat_index, uint32 amount )
uint32 : GetStat( uint32 stat_index )
void : SetResistance( uint32 res_index, uint32 amount )
uint32 : GetResistance( uint32 res_index )
void : SetBaseHealth( uint32 basehealth )
void : SetBaseMana( uint32 basemana )
uint32 : GetHealth()
void : SetHealth( uint32 newhealth)
uint32 : GetHealthPct()
void : SetHealthPct( uint32 percent )
uint32 : GetMaxHealth()
void : SetMaxHealth( uint32 newmaxhealth)
void : ModHealth( int32 modamount)
void : ModMaxHealth( int32 modamount)
uint32 : GetPower( uint32 power_type )
void : SetPower( uint32 power_type, uint32 amount )
uint32 : GetMaxPower( uint32 power_type )
void : SetMaxPower( uint32 power_type, uint32 amount )
void : SetManaPct( uint32 percent )


Source(s): LuaBridge:Methods


State Methods


bool : IsCasting()
bool : IsDazed()
bool : IsStealthed()
void  : RemoveStealth()
bool : IsInvisible()
void : SetInvisibility( uint32 id )
void : RemoveInvisibility()
bool : IsAlive()
bool : IsDead()
bool : IsPacified()
bool : IsFeared()
bool : IsStunned()
void : AddStateFlag( uint32 flag )
bool : HasStateFlag( uint32 flag )
void : ClearStateFlag( uint32 flag )
void : EnableAI()
void : DisableAI()
void : SetEmoteState( uint8 emote )
uint32 : GetOldEmote()


Source(s): LuaBridge:Methods


Attributes


uint32 : GetClassMask()
uint32 : GetRaceMask()
uint32 : GetFaction()
void : SetFaction( uint32 faction )
bool : IsSpiritHealer()
uint32 : GetClass()
void : SetClass( uint32 class)
uint32 : GetRace()
void : SetRace( uint32 race)
uint32 : GetPowerType()
void : SetPowerType( uint32 power_type )
uint32 : GetDisplayID()
void : SetDisplayID( uint32 newdisplay )
uint32 : GetDisplayID()
void : SetNativeDisplayID( uint32 newdisplay )


Source(s): LuaBridge:Methods


Combat Methods


return type methods
bool IsAttackReady( bool offhand )
void SetAttackTimer( uint32 time, bool offhand )
CombatStatus CombatStatus
void Heal( Unit target, uint32 spellid, uint32 amount )
void Energize( Unit target, uint32 spellid, uint32 amount, uint32 power_type)
uint32 GetThreatModifyer()
void ModThreatModifyer( int32 mod )


Source(s): LuaBridge:Methods


Messaging Methods

return type method
void SendChatMessage( uint32 chat_type, uint32 language_type, string message, uint32 delay)
void SendChatMessageToPlayer( uint32 chat_type, uint32 language_type, string message, Player plr)
void SendChatMessageAlternateEntry( uint32 creature_entry, uint32 chat_type, uint32 language_type, string message)


Source(s): LuaBridge:Methods


Movement


return type method
float runspeed
float walkspeed
float flyspeed


Source(s): LuaBridge:Methods


Spell/Aura


void : Demorph()
void : CastSpell( Unit target, uint32 spellid, bool triggered)
void : CastSpellAoF( float x, float y, float z, SpellEntry spell, bool triggered)
bool : HasAura( uint32 spellid )
uint32 : GetAuraStackCount( uint32 spellid)
bool : HasAurasWithMechanic( uint32 mechanic)
bool : RemoveAura( uint32 spellid, GUID guid)
bool : RemoveAllAuras( uint32 spellid, GUID guid)
void : RemoveNegativeAuras()
void : RemoveAllNonPersistentAuras()


Source(s): LuaBridge:Methods


CombatStatus


bool : IsInCombat()


Source(s): LuaBridge:Methods


Creature

The Creature class is what all in-game npcs are. It derives from Unit, so it contains all of Units methods.


Source(s): LuaBridge:Methods


Methods



Source(s): LuaBridge:Methods


Attributes


bool : IsVehicle()
bool : IsVendor()
bool : IsTrainer()
bool : IsClassTrainer()
bool : IsProfTrainer()
bool : IsQuestGiver()
bool : IsFlightMaster()
bool : IsCharterGiver()
bool : IsGuildBanker()
bool : IsBattleMaster()
bool : IsBanker()
bool : IsInnKeeper()
bool : IsTabardDesigner()
bool : IsAuctioneer()
bool : IsStableMaster()
bool : IsArmorer()
bool : IsTotem()
bool : IsExotic()
bool : IsCritter()
bool : IsTrainingDummy()
uint32 : GetSQLID()


Source(s): LuaBridge:Methods


Item


bool : HasItems()
uint32 : GetItemIdBySlot( uint32 slot )
uint32 : GetItemAmountBySlot( uint32 slot )
int32 : GetSlotByItemId( uint32 itemid)
uint32 : GetItemAmountByItemId( uint32 itemid)


Source(s): LuaBridge:Methods


Quests


bool : HasQuests()
bool : HasQuest( uint32 questid, uint32 type)
void : AddQuest( QuestRelation quest )
void : DeleteQuest( QuestRelation quest )
Quest : FindQuest( uint32 quest_id, uint8 relation)
uint32 : GetQuestRelation( uint32 quest_id)
uint32 : NumOfQuests()


Source(s): LuaBridge:Methods


Misc


void : RemoveFromWorld( bool free_guid)
CreatureProto : GetProto()
bool : CanSee( Unit target )
uint32 : GetTotemSlot()
Group : GetGroup()
CreatureInfo : GetCreatureInfo()
bool : isSkinned
bool : IsPickPocketed()
bool : Despawn( uint32 delay, uint32 respawndelay )
bool : m_noRespawn
Player : m_escorter
void : SaveToDB()
bool : canregeneratehp
void : RegisterEvent( lua_function function, uint32 delay, uint32 repeats, ... )
void : RemoveEvents()
CreatureAIScript : GetScript()


Source(s): LuaBridge:Methods


CreatureProto

A structure that holds useful information describing a creature. Every unique creature id has a copy of this structure.

property type property name
uint32 Id
uint32 MinLevel
uint32 MaxLevel
uint32 Faction
uint32 MinHealth
uint32 MaxHealth
uint32 Mana
uint32 NPCFlags
uint32 MinDamage
uint32 MaxDamage
uint32 boss
float walk_speed
float run_speed
float fly_speed
uint32 guardtype
uint32 summonguard


Source(s): LuaBridge:Methods


CreatureInfo

Another structure that holds useful information for a creature.

property type property name
uint32 Id
string Name
string SubName
uint32 Type
uint32 Family
uint32 Rank


Source(s): LuaBridge:Methods


CreatureAIScript

This class is what is responsible for calling the method AIUpdate() for creatures.

void : RegisterAIUpdateEvent( uint32 period )
void : ModifyAIUpdateEvent( uint32 newperiod)
void : RemoveAIUpdateEvent()


Source(s): LuaBridge:Methods


AIInterface

This class is what defines AI behavior for creatures.

Methods

return type method name
void SetUnitToFollow( Unit newtarget )
Unit GetUnitToFollow()
void SetFollowDistance( float newdistance )
void SetFollowAngle( float newangle )
Unit GetUnitToFear()
void SetUnitToFear( Unit newtarget )
Unit GetSoullinkedWith()
bool IsSoullinked()
void SetSoulLinkedWith( Unit newtarget )
uint8 GetAIState()
void SetAIState( uint32 newstate )
void MoveTo( float x,float y,float z, float o)
void StopMovement( uint32 stoptime )
bool hasWaypoints()
Unit GetNextTarget()
void SetNextTarget( Unit newtarget )
void AttackReaction( Unit target, uint32 threat, uint32 spellid )
void HealReaction( Unit healer, Unit victim, SpellEntry spell, uint32 amount )
void WipeHateList()
void RemoveThreatByPtr( Unit hated )
bool modThreatByPtr( Unit hated, int32 mod )
uint32 getThreatByPtr( Unit hated )
Unit GetMostHated()
Unit GetSecondHated()
bool taunt( Unit target, bool apply )
Unit GetTauntedBy()
bool IsTaunted()
uint32 GetCurrentWaypoint()
void ChangeWaypointID( uint32 oldid, uint32 newid )
Waypoint GetWaypoint( uint32 wpid )
void DeleteWayPoint( uint32 wpid )
void DeleteWayPoints()
void SetWaypointToMove( uint32 wpid )
void SetMoveType( uint32 movementtype)
uint32 GetMoveType()
bool IsFlying()
void AddWayPoint( Waypoint wptoadd )
uint32 GetAITargetsCount()
properties
property type property name
bool canmove
bool moveRun
bool moveFly
bool disable_combat
bool disable_melee
bool disable_spell
bool disable_targeting


Source(s): LuaBridge:Methods


Waypoint

This class defines a structure that provides location vector coordinates and other information creatures use for waypoints.

properties
property type property name
uint32 id
float x
float y
float z
float o
uint32 waittime
uint32 flags
uint32 backwardskinid
uint32 forwardskinid


Source(s): LuaBridge:Methods


GameObject

This class object defines things like doors/chests/traps/transports, etc. GameObjects are very passive objects since they mostly require input from a unit to function.


Source(s): LuaBridge:Methods


Methods

return type method name
bool HasQuests()
uint32 NumOfQuests()
void Despawn( uint32 delay, uint32 respawndelay )
bool IsQuestGiver()
void RemoveFromWorld( bool free_guid )
GameObjectAIScript GetScript()
GameObjectInfo GetInfo()
void SaveToDB()
void RegisterEvent( lua_function function, uint32 delay, uint32 repeats, ... )
void RemoveEvents()


Source(s): LuaBridge:Methods


GameObjectAIScript

This class is what is responsible for calling the method AIUpdate() for gameobjects.

return type method name
void RegisterAIUpdateEvent( uint32 period )
void ModifyAIUpdateEvent( uint32 newperiod)
void RemoveAIUpdateEvent()


Source(s): LuaBridge:Methods


GameObjectInfo

property type property name
uint32 ID
uint32 Type
uint32 DisplayID
string Name
uint32 SpellFocus


Source(s): LuaBridge:Methods


Player

This class is what defines the player. It derives from Unit so it has all of its methods.


Source(s): LuaBridge:Methods


Methods



Source(s): LuaBridge:Methods


Skill Manipulation

return type method proto
void AdvanceSkillLine( uint32 skilline, uint32 amount )
void AddSkillLine( uint32 skilline, uint32 current, uint32 max )
uint32 GetSkillLineMax( uint32 skilline )
uint32 GetSkillLineCurrent( uint32 skilline )
uint32 RemoveSkillLine( uint32 skilline )
void ModifySkillBonus( uint32 skilline, int32 mod )
void ModifySkillBonusByType( uint32 skilltype, int32 mod )
bool HasSkillLine( uint32 skilline )
void removeSkillSpells( uint32 skilline )
void RemoveAllSkills()
void advanceSkills( uint32 amount )
void modifyMaxSkill( uint32 skilline, uint32 newmax )
void learnSkillSpells( uint32 skilline, uint32 skillcurrent )


Source(s): LuaBridge:Methods


Languages

return type method proto
void RemoveLanguages()
void AddLanguages( bool all )


Source(s): LuaBridge:Methods


Taxi

return type method proto
TaxiPath GetTaxiPath()
bool GetTaxiState()
void TaxiStart( TaxiPath path, uint32 modelid, uint32 starting_node )
void SetTaxiPath( TaxiPath path)
void SetTaxiState( bool state )


Source(s): LuaBridge:Methods


Quest

return type method proto
bool HasQuests()
int32 GetOpenQuestSlot()
QuestLogEntry GetQuestLogForEntry( uint32 entry )
QuestLogEntry GetQuestLogInSlot( int32 slot )
uint32 GetQuestSharer()
void SetQuestSharer( uint32 guid )
void SetQuestLogSlot( QuestLogEntry qlog, uint32 slot )
void HasFinishedDaily( uint32 questid )
void AddToFinishedQuests( uint32 questid )
bool HasFinishedQuest( uint32 questid )
bool GetQuestRewardStatus( uint32 questid )
bool HasQuestForItem( uint32 itemid )
bool HasQuestSpell ( uint32 spellid )
void RemoveQuestSpell( uint32 spellid )
bool HasQuest( uint32 questid )
void RemoveQuestMob( uint32 id )


Source(s): LuaBridge:Methods


Player Team

return type method proto
uint32 GetTeam()
uint32 getInitialTeam()
void SetTeam( uint32 team )
void ResetTeam()
bool isHordeTeam()
bool isAllianceTeam()


Source(s): LuaBridge:Methods


Spells/Talents

return type method proto
bool HasSpell( uint32 spellid )
void AddSpell( uint32 spellid )
void AddShapeShiftSpell( uint32 spellid )
void RemoveShapeShiftSpell( uint32 spellid )
uint8 GetShapeShift()
void SetShapeShift( uint8 newss )
void ResetAllCooldowns()
void ClearCooldownForSpell( uint32 spellid )
uint32 GetTalentPoints()
void ModTalentPoints( int32 mod )
void SetTalentPoints( uint32 talentpoints )
void ResetSpells()
void ResetTalents()


Source(s): LuaBridge:Methods


Reputation

return type method proto
int32 GetStanding( uint32 faction )
void ModStanding( uint32 faction, int32 mod )
int32 GetBaseStanding( uint32 faction )
void SetStanding( uint32 faction, int32 value )
Standing GetStandingRank( uint32 faction )
uint32 GetExaltedCount()
uint8 GetPVPRank()
void SetPVPRank( int32 newrank )
uint32 GetMaxPersonalRating()
uint32 HasTitle( RankTitles title )
void SetKnownTitle( RankTitles title, bool set )


Source(s): LuaBridge:Methods


Group/Guild

return type method name
bool IsInGroup()
bool IsGroupLeader()
bool IsGroupMember( Player player )
bool IsInGuild()
uint32 GetGuildID()
void SetGuildID( uint32 id )
uint32 GetGuildRank()
void SetGuildRank( uint32 rank )


Source(s): LuaBridge:Methods


Dueling

return type method proto
void RequestDuel( Player target )
void EndDuel( uint8 winreason )
void DuelCountDown()
void SetDuelStatus( uint8 status )
uint8 GetDuelStatus()
void SetDuelState( uint8 state )
uint8 GetDuelState()
uint32 GetDuelTeam()
void SetDuelTeam( uint32 team )


Source(s): LuaBridge:Methods


Ban/Kick

return type method proto
bool IsBanned()
void SetBanned()
void SetBannedWithReason( string reason )
void clearBan()
string GetBanReason()
void Kick( uint32 delay )
void SoftDisconnect()


Source(s): LuaBridge:Methods


Misc

return type method proto
bool CanSee( Object target )
bool IsVisible( GUID target )
bool IsMounted()
void Dismount()
void SafeTeleport( uint32 mapid, uint32 instanceid, float x, float y, float z, float o)
void Teleport( uint32 mapid, float x, float y, float z )
uint32 GetDungeonDifficulty()
uint32 GetRaidDifficulty()
void Possess( Unit target )
void Unpossess()
string GetName()
WorldSession GetSession()
void KillPlayer()
void ResurrectPlayer()
void SetBindPoint( float x, float y, float z, uint32 mapid, uint32 zoneid )
void AddComboPoints( GUID target, uint32 points )
ItemInterface GetItemInterface()
void ResetPVPTimer()
void StopPVPTimer()
void PVPToggle()
void Resurrect()
void SetGlyph( uint32 slot, uint32 id )
void GetGlyph( uint32 slot )


Source(s): LuaBridge:Methods


Targetting

return type method proto
GUID GetFarsightTarget()
void SetFarsightTarget( GUID newtarget )
GUID GetTarget()
void SetTarget( GUID newtarget )
GUID GetSelection()
void SetSelection( GUID newtarget )
GameObject GetSelectedGO()


Source(s): LuaBridge:Methods


Gold/Honor/XP

return type method proto
uint32 GetGold()
void ModGold( int32 amount_to_mod )
bool HasGold( uint32 amount_to_check )
void SetGold( uint32 amount_to_set )
void GiveGold( int32 amount_to_give )
void TakeGold( int32 amount_to_take)
void SetHonorCurrency( uint32 amount_to_set )
void ModHonorCurrency( int32 amount_to_mod )
uint32 GetHonorCurrency()
void SetArenaCurrency( uint32 amount_to_set )
void ModArenaCurrency( int32 amount_to_mod )
uint32 GetArenaCurrency()
void SetXP( uint32 xp_to_set)
uint32 GetXP()
void SetNextLevelXP( uint32 xp_to_set )


Source(s): LuaBridge:Methods


WorldSession

This class is instantiated for every logged in player and it contains information about the players login session.

return type method proto
string GetAccountName()
string GetPermissions()
bool IsGM()
MovementInfo GetMovementInfo()


Source(s): LuaBridge:Methods


MovementInfo

A player structure that contains movement data.

property type property name
uint32 flags


Source(s): LuaBridge:Methods


ItemInterface

This class handles item manipulation and is coupled w/ a player object.

return type method proto
Player GetOwner()
bool IsBagSlot( uint32 slot )
Item GetInventoryItem( int8 slot_of_bag, int32 slot_in_bag )
int32 GetInventorySlotByID( uint32 item_id )
bool RemoveItemFromSlot( int8 slot_of_bag, int32 slot_in_bag )
uint32 AddItemToFreeSlot( Item item_to_add )
uint32 AddItemToFreeBankSlot( Item item_to_add )
uint32 GetItemCount( uint32 item_id, bool include_bank )
uint32 RemoveItemAmount( uint32 item_id, uint32 amount_to_remove )
void RemoveAllConjured()
int8 FindFreeBackPackSlot()
uint8 FindFreeBackPackSlotMax()
int8 FindFreeKeyringSlot()
bool IsEquipped( uint32 item_id )
bool AddItemByID( uint32 item_id, uint32 item_count, int32 random_prop = 0 )


Source(s): LuaBridge:Methods


Global Methods

Event Registering/Creation

return type function proto
bool RegisterServerHook( uint32 server_enter_to_hook, lua_function callback_function )
void RegisterCreatureEvent( uint32 creature_id, uint32 creature_event_to_hook, lua_function callback_function)
void RegisterQuestEvent( uint32 quest_id, uint32 quest_event_to_hook, lua_function callback_function)
void RegisterGameObjectEvent( uint32 gameobject_id, uint32 gameobject_event_to_hook, lua_function callback_function)
void RegisterInstanceEvent( uint32 map_id, uint32 instance_event_to_hook, lua_function callback_function)
void RegisterCreatureGossip( uint32 creature_id, uint32 gossip_event_to_hook, lua_function callback_function)
void RegisterItemGossip( uint32 item_id, uint32 gossip_event_to_hook, lua_function callback_function)
void RegisterGOGossip( uint32 gameobject_id, uint32 gossip_event_to_hook, lua_function callback_function)
bool RegisterDummySpell( uint32 spell_id, lua_function callback_function, ... args_to_pass)
int32 CreateLuaEvent( lua_function callback_function, uint32 callback_delay, uint32 callback_repeats )
void ModifyLuaEventInterval( int32 event_id, uint32 new_callback_delay )
void DestroyLuaEvent( int32 event_id )


Source(s): LuaBridge:Methods


Timed Coroutines

return type method proto
int32 SuspendLuaThread( coroutine coroutine_to_yield, uint32 yield_duration, ... args_to_save)


Source(s): LuaBridge:Methods


Object Type Casting

return type method proto
Player TO_PLAYER( Object object_to_cast )
Creature TO_CREATURE( Object object_to_cast )
Item TO_ITEM( Object object_to_cast )
Container TO_CONTAINER( Object object_to_cast )
Unit TO_UNIT( Object object_to_cast )
GameObject TO_GAMEOBJECT( Object object_to_cast )


Source(s): LuaBridge:Methods


Bitwise Operators

return type method proto
uint32 bit_and( uint32 left_operand, ... right_operands )
uint32 bit_or( uint32 left_operand, ... right_operands )
uint32 bit_xor( uint32 left_operand, ... right_operands )
uint32 bit_not( uint32 operand_to_negate )
uint32 bit_shiftleft( uint32 operand_to_shift, uint8 shift_count)
uint32 bit_shiftright( uint32 operand_to_shift, uint8 shift_count)


Source(s): LuaBridge:Methods


Misc

return type method proto
table GetRegistry( string table_name )
uint32 GetGameTime()
Player GetPlayer( string player_character_name )
string GetEngineName()
uint32 GetEngineVersion()
void SetConsoleColor( uint32 color_number )
void SendWorldMessage( string message_to_send, uint32 message_type )
table<Player> GetPlayersInWorld()
table<Player> GetPlayersInMap( uint32 map_id )
table<Player> GetPlayersInZone( uint32 zone_id)
string GetPlatform()
void SendPacketToZone( WorldPacket packet_to_send, uint32 zone_id )
void SendPacketToInstance( WorldPacket packet_to_send, uint32 map_id )
void SendPacketToWorld( WorldPacket packet_to_send )
bool include( string script_filename, bool once )


Source(s): LuaBridge:Methods


Global Objects

Some classes in core are singletons. Meaning that there can only be one instance of that class. Such classes are pushed to Lua as global objects. They may or may not have static methods so always look out for static method tables.

dbcSpell

return type method proto
SpellEntry LookupEntryForced( uint32 spell_entry )
uint32 GetNumRows()


Source(s): LuaBridge:Methods


WorldDB and CharacterDB

return type method proto
QueryResult Query( string sql_statement )
void Execute( string sql_statement )


Source(s): LuaBridge:Methods


MapMgr

return type method proto
uint32 GetMapID()
Object GetObject( GUID object_guid )
GameObject GetGameObject( uint32 gameobject_low_guid )
Creature GetCreature( uint32 creature_low_guid )
Player GetPlayer( uint32 player_low_guid )
MapInfo GetMapInfo()
uint32 GetInstanceID()
MapScriptInterface GetInterface()
bool HasPlayers()
uint32 GetPlayerCount()
void SetWorldState( uint32 zone_id, uint32 index, uint32 value )
Creature GetSqlIdCreature( uint32 creature_sqlid )
GameObject GetSqlIdGameObject( uint32 go_sqlid )
DynamicObject CreateDynamicObject()
DynamicObject GetDynamicObject( uint32] dygo_low_guid )


Source(s): LuaBridge:Methods


MapScriptInterface


A class that handles retrieval/spawning of any objects on the map.

return type method proto
GameObject GetGameObjectNearestCoords( float x, float y, float z, uint32 gameobject_entry )
Creature GetCreatureNearestCoords( float x, float y, float z, uint32 creature_entry )
Player GetPlayerNearestCoords( float x, float y, float z, uint32 player_entry = 0 )
LCF Creature SpawnCreature( uint32 creature_entry, float x, float y, float z, float o, uint32 phase )
LCF GameObject SpawnGameObject( uint32 gameobject_entry, float x, float y, float z, float o, uint32 phase )


Source(s): LuaBridge:Methods


MapInfo


A structure that contains information describing a map

property type property name
uint32 mapid
uint32 screenid
uint32 type
uint32 playerlimit
uint32 minlevel
uint32 minlevel_heroic
float repopx
float repopy
float repopz
string name
uint32 flags
uint32 cooldown
uint32 required_quest
uint32 required_item
uint32 heroic_key_1
uint32 heroic_key_2
return type method proto
bool HasFlag( uint32 flag_to_check )


Source(s): LuaBridge:Methods


sChatHandler

return type method proto
WorldPacket FillMessageData( uint32 chat_type, uint32 language_type, string message, GUID speaker, uint32 flag )
WorldPacket FillSystemMessageData( string message )


Source(s): LuaBridge:Methods


sMailSystem

return type method proto
void SendAutomatedMessage(uint32 type, uint64 sender, uint64 receiver, string subject, string body, uint32 money, uint32 cod, uint64 item_guid, uint32 stationery)


Source(s): LuaBridge:Methods


sTaxiMgr

return type method proto
TaxiNode GetTaxiNode( uint32 node_number )
TaxiPath GetTaxiPath( uint32 path_number )
TaxiPath GetTaxiPathFT( uint32 from, uint32 to )
uint32 GetNearestTaxiNode( float x, float y, float z, uint32 map_id )


Source(s): LuaBridge:Methods


TaxiPath

return type method proto
TaxiPath TaxiPath()
uint32 GetID()
uint32 GetNodeCount()
uint32 GetPrice()


Source(s): LuaBridge:Methods


TaxiNode

return type method proto
TaxiNode TaxiNode()
void Destroy()
property type property name
float x
float y
float z
uint32 id
uint32 mapid
uint32 alliance_mount
uint32 horde_mount


Source(s): LuaBridge:Methods


Item

return type method proto


Source(s): LuaBridge:Methods


ItemPrototype

property type property name


Source(s): LuaBridge:Methods


Container

Container inherits Item, so all Item methods can be used on Containers. Containers are a kind of item that can be used as bags, or hold other items.

return type method proto
uint32 GetNumSlots()
void SetNumSlots(uint32 num)
bool AddItem(uint32 slot, Item item)
bool AddItemToFreeSlot(Item item)
Item GetItem(uint32 slot)
int8 FindFreeSlot()
bool HasItems()
void SwapItems(int8 srcSlot, int8 dstSlot)
bool SafeFullRemoveItemFromSlot(int16 slot)
void SetSlot(int16 slot, uint64 guid)
uint64 GetSlot(int16 slot)


Source(s): LuaBridge:Methods


WorldPacket

This class is what holds data to be sent over the network.

return type method proto
WorldPacket WorldPacket( uint32 opcode, uint32 capacity )
uint32 GetOpcode()
void Clear()
uint32 Size()
void WriteInt8( int32 value_to_write )
void WriteUInt8( uint32 value_to_write )
void WriteInt16( int32 value_to_write )
void WriteUInt16( uint32 value_to_write )
void WriteInt32( int32 value_to_write )
void WriteUInt32( uint32 value_to_write )
void WriteFloat( float value_to_write )
void WriteDouble( double value_to_write )
void WriteString( string string_to_write )
void WriteGUID( GUID guid_to_write )
void WriteWoWGUID( WoWGUID wowguid_to_write )


Source(s): LuaBridge:Methods


QueryResult

return type method proto
bool NextRow()
uint32 GetFieldCount()
SQL_Field GetColumn( uint32 column_index )
uint32 GetRowCount()


Source(s): LuaBridge:Methods


SQL_Field

return type method proto
string GetString()
int8 GetInt8()
uint8 GetUInt8()
int16 GetInt16()
uint16 GetUInt16()
int32 GetInt32()
uint32 GetUInt32()
float GetFloat()
GUID GetGUID()


Source(s): LuaBridge:Methods


Spell Methods

:gettype()
:getstate()
:cancel()
:cast()
:finish()
:getproto()
:isaspect()
:isseal()
:createprotooverride()
:getduration()
:getradius()
:isstealthspell()
:isinvisibilityspell()


Source(s): LuaBridge:Methods

Personal tools