Go Back   EQEmulator Home > EQEmulator Forums > Support > Spell Support

Spell Support Broken Spells? Want them Fixed? Request it here.

Reply
 
Thread Tools Display Modes
  #1  
Old 12-01-2009, 06:13 AM
Xunsai
Fire Beetle
 
Join Date: Jun 2008
Location: Coon Rapids, Minnesota
Posts: 13
Default NPC + Target DD

Syntax of :
$npc->castSpell(9247,$client);

It seems to only be able to cast "Point Blank AE" spells. Is this because it can't find a target? I've tried everything I can find and i'm finally posting. Please help.
__________________
Xunsai Nosferatu
Current Project: www.citadelofmagic.net
Retired Server: www.crimsontempestemu.net
Reply With Quote
  #2  
Old 12-01-2009, 02:05 PM
nilbog
Hill Giant
 
Join Date: Nov 2007
Posts: 197
Default

try using this. I think CastSpell is also case sensitive

Code:
$npc->CastSpell(9247,$userid);
Reply With Quote
  #3  
Old 12-01-2009, 06:33 PM
Xunsai
Fire Beetle
 
Join Date: Jun 2008
Location: Coon Rapids, Minnesota
Posts: 13
Default

I've tried,
$npc->CastSpell(9247,$userid);
$npc->CastSpell($userid,9247);
$npc->CastSpell(9247,$name);
$npc->CastSpell(9247,$target);
$npc->CastSpell(9247,$npc->GetHateTop());
$npc->CastSpell(9247,$npc->GetTopHate());
$npc->CastSpell(9247,$npc->GetHateMost());
$npc->CastSpell(9247,$GetTarget());
$npc->CastSpell(9247,$npc->$GetTarget());

You get the idea,

Also tried adding in
$targ = $npc->GetHateTop();
$whohit = $entity_list->GetClientByID($targ);

and then using

$npc->CastSpell(9248,$whohit);


And then he begins casting but interrupts, everytime. Spells are instant also.
__________________
Xunsai Nosferatu
Current Project: www.citadelofmagic.net
Retired Server: www.crimsontempestemu.net
Reply With Quote
  #4  
Old 12-01-2009, 07:53 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,490
Default

What sub are you calling it from? Sometimes not all the variables you are calling are passed. Maybe you should paste your code.
Reply With Quote
  #5  
Old 12-01-2009, 08:22 PM
jayseesee
Fire Beetle
 
Join Date: Jan 2009
Location: Home
Posts: 17
Default

We are calling this from EVENT_TIMER, what we are trying to do, unsuccessfully, is have the mob cast a single target spell on whoever is on the top of his hate list every so often (or target, but that is prone to exploits).
We have tried numerous things, and can not get it to work. Is there any way for us to do this?
Reply With Quote
  #6  
Old 12-01-2009, 08:37 PM
jayseesee
Fire Beetle
 
Join Date: Jan 2009
Location: Home
Posts: 17
Default

Disregard, we got this to work.
Code:
$targ = $npc->GetTarget();
$targid = $targ->GetID();
$npc->CastSpell($spellid,$targid);
I suppose GetHateTop() would work just as well =P
Reply With Quote
  #7  
Old 12-01-2009, 08:57 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,490
Default

Yeah, the client does not trigger the timer, so userid and client would not pass. $targetname will pass through timer though.
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 06:11 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