EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Buffbots and Group Spells (https://www.eqemulator.org/forums/showthread.php?t=34095)

squevis667 09-02-2011 12:23 PM

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?

lerxst2112 09-02-2011 12:29 PM

quest::selfcast seems to work, however it does mean any duration formulas are based on the level of the player requesting the buff.

revloc02c 09-02-2011 03:15 PM

Quote:

Originally Posted by squevis667 (Post 202726)
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.


All times are GMT -4. The time now is 10:57 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.