EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   quest::setaa???? (https://www.eqemulator.org/forums/showthread.php?t=29741)

VGCodeMaster 10-07-2009 09:24 PM

quest::setaa????
 
quest::setaapoints aa(50);
quest::setaapts aa(50);
quest::setaapoints (50);

not working.... what is the proper syntax?

joligario 10-07-2009 09:44 PM

I don't remember a quest:: version of giving AAs. Only a # command.
#setaapoints aa 50

trevius 10-07-2009 10:13 PM

Here is a list of AA quest objects from the wiki page:

http://www.eqemulator.net/wiki/wikka...=QuestTutorial

Code:

AddAAPoints(number)
GetAAPoints()
GetSpentAA()
RefundAA()
ResetAA()
SetAAPoints(points)
SetAATitle(txt, save = 0)
SetEXP(set_exp, set_aaxp, resexp=false)
GetAA(aa_id)

To use them, you would do something like this:

Code:

$client->GetAAPoints();
And, I haven't tested it, but maybe something like this would work to add 50 AA like you seem to be wanting to do:

Code:

sub EVENT_SAY {

my $give = quest::saylink("Yes, please give me 50 AA points!", 0, "give");

        if ($text=~/hail/i)
        {
                quest::say("Would you like me to try to [$give] you 50 AA points?");
        }

        if ($text=~/give/i)
        {
                quest::say("Ok, here goes nothing!");
                #Get their current total AA points
                #my $CurAA = $client->GetAAPoints();
                #Set their AA to their current total, plus 50 more.
                #$client->SetAAPoints($CurAA + 50);
                #Just add the 50 AA points without doing any of the above noted stuff

                $client->AddAAPoints(50);
                quest::say("Did that work???");
        }
       
}


VGCodeMaster 10-08-2009 01:39 AM

Perfect.
 
If I could describe your helpful post in anyway it would be....

PERFECT.

joligario 10-08-2009 05:39 AM

Ah, yeah. You meant this page: http://www.eqemulator.net/wiki/wikka...a=QuestObjects


All times are GMT -4. The time now is 01:16 PM.

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