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 05-23-2011, 05:33 PM
Astal
Hill Giant
 
Join Date: Mar 2010
Posts: 236
Default Mobs arent casting spells....

I have it set up for the mobs to heal my boss every 60 seconds for 20k hp. The script is firing but the spell isnt casting. I have a feeling it has to do with $mob->SetTarget(); the ID is correct, but is that the correct code i would be looking for to pick an NPC to cast a spell on?


Code:
#Monolith of Lohesh

sub EVENT_SPAWN {
	quest::settimer("HealLohesh", 60);
}

sub EVENT_TIMER {

if ( ($timer eq "HealLohesh" ) && (defined($entity_list->GetNPCByNPCTypeID(999424)) ) ) {

	quest::say("Take our life oh dark one!!");
	$mob->SetTarget(999424);
	plugin::CastOnTarget(21479); #heal
	quest::settimer("HealLohesh", 60);
	}


	
}

I also tried it like this, same result

Code:
#Monolith of Lohesh

sub EVENT_SPAWN {
	quest::settimer("HealLohesh", 60);
}

sub EVENT_TIMER {

if ( ($timer eq "HealLohesh" ) && (defined($entity_list->GetNPCByNPCTypeID(999424)) ) ) {

	quest::say("Take our life oh dark one!!");
	#$mob->SetTarget(999424);
	$mob->CastSpell(21479, 999424, 10, -1, -1);
	#plugin::CastOnTarget(21479); #heal
	quest::settimer("HealLohesh", 60);
	}


	
}

sub EVENT_SAY {	

		if($text=~/Hail/i) {
		$client->Message(315, "Script working.");
		}
		
}
Reply With Quote
  #2  
Old 05-23-2011, 05:36 PM
Shamanistik08
Sarnak
 
Join Date: Apr 2011
Posts: 47
Default

Totally new to perl, but there is no quotes normally here?

plugin::CastOnTarget('21479');

Just a guess..
Reply With Quote
  #3  
Old 05-23-2011, 05:57 PM
Astal
Hill Giant
 
Join Date: Mar 2010
Posts: 236
Default

Quote:
Originally Posted by Shamanistik08 View Post
Totally new to perl, but there is no quotes normally here?

plugin::CastOnTarget('21479');

Just a guess..
nope, it works fine on all my other scripts
Reply With Quote
  #4  
Old 05-23-2011, 07:40 PM
Shamanistik08
Sarnak
 
Join Date: Apr 2011
Posts: 47
Default

you should also add a stop timer, or remove the 2nd set timer. but it has nothing to do with the cast spell.
Reply With Quote
  #5  
Old 05-23-2011, 07:53 PM
Astal
Hill Giant
 
Join Date: Mar 2010
Posts: 236
Default

Quote:
Originally Posted by Shamanistik08 View Post
you should also add a stop timer, or remove the 2nd set timer. but it has nothing to do with the cast spell.
i tried doing that for a different one but the timer didnt trigget again unless I had a start timer in each timer.


Ill have to go back and test all my other timers haha
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:30 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