From
the Wiki:
Quote:
quest::castspell(id,spellid) - Casts "spell" on entity with "id". This is buggy, if it does not work try $npc->CastSpell(id,spellid)
quest::selfcast(spellid) - Forces client to cast spell on themself (useful for self only and group effect spells).
|
That's pretty much it. For quest::castspell/$npc->CastSpell(id,spellid), you would need the entity's ID. If you are trying to get one for an NPC, I believe you can use one of the following
quest objects:
Code:
$entity_list->GetMobByNpcTypeID(get_id);
$entity_list->GetMobID(id);
$entity_list->GetMob(name);