Class Global [-] [+]

These functions can be used anywhere at any time, including at start-up.

Methods

AddTaxiPath

Adds a taxi path to a specified map, returns the used pathId.

AddVendorItem

Adds an Item to a vendor and updates the world database.

AuthDBExecute

Executes a SQL query on the login database.

AuthDBQuery

Executes a SQL query on the login database and returns an ElunaQuery.

Ban

Ban's a Player's account, character or IP

CharDBExecute

Executes a SQL query on the character database.

CharDBQuery

Executes a SQL query on the character database and returns an ElunaQuery.

ClearBattleGroundEvents

Unbinds event handlers for either all BattleGround events, or one type of event.

ClearCreatureEvents

Unbinds event handlers for either all of a Creature's events, or one type of event.

ClearCreatureGossipEvents

Unbinds event handlers for either all of a Creature's gossip events, or one type of event.

ClearGameObjectEvents

Unbinds event handlers for either all of a GameObject's events, or one type of event.

ClearGameObjectGossipEvents

Unbinds event handlers for either all of a GameObject's gossip events, or one type of event.

ClearGroupEvents

Unbinds event handlers for either all Group events, or one type of Group event.

ClearGuildEvents

Unbinds event handlers for either all Guild events, or one type of Guild event.

ClearInstanceEvents

Unbinds event handlers for either all of an instanced Map's events, or one type of event.

ClearItemEvents

Unbinds event handlers for either all of an Item's events, or one type of event.

ClearItemGossipEvents

Unbinds event handlers for either all of an Item's gossip events, or one type of event.

ClearMapEvents

Unbinds event handlers for either all of a non-instanced Map's events, or one type of event.

ClearPacketEvents

Unbinds event handlers for either all of a WorldPacket opcode's events, or one type of event.

ClearPlayerEvents

Unbinds event handlers for either all Player events, or one type of Player event.

ClearPlayerGossipEvents

Unbinds event handlers for either all of a Player's gossip events, or one type of event.

ClearServerEvents

Unbinds event handlers for either all server events, or one type of event.

ClearUniqueCreatureEvents

Unbinds event handlers for either all of a Creature's events, or one type of event.

CreateLongLong

Returns an object representing a long long (64-bit) value.

CreateLuaEvent

Registers a global timed event.

CreatePacket

Creates a WorldPacket.

CreateULongLong

Returns an object representing an unsigned long long (64-bit) value.

GetAreaName

Returns the area or zone's name.

GetCoreExpansion

Returns emulator's supported expansion.

GetCoreName

Returns emulator's name.

GetCoreVersion

Returns emulator version

GetCurrTime

Returns the server's current time.

GetGUIDEntry

Returns the entry ID from a GUID.

GetGUIDLow

Returns the low GUID from a GUID.

GetGUIDType

Returns the type ID from a GUID.

GetGameTime

Returns game time in seconds

GetGuildByLeaderGUID

Returns Guild by the leader's GUID

GetGuildByName

Returns a Guild by name.

GetItemGUID

Builds an Item's GUID.

GetItemLink

Returns an chat link for an Item.

GetLuaEngine

Returns Lua engine's name.

GetMapById

Returns a Map by ID.

GetObjectGUID

Builds a GameObject's GUID.

GetPlayerByGUID

Finds and Returns Player by guid if found

GetPlayerByName

Finds and Returns Player by name if found

GetPlayerCount

Returns the amount of Players in the world.

GetPlayerGUID

Builds a Player's GUID

GetPlayersInMap

Returns a table with all the current Players in a map

GetPlayersInWorld

Returns a table with all the current Players in the world

GetQuest

Returns Quest template

GetTimeDiff

Returns the difference between an old timestamp and the current time.

GetUnitGUID

Builds a Creature's GUID.

IsBagPos

Returns true if the bag and slot is a valid bag position, otherwise false.

IsBankPos

Returns true if the bag and slot is a valid bank position, otherwise false.

IsEquipmentPos

Returns true if the bag and slot is a valid equipment position, otherwise false.

IsInventoryPos

Returns true if the bag and slot is a valid inventory position, otherwise false.

Kick

Kicks a Player from the server.

PerformIngameSpawn

Performs an in-game spawn and returns the Creature or GameObject spawned.

PrintDebug

Prints given parameters to the debug log.

PrintError

Prints given parameters to the error log.

PrintInfo

Prints given parameters to the info log.

RegisterBGEvent

Registers a BattleGround event handler.

RegisterCreatureEvent

Registers a Creature event handler.

RegisterCreatureGossipEvent

Registers a Creature gossip event handler.

RegisterGameObjectEvent

Registers a GameObject event handler.

RegisterGameObjectGossipEvent

Registers a GameObject gossip event handler.

RegisterGroupEvent

Registers a Group event handler.

RegisterGuildEvent

Registers a Guild event handler.

RegisterInstanceEvent

Registers a Map event handler for one instance of a Map.

RegisterItemEvent

Registers an Item event handler.

RegisterItemGossipEvent

Registers an Item gossip event handler.

RegisterMapEvent

Registers a Map event handler for all instance of a Map.

RegisterPacketEvent

Registers a WorldPacket event handler.

RegisterPlayerEvent

Registers a Player event handler.

RegisterPlayerGossipEvent

Registers a Player gossip event handler.

RegisterServerEvent

Registers a server event handler.

RegisterUniqueCreatureEvent

Registers a Creature event handler for a single Creature.

ReloadEluna

Reloads the Lua engine.

RemoveEventById

Removes a global timed event specified by ID.

RemoveEvents

Removes all global timed events.

SaveAllPlayers

Saves all Players.

SendMail

Sends mail to a Player.

SendWorldMessage

Sends a message to all Players online.

VendorRemoveAllItems

Removes all Items from a vendor and updates the database.

VendorRemoveItem

Removes an Item from a vendor and updates the database.

WorldDBExecute

Executes a SQL query on the world database.

WorldDBQuery

Executes a SQL query on the world database and returns an ElunaQuery.

bit_and

Performs a bitwise AND (a & b).

bit_lshift

Performs a bitwise left-shift (a << b).

bit_not

Performs a bitwise NOT (~a).

bit_or

Performs a bitwise OR (a | b).

bit_rshift

Performs a bitwise right-shift (a >> b).

bit_xor

Performs a bitwise XOR (a ^ b).

Generated on 09/04/2016
©2016 - Eluna Lua Engine