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

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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #10  
Old 07-29-2009, 05:50 PM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

I haven't looked at the code yet, but maybe the cast spell commands could just have a bool option added that would make them ignore LoS. Or, if it is an NPC casting from it's own spell list and not from a script, then maybe a new NPC special attack code could be added for unavoidable AEs. It would definitely be a great thing to have both of these options for creating good boss encounters.

Until that happens, maybe you could just have it use the GetRandomClient() quest object to get a random nearby client and then have them actually cast the AE, so it will hit anyone near them. It would probably be hard for a whole raid to hide behind walls from everyone in the raid at all times lol.

I think you just use it like:
Code:
my $MyX = GetX();
my $MyY = GetY();
my $MyZ = GetZ();

my $RandClient = $entity_list->GetRandomClient($MyX, $MyY, $MyY, 100);
Then, use the $RandClient to cast a spell on a timer or something with something like this:

Code:
if ($RandClient){
  my $ClientID = $RandClient->GetID();
  $RandClient->CastSpell(spell_id, $ClientID);
}
I haven't tested that, but I think that would make them cast the spell on themself, which should effect both them and anyone within range/LoS of them.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
 


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