View Single Post
  #2  
Old 07-05-2014, 09:32 AM
Mariomario
Hill Giant
 
Join Date: Jul 2004
Posts: 143
Default

Yes it is possible and quite simple.

$client->IncrementAA(AAID)

This will increase the id of the AA by 1 since all AA are completely unique and only given a value of 1.

Example Combat Fury (ID 113) Combat Fury 1 - ID 113, Combat Fury 2 - ID 114, Combat Fury 3 - ID 115

While Combat Fury has a max level of 3, each level is its own unique ID.

Code:
sub EVENT_SAY
{
	if($text=~/hail/i)
	{
		$client->IncrementAA(113);
		$client->IncrementAA(114);
		$client->IncrementAA(115);
	}
}
This would result in Combat Fury being set to 3/3

Hope this helps.
__________________
Wrath - Lead Admin and Owner of Enlightened Dark: Ascension

Enlightened Dark: Ascension
Reply With Quote