Exported to PERL $client->SendSpellAnim(targetid, spellid)

This function sends the spell graphic of a spell without actually having to cast the spell.
This commit is contained in:
KayenEQ
2014-10-02 22:08:12 -04:00
parent 272180ff0f
commit 968127c414
4 changed files with 49 additions and 0 deletions
+16
View File
@@ -5329,3 +5329,19 @@ void NPC::UninitializeBuffSlots()
safe_delete_array(buffs);
}
void Client::SendSpellAnim(uint16 targetid, uint16 spell_id)
{
if (!targetid || !IsValidSpell(spell_id))
return;
EQApplicationPacket app(OP_Action, sizeof(Action_Struct));
Action_Struct* a = (Action_Struct*)app.pBuffer;
a->target = targetid;
a->source = this->GetID();
a->type = 231;
a->spell = spell_id;
a->sequence = 231;
app.priority = 1;
entity_list.QueueCloseClients(this, &app);
}