[Quest API] Add GetNPCTintIndex() to Perl/Lua (#4983)

This commit is contained in:
Alex King
2025-08-16 21:34:39 -04:00
committed by GitHub
parent d475428157
commit e13b133ac8
5 changed files with 34 additions and 4 deletions
+13
View File
@@ -4940,3 +4940,16 @@ void NPC::ResetMultiQuest() {
m_hand_in = {};
}
void NPC::SetNPCTintIndex(uint32 index)
{
auto outapp = new EQApplicationPacket(OP_SpawnAppearance, sizeof(SpawnAppearance_Struct));
auto* s = (SpawnAppearance_Struct*) outapp->pBuffer;
s->spawn_id = GetID();
s->type = AppearanceType::NPCTintIndex;
s->parameter = index;
entity_list.QueueClients(this, outapp);
safe_delete(outapp);
}