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 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
  #2  
Old 09-02-2011, 12:29 PM
lerxst2112
Demi-God
 
Join Date: Aug 2010
Posts: 1,743
Default

quest::selfcast seems to work, however it does mean any duration formulas are based on the level of the player requesting the buff.
Reply With Quote
  #3  
Old 09-02-2011, 03:15 PM
revloc02c's Avatar
revloc02c
Hill Giant
 
Join Date: Aug 2010
Location: UT
Posts: 215
Default

Quote:
Originally Posted by squevis667 View Post
I am having difficulty getting my buffbots to cast Group V2 type spells on players not in a group.
Yeah, I have found the same thing. I want my buff bot to cast according to the NPC level not the PC level, and so I have had to resort to using only "Single" type spells. I have looked into this a bit, but I haven't figured anything out yet.
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 08:07 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3