Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

Reply
 
Thread Tools Display Modes
  #1  
Old 10-07-2009, 09:24 PM
VGCodeMaster
Fire Beetle
 
Join Date: Oct 2009
Posts: 7
Default quest::setaa????

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

not working.... what is the proper syntax?
Reply With Quote
  #2  
Old 10-07-2009, 09:44 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,498
Default

I don't remember a quest:: version of giving AAs. Only a # command.
#setaapoints aa 50
Reply With Quote
  #3  
Old 10-07-2009, 10:13 PM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

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???");
	}
	
}
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #4  
Old 10-08-2009, 01:39 AM
VGCodeMaster
Fire Beetle
 
Join Date: Oct 2009
Posts: 7
Default Perfect.

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

PERFECT.
Reply With Quote
  #5  
Old 10-08-2009, 05:39 AM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,498
Default

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


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 02:46 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3