Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 03-12-2017, 03:09 PM
ZombieSoul's Avatar
ZombieSoul
Sarnak
 
Join Date: Jan 2017
Posts: 31
Default

Before I had a bot enchanter I had something similar to this to work around the group buff issue.
Code:
sub EVENT_SAY {

	if($text=~/hail/i) {
		quest::say("Hail, $name.I can help you [clear] your mind.");
	}

	if($text=~/clear/i) {
		my $Group = $client->GetGroup();
		
 		if($ulevel >= 46) {
			if($Group) {
				#Koadic's Endless Intellect 2570
				$Group->CastGroupSpell($npc, 2570);
			}
			else {
				#Clairvoyance 5513
				$npc->CastSpell(5513, $userid);
			}
			quest::say("May your mind be clear, $name");
		}
		else {
			if($Group) {
				#Boon of the Clear Mind 1694
				$Group->CastGroupSpell($npc, 1694);
			}
			else {
				#Clarity 174
				$npc->CastSpell(174, $userid);
			}
			quest::say("May your mind be clear, $name");
		}
	}
}
I think npcs should be able to cast any spells including group spells as they were intended, so I may make a personal edit on my server.

Last edited by ZombieSoul; 03-12-2017 at 03:16 PM.. Reason: Tried to fix formatting
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:50 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