quest::castspell(id,spellid); - Casts "spell" on entity with "id".
That is about as close as you can get to having a spell effect. You should at least see the casting effects I think. But it will most likely cast whatever spell you chose on the target as well. So unless you make a custom spell in your spell file, it probably won't have the effect you are looking for. If you do edit your spell file, you can use one of the unused spells like "Free Spell" and just give it the casting effect you want to appear and then have no actual effects set to happen on the target. I think that would probably work like you want.
As for quest::attack, I can't seem to get that working either. I am messing with it right now as a matter of fact and it is definitely giving me problems when I am trying to use the NPCID or the name. The NPCs are saying they are "unable to attack <NPCID>".
|