View Single Post
  #2  
Old 07-03-2008, 01:16 AM
AndMetal
Developer
 
Join Date: Mar 2007
Location: Ohio
Posts: 648
Default

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);
__________________
GM-Impossible of 'A work in progress'
A non-legit PEQ DB server
How to create your own non-legit server

My Contributions to the Wiki
Reply With Quote