Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

Reply
 
Thread Tools Display Modes
  #1  
Old 11-26-2006, 07:34 PM
kovouau
Fire Beetle
 
Join Date: Jul 2006
Posts: 20
Default Noob question about NPC's casting

can i use quest::castspell to make a npc cast on a) itself or b) other NPCs.... and if not. what is the correct syntax...

thanks for any help.
Reply With Quote
  #2  
Old 11-29-2006, 02:49 PM
GeorgeS
Forum Guide
 
Join Date: Sep 2003
Location: California
Posts: 1,475
Default

Just FYI, since I have not done any NPC quests, I do have a reference quide that was made by MWMDRAGON here.


http://66.159.225.58/eqemu/EQEmuQuestLexicon.pdf
GeorgeS

quest::castspell
Explaination:
Makes the mob or NPC cast a certain spell on the creature with the indicated ID.

Full Command:
quest::castspell(id,spellid)

ID = The ID of the creature the spell is to be cast on.
SpellID = The ID of the spell to cast taken from the spells_us.txt
Example:
# Casts the bind affinity spell on the hailing person.
sub EVENT_SAY
{
if($text=~/hail/i)
{
quest::castspell($userid,2049);
}
}
__________________
Your source for EQ database tools
Toolshop is open for business


http://www.georgestools.chrsschb.com//
Reply With Quote
  #3  
Old 11-29-2006, 02:56 PM
Cripp's Avatar
Cripp
Discordant
 
Join Date: Oct 2003
Location: The Shire
Posts: 474
Default

if
Code:
quest::castspell($userid,2049);
doesnt work i would try
Code:
quest::castspell($charid,2049);
__________________
Nug Blazers - ServerOP / founder
^^comming... later!

www.nugblazers.com
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 12:49 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3