Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
LuaGlobalFunctions Namespace Reference

Functions

int AddTaxiPath (lua_State *L)
int AddVendorItem (lua_State *L)
int AuthDBExecute (lua_State *L)
int AuthDBQuery (lua_State *L)
int Ban (lua_State *L)
int bit_and (lua_State *L)
int bit_lshift (lua_State *L)
int bit_not (lua_State *L)
int bit_or (lua_State *L)
int bit_rshift (lua_State *L)
int bit_xor (lua_State *L)
int CharDBExecute (lua_State *L)
int CharDBQuery (lua_State *L)
int CreateLuaEvent (lua_State *L)
int CreatePacket (lua_State *L)
int GetCoreVersion (lua_State *L)
int GetGameTime (lua_State *L)
int GetGUIDEntry (lua_State *L)
int GetGUIDLow (lua_State *L)
int GetGUIDType (lua_State *L)
int GetGuildByLeaderGUID (lua_State *L)
int GetGuildByName (lua_State *L)
static int GetItemGUID (lua_State *L)
int GetItemLink (lua_State *L)
int GetLuaEngine (lua_State *L)
int GetMapById (lua_State *L)
static int GetObjectGUID (lua_State *L)
int GetPlayerByGUID (lua_State *L)
int GetPlayerByName (lua_State *L)
int GetPlayerCount (lua_State *L)
static int GetPlayerGUID (lua_State *L)
int GetPlayersInMap (lua_State *L)
int GetPlayersInWorld (lua_State *L)
int GetQuest (lua_State *L)
static int GetUnitGUID (lua_State *L)
int Kick (lua_State *L)
int PerformIngameSpawn (lua_State *L)
int RegisterCreatureEvent (lua_State *L)
int RegisterCreatureGossipEvent (lua_State *L)
int RegisterGameObjectEvent (lua_State *L)
int RegisterGameObjectGossipEvent (lua_State *L)
int RegisterGroupEvent (lua_State *L)
int RegisterGuildEvent (lua_State *L)
int RegisterItemEvent (lua_State *L)
int RegisterItemGossipEvent (lua_State *L)
int RegisterPlayerEvent (lua_State *L)
int RegisterPlayerGossipEvent (lua_State *L)
int RegisterServerEvent (lua_State *L)
int RegisterVehicleEvent (lua_State *L)
int ReloadEluna (lua_State *L)
int RemoveEventById (lua_State *L)
int RemoveEvents (lua_State *L)
int SaveAllPlayers (lua_State *L)
int SendMail (lua_State *L)
int SendWorldMessage (lua_State *L)
int VendorRemoveAllItems (lua_State *L)
int VendorRemoveItem (lua_State *L)
int WorldDBExecute (lua_State *L)
int WorldDBQuery (lua_State *L)

Function Documentation

◆ AddTaxiPath()

◆ AddVendorItem()

int LuaGlobalFunctions::AddVendorItem ( lua_State * L)

Definition at line 681 of file GlobalMethods.h.

Referenced by RegisterGlobals().

◆ AuthDBExecute()

int LuaGlobalFunctions::AuthDBExecute ( lua_State * L)

Definition at line 431 of file GlobalMethods.h.

References LoginDatabase.

Referenced by RegisterGlobals().

◆ AuthDBQuery()

int LuaGlobalFunctions::AuthDBQuery ( lua_State * L)

Definition at line 416 of file GlobalMethods.h.

References LoginDatabase, and sEluna.

Referenced by RegisterGlobals().

◆ Ban()

int LuaGlobalFunctions::Ban ( lua_State * L)

Definition at line 745 of file GlobalMethods.h.

Referenced by RegisterGlobals().

◆ bit_and()

int LuaGlobalFunctions::bit_and ( lua_State * L)

Definition at line 853 of file GlobalMethods.h.

References sEluna.

Referenced by RegisterGlobals().

◆ bit_lshift()

int LuaGlobalFunctions::bit_lshift ( lua_State * L)

Definition at line 871 of file GlobalMethods.h.

References sEluna.

Referenced by RegisterGlobals().

◆ bit_not()

int LuaGlobalFunctions::bit_not ( lua_State * L)

Definition at line 898 of file GlobalMethods.h.

References sEluna.

Referenced by RegisterGlobals().

◆ bit_or()

int LuaGlobalFunctions::bit_or ( lua_State * L)

Definition at line 862 of file GlobalMethods.h.

References sEluna.

Referenced by RegisterGlobals().

◆ bit_rshift()

int LuaGlobalFunctions::bit_rshift ( lua_State * L)

Definition at line 880 of file GlobalMethods.h.

References sEluna.

Referenced by RegisterGlobals().

◆ bit_xor()

int LuaGlobalFunctions::bit_xor ( lua_State * L)

Definition at line 889 of file GlobalMethods.h.

References sEluna.

Referenced by RegisterGlobals().

◆ CharDBExecute()

int LuaGlobalFunctions::CharDBExecute ( lua_State * L)

Definition at line 405 of file GlobalMethods.h.

References CharacterDatabase.

Referenced by RegisterGlobals().

◆ CharDBQuery()

int LuaGlobalFunctions::CharDBQuery ( lua_State * L)

Definition at line 390 of file GlobalMethods.h.

References CharacterDatabase, and sEluna.

Referenced by RegisterGlobals().

◆ CreateLuaEvent()

int LuaGlobalFunctions::CreateLuaEvent ( lua_State * L)

Definition at line 518 of file GlobalMethods.h.

References sEluna.

Referenced by RegisterGlobals().

◆ CreatePacket()

int LuaGlobalFunctions::CreatePacket ( lua_State * L)

Definition at line 664 of file GlobalMethods.h.

References NUM_OPCODE_HANDLERS, and sEluna.

Referenced by RegisterGlobals().

◆ GetCoreVersion()

int LuaGlobalFunctions::GetCoreVersion ( lua_State * L)

Definition at line 245 of file GlobalMethods.h.

References sEluna.

Referenced by RegisterGlobals().

◆ GetGameTime()

int LuaGlobalFunctions::GetGameTime ( lua_State * L)

Definition at line 286 of file GlobalMethods.h.

References sEluna, and sWorld.

Referenced by RegisterGlobals().

◆ GetGUIDEntry()

int LuaGlobalFunctions::GetGUIDEntry ( lua_State * L)

Definition at line 912 of file GlobalMethods.h.

References GUID_ENPART(), and sEluna.

Referenced by RegisterGlobals().

◆ GetGUIDLow()

int LuaGlobalFunctions::GetGUIDLow ( lua_State * L)

Definition at line 798 of file GlobalMethods.h.

References GUID_LOPART(), and sEluna.

Referenced by RegisterGlobals().

◆ GetGUIDType()

int LuaGlobalFunctions::GetGUIDType ( lua_State * L)

Definition at line 905 of file GlobalMethods.h.

References GUID_HIPART(), and sEluna.

Referenced by RegisterGlobals().

◆ GetGuildByLeaderGUID()

int LuaGlobalFunctions::GetGuildByLeaderGUID ( lua_State * L)

Definition at line 461 of file GlobalMethods.h.

References Object::GetGUID(), sEluna, and sGuildMgr.

Referenced by RegisterGlobals().

◆ GetGuildByName()

int LuaGlobalFunctions::GetGuildByName ( lua_State * L)

Definition at line 442 of file GlobalMethods.h.

References sEluna, and sGuildMgr.

Referenced by RegisterGlobals().

◆ GetItemGUID()

int LuaGlobalFunctions::GetItemGUID ( lua_State * L)
static

Definition at line 493 of file GlobalMethods.h.

References HIGHGUID_ITEM, MAKE_NEW_GUID(), and sEluna.

Referenced by RegisterGlobals().

◆ GetItemLink()

int LuaGlobalFunctions::GetItemLink ( lua_State * L)

◆ GetLuaEngine()

int LuaGlobalFunctions::GetLuaEngine ( lua_State * L)

Definition at line 238 of file GlobalMethods.h.

References sEluna.

Referenced by RegisterGlobals().

◆ GetMapById()

int LuaGlobalFunctions::GetMapById ( lua_State * L)

Definition at line 450 of file GlobalMethods.h.

References sEluna, sMapMgr, and sMapStore.

Referenced by RegisterGlobals().

◆ GetObjectGUID()

int LuaGlobalFunctions::GetObjectGUID ( lua_State * L)
static

Definition at line 501 of file GlobalMethods.h.

References HIGHGUID_GAMEOBJECT, MAKE_NEW_GUID(), and sEluna.

Referenced by RegisterGlobals().

◆ GetPlayerByGUID()

int LuaGlobalFunctions::GetPlayerByGUID ( lua_State * L)

Definition at line 270 of file GlobalMethods.h.

References ObjectAccessor::FindPlayer(), and sEluna.

Referenced by RegisterGlobals().

◆ GetPlayerByName()

int LuaGlobalFunctions::GetPlayerByName ( lua_State * L)

Definition at line 278 of file GlobalMethods.h.

References ObjectAccessor::FindPlayerByName(), and sEluna.

Referenced by RegisterGlobals().

◆ GetPlayerCount()

int LuaGlobalFunctions::GetPlayerCount ( lua_State * L)

Definition at line 470 of file GlobalMethods.h.

References sEluna, and sWorld.

Referenced by RegisterGlobals().

◆ GetPlayerGUID()

int LuaGlobalFunctions::GetPlayerGUID ( lua_State * L)
static

Definition at line 485 of file GlobalMethods.h.

References HIGHGUID_PLAYER, MAKE_NEW_GUID(), and sEluna.

Referenced by RegisterGlobals().

◆ GetPlayersInMap()

int LuaGlobalFunctions::GetPlayersInMap ( lua_State * L)

◆ GetPlayersInWorld()

int LuaGlobalFunctions::GetPlayersInWorld ( lua_State * L)

Definition at line 301 of file GlobalMethods.h.

References Unit::GetPlayer(), sEluna, sWorld, and TEAM_NEUTRAL.

Referenced by RegisterGlobals().

◆ GetQuest()

int LuaGlobalFunctions::GetQuest ( lua_State * L)

Definition at line 252 of file GlobalMethods.h.

References sEluna, and sObjectMgr.

Referenced by RegisterGlobals().

◆ GetUnitGUID()

int LuaGlobalFunctions::GetUnitGUID ( lua_State * L)
static

Definition at line 510 of file GlobalMethods.h.

References HIGHGUID_UNIT, MAKE_NEW_GUID(), and sEluna.

Referenced by RegisterGlobals().

◆ Kick()

int LuaGlobalFunctions::Kick ( lua_State * L)

Definition at line 735 of file GlobalMethods.h.

References Player::GetSession(), WorldSession::KickPlayer(), and sEluna.

Referenced by RegisterGlobals().

◆ PerformIngameSpawn()

◆ RegisterCreatureEvent()

int LuaGlobalFunctions::RegisterCreatureEvent ( lua_State * L)

Definition at line 200 of file GlobalMethods.h.

References REGTYPE_CREATURE, and sEluna.

Referenced by RegisterGlobals().

◆ RegisterCreatureGossipEvent()

int LuaGlobalFunctions::RegisterCreatureGossipEvent ( lua_State * L)

Definition at line 105 of file GlobalMethods.h.

References REGTYPE_CREATURE_GOSSIP, and sEluna.

Referenced by RegisterGlobals().

◆ RegisterGameObjectEvent()

int LuaGlobalFunctions::RegisterGameObjectEvent ( lua_State * L)

Definition at line 219 of file GlobalMethods.h.

References REGTYPE_GAMEOBJECT, and sEluna.

Referenced by RegisterGlobals().

◆ RegisterGameObjectGossipEvent()

int LuaGlobalFunctions::RegisterGameObjectGossipEvent ( lua_State * L)

Definition at line 124 of file GlobalMethods.h.

References REGTYPE_GAMEOBJECT_GOSSIP, and sEluna.

Referenced by RegisterGlobals().

◆ RegisterGroupEvent()

int LuaGlobalFunctions::RegisterGroupEvent ( lua_State * L)

Definition at line 87 of file GlobalMethods.h.

References REGTYPE_GROUP, and sEluna.

Referenced by RegisterGlobals().

◆ RegisterGuildEvent()

int LuaGlobalFunctions::RegisterGuildEvent ( lua_State * L)

Definition at line 69 of file GlobalMethods.h.

References REGTYPE_GUILD, and sEluna.

Referenced by RegisterGlobals().

◆ RegisterItemEvent()

int LuaGlobalFunctions::RegisterItemEvent ( lua_State * L)

Definition at line 143 of file GlobalMethods.h.

References REGTYPE_ITEM, and sEluna.

Referenced by RegisterGlobals().

◆ RegisterItemGossipEvent()

int LuaGlobalFunctions::RegisterItemGossipEvent ( lua_State * L)

Definition at line 162 of file GlobalMethods.h.

References REGTYPE_ITEM_GOSSIP, and sEluna.

Referenced by RegisterGlobals().

◆ RegisterPlayerEvent()

int LuaGlobalFunctions::RegisterPlayerEvent ( lua_State * L)

Definition at line 33 of file GlobalMethods.h.

References REGTYPE_PLAYER, and sEluna.

Referenced by RegisterGlobals().

◆ RegisterPlayerGossipEvent()

int LuaGlobalFunctions::RegisterPlayerGossipEvent ( lua_State * L)

Definition at line 181 of file GlobalMethods.h.

References REGTYPE_PLAYER_GOSSIP, and sEluna.

Referenced by RegisterGlobals().

◆ RegisterServerEvent()

int LuaGlobalFunctions::RegisterServerEvent ( lua_State * L)

Definition at line 15 of file GlobalMethods.h.

References REGTYPE_SERVER, and sEluna.

Referenced by RegisterGlobals().

◆ RegisterVehicleEvent()

int LuaGlobalFunctions::RegisterVehicleEvent ( lua_State * L)

Definition at line 51 of file GlobalMethods.h.

References REGTYPE_VEHICLE, and sEluna.

Referenced by RegisterGlobals().

◆ ReloadEluna()

int LuaGlobalFunctions::ReloadEluna ( lua_State * L)

Definition at line 263 of file GlobalMethods.h.

References StartEluna().

Referenced by RegisterGlobals().

◆ RemoveEventById()

int LuaGlobalFunctions::RemoveEventById ( lua_State * L)

Definition at line 530 of file GlobalMethods.h.

References sEluna.

Referenced by RegisterGlobals().

◆ RemoveEvents()

int LuaGlobalFunctions::RemoveEvents ( lua_State * L)

Definition at line 542 of file GlobalMethods.h.

References sEluna.

Referenced by RegisterGlobals().

◆ SaveAllPlayers()

int LuaGlobalFunctions::SaveAllPlayers ( lua_State * L)

Definition at line 791 of file GlobalMethods.h.

References ObjectAccessor::SaveAllPlayers().

Referenced by RegisterGlobals().

◆ SendMail()

◆ SendWorldMessage()

int LuaGlobalFunctions::SendWorldMessage ( lua_State * L)

Definition at line 293 of file GlobalMethods.h.

References SERVER_MSG_STRING, and sWorld.

Referenced by RegisterGlobals().

◆ VendorRemoveAllItems()

int LuaGlobalFunctions::VendorRemoveAllItems ( lua_State * L)

Definition at line 719 of file GlobalMethods.h.

Referenced by RegisterGlobals().

◆ VendorRemoveItem()

int LuaGlobalFunctions::VendorRemoveItem ( lua_State * L)

Definition at line 703 of file GlobalMethods.h.

Referenced by RegisterGlobals().

◆ WorldDBExecute()

int LuaGlobalFunctions::WorldDBExecute ( lua_State * L)

Definition at line 379 of file GlobalMethods.h.

References WorldDatabase.

Referenced by RegisterGlobals().

◆ WorldDBQuery()

int LuaGlobalFunctions::WorldDBQuery ( lua_State * L)

Definition at line 364 of file GlobalMethods.h.

References sEluna, and WorldDatabase.

Referenced by RegisterGlobals().