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 09-08-2016, 05:18 PM
JimB_1958
Sarnak
 
Join Date: Mar 2013
Location: Springfield MO
Posts: 66
Default AA Exp on or off

Is there a function similar to $Client->GetAAExp() to simply check the percentage that AA xp is set to?

I want to calculate and award something besides XP to players but only if they are max level and have turned AA xp off.
__________________
"We are all on the same team, and I think not enough people realize this."
- Leetsauce
Reply With Quote
  #2  
Old 09-08-2016, 08:46 PM
ghanja's Avatar
ghanja
Dragon
 
Join Date: Aug 2012
Location: Hershey, PA
Posts: 499
Default

GetEXP()

However, I don't believe the percentage of experience to AA's is being parsed (is a method) in either Perl or LUA. That's not to say it can't be though, however, I'll leave that to those more comfortable with C++

Until then, try this Perl method of finding out the percentage of experience going towards AA's (that is assuming 'e_percent_to_aa' is what I think it is). The schema in the wiki hasn't been updated I don't think since the deblobbing.

Code:
## /plugins/PercentageToAA.pl

sub PercentageToAA {
	my $toonid = $_[0];
	my $dbh = plugin::LoadMysql();
	my $sth = $dbh->prepare("SELECT `e_percent_to_aa` FROM `character_data` WHERE id = ".$toonid." LIMIT 1");
	$sth->execute();	
	@data = $sth->fetchrow_array();
	$sth->finish();
	$dbh->disconnect();
	return $data[0];
}

return 1;
Usage:
Code:
my $percent = plugins::PercentageToAA($charid);
Untested (still away from home).
Reply With Quote
  #3  
Old 09-08-2016, 10:01 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,595
Default

Once this is merged, you'll be able to check their AA experience percentage using $client->GetAAPercent().

Addendum: Merged as of ~5 minutes ago.

Last edited by Kingly_Krab; 09-08-2016 at 10:12 PM..
Reply With Quote
  #4  
Old 09-08-2016, 10:25 PM
ghanja's Avatar
ghanja
Dragon
 
Join Date: Aug 2012
Location: Hershey, PA
Posts: 499
Default

Quote:
Originally Posted by Kingly_Krab View Post
Once this is merged, you'll be able to check their AA experience percentage using $client->GetAAPercent().

Addendum: Merged as of ~5 minutes ago.
And there you go, I was secretly banking on Kingly adding it (why? because he's on top of adding all those cool niche exports for us customization guys)
Reply With Quote
  #5  
Old 09-12-2016, 10:50 AM
JimB_1958
Sarnak
 
Join Date: Mar 2013
Location: Springfield MO
Posts: 66
Default

Thanks a bunch! Worked exactly as I was hoping.
__________________
"We are all on the same team, and I think not enough people realize this."
- Leetsauce
Reply With Quote
  #6  
Old 09-12-2016, 11:48 AM
N0ctrnl's Avatar
N0ctrnl
Discordant
 
Join Date: Jan 2007
Posts: 443
Default

Maybe he'll add the ability for zone_controller to read quest global values next
__________________
Ender - Lead GM/Developer
Vegarlson Asylum Server - http://www.vegarlson-server.org/
Reply With Quote
  #7  
Old 09-14-2016, 04:33 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,595
Default

Ask and you shall receive: https://github.com/EQEmu/Server/pull/557
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 06:54 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3