Eluna fix mangos build

This commit is contained in:
Rochet2
2014-06-02 01:45:28 +03:00
committed by Foereaper
parent b1f85bfc21
commit 19b03dcbcf
10 changed files with 112 additions and 91 deletions

View File

@@ -115,7 +115,7 @@ namespace LuaPlayer
else
{
uint32 entry = Eluna::CHECKVAL<uint32>(L, 2);
const ItemTemplate* temp = sObjectMgr->GetItemTemplate(entry);
const ItemTemplate* temp = eObjectMgr->GetItemTemplate(entry);
if (temp)
Eluna::Push(L, player->CanUseItem(temp));
else
@@ -722,7 +722,7 @@ namespace LuaPlayer
{
if (!player->GetGuildId())
return 1;
Eluna::Push(L, sGuildMgr->GetGuildNameById(player->GetGuildId()));
Eluna::Push(L, eGuildMgr->GetGuildNameById(player->GetGuildId()));
return 1;
}
@@ -929,7 +929,7 @@ namespace LuaPlayer
int GetGuild(lua_State* L, Player* player)
{
Eluna::Push(L, sGuildMgr->GetGuildById(player->GetGuildId()));
Eluna::Push(L, eGuildMgr->GetGuildById(player->GetGuildId()));
return 1;
}
@@ -948,7 +948,7 @@ namespace LuaPlayer
int GetAccountName(lua_State* L, Player* player)
{
std::string accName;
if (sAccountMgr->GetName(player->GetSession()->GetAccountId(), accName))
if (eAccountMgr->GetName(player->GetSession()->GetAccountId(), accName))
Eluna::Push(L, accName);
return 1;
}
@@ -1410,7 +1410,7 @@ namespace LuaPlayer
{
uint32 entry = Eluna::CHECKVAL<uint32>(L, 2);
Quest const* quest = sObjectMgr->GetQuestTemplate(entry);
Quest const* quest = eObjectMgr->GetQuestTemplate(entry);
if (quest)
player->RewardQuest(quest, 0, player);
return 0;
@@ -2240,7 +2240,7 @@ namespace LuaPlayer
uint32 questId = Eluna::CHECKVAL<uint32>(L, 2);
bool activeAccept = Eluna::CHECKVAL<bool>(L, 3, true);
Quest const* quest = sObjectMgr->GetQuestTemplate(questId);
Quest const* quest = eObjectMgr->GetQuestTemplate(questId);
if (!quest)
return 0;