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
  #1  
Old 09-02-2011, 12:23 PM
squevis667
Fire Beetle
 
Join Date: Dec 2010
Posts: 18
Default Buffbots and Group Spells

I am having difficulty getting my buffbots to cast Group V2 type spells on players not in a group. If I have the characters ungrouped, the NPC just casts it on themselves. If I have them grouped, the NPC casts it on all of them no problem. My plugins folder is up to date with the latest SVN. Here is the part of the code that does the buffing:
Code:
sub EVENT_SAY { 
if($text=~/hail/i){
	$npc->SetAppearance(0);
	quest::say("Hello $name, I can buff you with Ferocity [ferocity] and Spiritual Dominion [dominion] for free.");
 }
if($text=~/ferocity/i){
	$npc->SetAppearance(0);
	$npc->CastSpell(3463, $userid);
	quest::say("Casting Ferocity, Good hunting!");
}
if($text=~/dominion/i){
	my $Group = $client->GetGroup();
	my $GetPlayerID = $client->GetID();
	if($Group){
		$Group->CastGroupSpell($npc, 3460);
	}
	else {
		$npc->CastSpell(3460, $GetPlayerID);
	}
	$npc->SetAppearance(0);
	quest::say("Casting Spiritual Dominion, Good hunting!");
}
I based this off a snippet that several senior people said worked for their servers. I am running Rev 1887 with Bots. Any idea why this wont work for me?
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 06:53 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