mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-02 23:40:26 +00:00
[Quest API] Add GetNPCTintIndex() to Perl/Lua (#4983)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user