PDA

View Full Version : Quest to grant specific AA


GurkhaPanzers
07-04-2014, 11:45 PM
Is it possible to grant a specific AA as a quest reward? If so how would the perl look?

Mariomario
07-05-2014, 09:32 AM
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.


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.