View Single Post
  #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