Feat: Add new methods for player (GetQuestSlotQuestId, SetCanFly, ApplyRatingMod) (#345)

This commit is contained in:
iThorgrim
2025-11-10 18:45:58 +01:00
committed by GitHub
parent 2cedf6ffd7
commit ebcc10a00f
2 changed files with 80 additions and 0 deletions

View File

@@ -555,6 +555,7 @@ ALERegister<Player> PlayerMethods[] =
{ "GetTemporaryUnsummonedPetNumber", &LuaPlayer::GetTemporaryUnsummonedPetNumber },
{ "GetLastPetNumber", &LuaPlayer::GetLastPetNumber },
{ "GetLastPetSpell", &LuaPlayer::GetLastPetSpell },
{ "GetQuestSlotQuestId", &LuaPlayer::GetQuestSlotQuestId },
// Setters
{ "SetTemporaryUnsummonedPetNumber", &LuaPlayer::SetTemporaryUnsummonedPetNumber },
@@ -613,6 +614,7 @@ ALERegister<Player> PlayerMethods[] =
{ "GetInventoryItem", &LuaPlayer::GetInventoryItem },
{ "GetBankItem", &LuaPlayer::GetBankItem },
{ "GetCreationTime", &LuaPlayer::GetCreationTime },
{ "SetCanFly", &LuaPlayer::SetCanFly },
// Boolean
{ "HasTankSpec", &LuaPlayer::HasTankSpec },
@@ -829,6 +831,7 @@ ALERegister<Player> PlayerMethods[] =
{ "SetViewpoint", &LuaPlayer::SetViewpoint },
{ "ToggleInstantFlight", &LuaPlayer::ToggleInstantFlight },
{ "SetCreationTime", &LuaPlayer::SetCreationTime },
{ "ApplyRatingMod", &LuaPlayer::ApplyRatingMod },
{ NULL, NULL }
};