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 06-30-2008, 11:07 PM
ChaosSlayer
Demi-God
 
Join Date: May 2007
Posts: 1,032
Default NPC casting types

I am trying to determine casting example for various types of npc script casting.

1st type is when npc quets script makes player to cast spell on self - as if player has casted it and i belive these spells also unresisteable.


EXAMPLE:

quest::say("Binding your soul. You will return here when you die.");
quest::selfcast(2049);


Now there are types, are when npc casts spell on a player - like when npc trying to nuke the player OR on another npc - could anyone post simple exmaple?


and finaly, when npc would cast spell on itself (like buff) - again exmaple?

any other posible variations?
Reply With Quote
  #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
  #3  
Old 07-03-2008, 01:46 AM
KLS
Administrator
 
Join Date: Sep 2006
Posts: 1,348
Default

$npc should also function as the object for the npc giving the quest assuming it's not a player quest.
Reply With Quote
Reply

Thread Tools
Display Modes

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 11:19 PM.


 

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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3