EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Custom (https://www.eqemulator.org/forums/forumdisplay.php?f=671)
-   -   Quest to grant specific AA (https://www.eqemulator.org/forums/showthread.php?t=38451)

GurkhaPanzers 07-04-2014 11:45 PM

Quest to grant specific AA
 
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.

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.


All times are GMT -4. The time now is 08:22 AM.

Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.