mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
@@ -834,7 +834,7 @@ namespace LuaCreature
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef CATA
|
#if defined(CLASSIC) || defined(TBC) || defined(WOTLK)
|
||||||
/**
|
/**
|
||||||
* Returns the [Creature]'s shield block value.
|
* Returns the [Creature]'s shield block value.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ typedef Opcodes OpcodesList;
|
|||||||
#define MAX_TALENT_SPECS MAX_TALENT_SPEC_COUNT
|
#define MAX_TALENT_SPECS MAX_TALENT_SPEC_COUNT
|
||||||
#define TEAM_NEUTRAL TEAM_INDEX_NEUTRAL
|
#define TEAM_NEUTRAL TEAM_INDEX_NEUTRAL
|
||||||
|
|
||||||
#ifndef CLASSIC
|
#if defined(TBC) || (defined(WOTLK) && !defined(MANGOS)) || defined(CATA)
|
||||||
#define PLAYER_FIELD_LIFETIME_HONORABLE_KILLS PLAYER_FIELD_LIFETIME_HONORBALE_KILLS
|
#define PLAYER_FIELD_LIFETIME_HONORABLE_KILLS PLAYER_FIELD_LIFETIME_HONORBALE_KILLS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -135,7 +135,7 @@ typedef Opcodes OpcodesList;
|
|||||||
#define SPELL_AURA_MOD_KILL_XP_PCT SPELL_AURA_MOD_XP_PCT
|
#define SPELL_AURA_MOD_KILL_XP_PCT SPELL_AURA_MOD_XP_PCT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(WOTLK) && !defined(MANGOS)
|
#if defined(CATA) || defined(MISTS) || (defined(WOTLK) && !defined(MANGOS))
|
||||||
#define UNIT_BYTE2_FLAG_SANCTUARY UNIT_BYTE2_FLAG_SUPPORTABLE
|
#define UNIT_BYTE2_FLAG_SANCTUARY UNIT_BYTE2_FLAG_SUPPORTABLE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -1844,7 +1844,7 @@ namespace LuaGlobalFunctions
|
|||||||
if (!eObjectMgr->GetCreatureTemplate(entry))
|
if (!eObjectMgr->GetCreatureTemplate(entry))
|
||||||
return luaL_argerror(L, 1, "valid CreatureEntry expected");
|
return luaL_argerror(L, 1, "valid CreatureEntry expected");
|
||||||
|
|
||||||
#ifdef CATA
|
#if defined(CATA) || defined(MISTS)
|
||||||
eObjectMgr->RemoveVendorItem(entry, item, 1);
|
eObjectMgr->RemoveVendorItem(entry, item, 1);
|
||||||
#else
|
#else
|
||||||
eObjectMgr->RemoveVendorItem(entry, item);
|
eObjectMgr->RemoveVendorItem(entry, item);
|
||||||
@@ -1867,7 +1867,7 @@ namespace LuaGlobalFunctions
|
|||||||
|
|
||||||
auto const & itemlist = items->m_items;
|
auto const & itemlist = items->m_items;
|
||||||
for (auto itr = itemlist.begin(); itr != itemlist.end(); ++itr)
|
for (auto itr = itemlist.begin(); itr != itemlist.end(); ++itr)
|
||||||
#ifdef CATA
|
#if defined(CATA) || defined(MISTS)
|
||||||
eObjectMgr->RemoveVendorItem(entry, (*itr)->item, 1);
|
eObjectMgr->RemoveVendorItem(entry, (*itr)->item, 1);
|
||||||
#else
|
#else
|
||||||
#ifdef TRINITY
|
#ifdef TRINITY
|
||||||
|
|||||||
@@ -152,7 +152,7 @@ namespace LuaGuild
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef CATA
|
#if defined(CLASSIC) || defined(TBC) || defined(WOTLK)
|
||||||
/**
|
/**
|
||||||
* Sets the leader of this [Guild]
|
* Sets the leader of this [Guild]
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -195,7 +195,7 @@ namespace LuaItem
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef CATA
|
#if defined CLASSIC || defined(TBC) || defined(WOTLK)
|
||||||
/**
|
/**
|
||||||
* Returns 'true' if the [Item] is a weapon vellum, 'false' otherwise
|
* Returns 'true' if the [Item] is a weapon vellum, 'false' otherwise
|
||||||
*
|
*
|
||||||
@@ -271,7 +271,7 @@ namespace LuaItem
|
|||||||
#ifndef CLASSIC
|
#ifndef CLASSIC
|
||||||
if (int32 itemRandPropId = item->GetItemRandomPropertyId())
|
if (int32 itemRandPropId = item->GetItemRandomPropertyId())
|
||||||
{
|
{
|
||||||
#ifdef CATA
|
#if defined(CATA) || defined (MISTS)
|
||||||
char* suffix = NULL;
|
char* suffix = NULL;
|
||||||
#else
|
#else
|
||||||
char* const* suffix = NULL;
|
char* const* suffix = NULL;
|
||||||
|
|||||||
@@ -450,11 +450,9 @@ ElunaRegister<Player> PlayerMethods[] =
|
|||||||
{ "GetGuild", &LuaPlayer::GetGuild },
|
{ "GetGuild", &LuaPlayer::GetGuild },
|
||||||
{ "GetAccountId", &LuaPlayer::GetAccountId },
|
{ "GetAccountId", &LuaPlayer::GetAccountId },
|
||||||
{ "GetAccountName", &LuaPlayer::GetAccountName },
|
{ "GetAccountName", &LuaPlayer::GetAccountName },
|
||||||
#ifndef CATA
|
#if defined (TBC) || defined (WOTLK)
|
||||||
#ifndef CLASSIC
|
|
||||||
{ "GetArenaPoints", &LuaPlayer::GetArenaPoints },
|
{ "GetArenaPoints", &LuaPlayer::GetArenaPoints },
|
||||||
{ "GetHonorPoints", &LuaPlayer::GetHonorPoints },
|
{ "GetHonorPoints", &LuaPlayer::GetHonorPoints },
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
{ "GetLifetimeKills", &LuaPlayer::GetLifetimeKills },
|
{ "GetLifetimeKills", &LuaPlayer::GetLifetimeKills },
|
||||||
{ "GetPlayerIP", &LuaPlayer::GetPlayerIP },
|
{ "GetPlayerIP", &LuaPlayer::GetPlayerIP },
|
||||||
@@ -514,7 +512,7 @@ ElunaRegister<Player> PlayerMethods[] =
|
|||||||
{ "GetCorpse", &LuaPlayer::GetCorpse },
|
{ "GetCorpse", &LuaPlayer::GetCorpse },
|
||||||
{ "GetGossipTextId", &LuaPlayer::GetGossipTextId },
|
{ "GetGossipTextId", &LuaPlayer::GetGossipTextId },
|
||||||
{ "GetQuestRewardStatus", &LuaPlayer::GetQuestRewardStatus },
|
{ "GetQuestRewardStatus", &LuaPlayer::GetQuestRewardStatus },
|
||||||
#ifndef CATA
|
#if defined(CLASSIC) || defined(TBC) || defined(WOTLK)
|
||||||
{ "GetShieldBlockValue", &LuaPlayer::GetShieldBlockValue },
|
{ "GetShieldBlockValue", &LuaPlayer::GetShieldBlockValue },
|
||||||
#endif
|
#endif
|
||||||
#ifdef CLASSIC
|
#ifdef CLASSIC
|
||||||
@@ -534,12 +532,10 @@ ElunaRegister<Player> PlayerMethods[] =
|
|||||||
{ "UnsetKnownTitle", &LuaPlayer::UnsetKnownTitle },
|
{ "UnsetKnownTitle", &LuaPlayer::UnsetKnownTitle },
|
||||||
#endif
|
#endif
|
||||||
{ "SetBindPoint", &LuaPlayer::SetBindPoint },
|
{ "SetBindPoint", &LuaPlayer::SetBindPoint },
|
||||||
#ifndef CATA
|
#if defined(TBC) || defined(WOTLK)
|
||||||
#ifndef CLASSIC
|
|
||||||
{ "SetArenaPoints", &LuaPlayer::SetArenaPoints },
|
{ "SetArenaPoints", &LuaPlayer::SetArenaPoints },
|
||||||
{ "SetHonorPoints", &LuaPlayer::SetHonorPoints },
|
{ "SetHonorPoints", &LuaPlayer::SetHonorPoints },
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
#ifdef CLASSIC
|
#ifdef CLASSIC
|
||||||
{ "SetHonorStoredKills", &LuaPlayer::SetHonorStoredKills },
|
{ "SetHonorStoredKills", &LuaPlayer::SetHonorStoredKills },
|
||||||
{ "SetRankPoints", &LuaPlayer::SetRankPoints },
|
{ "SetRankPoints", &LuaPlayer::SetRankPoints },
|
||||||
@@ -708,11 +704,9 @@ ElunaRegister<Player> PlayerMethods[] =
|
|||||||
{ "DurabilityPointLossForEquipSlot", &LuaPlayer::DurabilityPointLossForEquipSlot },
|
{ "DurabilityPointLossForEquipSlot", &LuaPlayer::DurabilityPointLossForEquipSlot },
|
||||||
{ "DurabilityRepairAll", &LuaPlayer::DurabilityRepairAll },
|
{ "DurabilityRepairAll", &LuaPlayer::DurabilityRepairAll },
|
||||||
{ "DurabilityRepair", &LuaPlayer::DurabilityRepair },
|
{ "DurabilityRepair", &LuaPlayer::DurabilityRepair },
|
||||||
#ifndef CATA
|
#if defined(TBC) || defined(WOTLK)
|
||||||
#ifndef CLASSIC
|
|
||||||
{ "ModifyHonorPoints", &LuaPlayer::ModifyHonorPoints },
|
{ "ModifyHonorPoints", &LuaPlayer::ModifyHonorPoints },
|
||||||
{ "ModifyArenaPoints", &LuaPlayer::ModifyArenaPoints },
|
{ "ModifyArenaPoints", &LuaPlayer::ModifyArenaPoints },
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
{ "LeaveBattleground", &LuaPlayer::LeaveBattleground },
|
{ "LeaveBattleground", &LuaPlayer::LeaveBattleground },
|
||||||
// {"BindToInstance", &LuaPlayer::BindToInstance}, // :BindToInstance() - UNDOCUMENTED - Binds the player to the current instance
|
// {"BindToInstance", &LuaPlayer::BindToInstance}, // :BindToInstance() - UNDOCUMENTED - Binds the player to the current instance
|
||||||
@@ -784,7 +778,7 @@ ElunaRegister<Creature> CreatureMethods[] =
|
|||||||
{ "GetLootRecipient", &LuaCreature::GetLootRecipient },
|
{ "GetLootRecipient", &LuaCreature::GetLootRecipient },
|
||||||
{ "GetLootRecipientGroup", &LuaCreature::GetLootRecipientGroup },
|
{ "GetLootRecipientGroup", &LuaCreature::GetLootRecipientGroup },
|
||||||
{ "GetNPCFlags", &LuaCreature::GetNPCFlags },
|
{ "GetNPCFlags", &LuaCreature::GetNPCFlags },
|
||||||
#ifndef CATA
|
#if defined(CLASSIC) || defined(TBC) || defined(WOTLK)
|
||||||
{ "GetShieldBlockValue", &LuaCreature::GetShieldBlockValue },
|
{ "GetShieldBlockValue", &LuaCreature::GetShieldBlockValue },
|
||||||
#endif
|
#endif
|
||||||
{ "GetDBTableGUIDLow", &LuaCreature::GetDBTableGUIDLow },
|
{ "GetDBTableGUIDLow", &LuaCreature::GetDBTableGUIDLow },
|
||||||
@@ -956,7 +950,7 @@ ElunaRegister<Item> ItemMethods[] =
|
|||||||
{ "IsEquipped", &LuaItem::IsEquipped },
|
{ "IsEquipped", &LuaItem::IsEquipped },
|
||||||
{ "HasQuest", &LuaItem::HasQuest },
|
{ "HasQuest", &LuaItem::HasQuest },
|
||||||
{ "IsPotion", &LuaItem::IsPotion },
|
{ "IsPotion", &LuaItem::IsPotion },
|
||||||
#ifndef CATA
|
#if defined(CLASSIC) || defined(TBC) || defined(WOTLK)
|
||||||
{ "IsWeaponVellum", &LuaItem::IsWeaponVellum },
|
{ "IsWeaponVellum", &LuaItem::IsWeaponVellum },
|
||||||
{ "IsArmorVellum", &LuaItem::IsArmorVellum },
|
{ "IsArmorVellum", &LuaItem::IsArmorVellum },
|
||||||
#endif
|
#endif
|
||||||
@@ -1097,7 +1091,7 @@ ElunaRegister<Guild> GuildMethods[] =
|
|||||||
{ "SetBankTabText", &LuaGuild::SetBankTabText },
|
{ "SetBankTabText", &LuaGuild::SetBankTabText },
|
||||||
#endif
|
#endif
|
||||||
{ "SetMemberRank", &LuaGuild::SetMemberRank },
|
{ "SetMemberRank", &LuaGuild::SetMemberRank },
|
||||||
#ifndef CATA
|
#if defined(CLASSIC) || defined(TBC) || defined(WOTLK)
|
||||||
{ "SetLeader", &LuaGuild::SetLeader },
|
{ "SetLeader", &LuaGuild::SetLeader },
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -780,8 +780,7 @@ namespace LuaPlayer
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef CATA
|
#if defined(TBC) || defined (WOTLK)
|
||||||
#ifndef CLASSIC
|
|
||||||
/**
|
/**
|
||||||
* Returns the [Player]s current amount of Arena Points
|
* Returns the [Player]s current amount of Arena Points
|
||||||
*
|
*
|
||||||
@@ -803,7 +802,6 @@ namespace LuaPlayer
|
|||||||
Eluna::Push(L, player->GetHonorPoints());
|
Eluna::Push(L, player->GetHonorPoints());
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the [Player]s current shield block value
|
* Returns the [Player]s current shield block value
|
||||||
@@ -1900,8 +1898,7 @@ namespace LuaPlayer
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef CATA
|
#if defined(TBC) || defined(WOTLK)
|
||||||
#ifndef CLASSIC
|
|
||||||
/**
|
/**
|
||||||
* Sets the [Player]s Arena Points to the amount specified
|
* Sets the [Player]s Arena Points to the amount specified
|
||||||
*
|
*
|
||||||
@@ -1926,7 +1923,6 @@ namespace LuaPlayer
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CLASSIC
|
#ifdef CLASSIC
|
||||||
/**
|
/**
|
||||||
@@ -2111,8 +2107,7 @@ namespace LuaPlayer
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef CATA
|
#if defined(TBC) || defined(WOTLK)
|
||||||
#ifndef CLASSIC
|
|
||||||
/**
|
/**
|
||||||
* Adds or detracts from the [Player]s current Arena Points
|
* Adds or detracts from the [Player]s current Arena Points
|
||||||
*
|
*
|
||||||
@@ -2138,7 +2133,6 @@ namespace LuaPlayer
|
|||||||
player->ModifyHonorPoints(amount);
|
player->ModifyHonorPoints(amount);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user