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 12-10-2014, 04:47 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default Client Hate List

To get a count of mobs that a player has aggro on, is there a function currently? I could cycle through mobs in the zone but that seems CPU intensive. There is this

$client->GetAggroCount()

But is is not working for me so far.
Reply With Quote
  #2  
Old 12-10-2014, 07:00 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,594
Default

Well that function does work for me, all it does is return the amount of mobs on the client's hate list.

Code:
int Client::GetAggroCount() {
	return AggroCount;
}
Try something like this.
Code:
sub EVENT_SAY {
	if ($text=~/Hail/i) {
		plugin::Whisper("There are " . $client->GetAggroCount() . " NPCs on your hatelist.");
	}
}
Reply With Quote
  #3  
Old 12-10-2014, 08:42 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

Quote:
Originally Posted by Kingly_Krab View Post
Well that function does work for me, all it does is return the amount of mobs on the client's hate list.

Code:
int Client::GetAggroCount() {
	return AggroCount;
}
Try something like this.
Code:
sub EVENT_SAY {
	if ($text=~/Hail/i) {
		plugin::Whisper("There are " . $client->GetAggroCount() . " NPCs on your hatelist.");
	}
}

I saw that in the documentation. I wonder if the function is only available in that event though? I tried to access the function in the event EVENT_AGGRO
Reply With Quote
  #4  
Old 12-10-2014, 09:44 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,594
Default

That's because EVENT_AGGRO isn't for clients.
Code:
sub EVENT_AGGRO # Triggered when a mob aggros a client.
Check here.
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 09:26 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