PDA

View Full Version : quest::setaa????


VGCodeMaster
10-07-2009, 09:24 PM
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.php?wakka=QuestTutorial

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:

$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:

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
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.php?wakka=QuestObjects