Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Custom

Quests::Custom Custom Quests here

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-30-2017, 12:03 AM
Splose
Banned
 
Join Date: Apr 2014
Posts: 279
Default AA Tokens for custom servers

I've seen on a lot of custom servers that the developers are handing out AA tokens that are redeemable by handing in to an NPC. However I always thought it was a bit annoying to have to go back to wherever that NPC is and manually hand them in, especially in large stacks.

The solution I created for this on my server was to add a blank spell to an item and then create a .pl file named after the spell ID.



quests/global/spells/24844.pl
Code:
sub EVENT_SPELL_EFFECT_CLIENT {
	my $caster = $entity_list->GetClientByID($caster_id);	
	$caster->SetAAPoints($caster->GetAAPoints()+50);
	$caster->Message(15, "You have been granted 50 AAs! You currently have " . $caster->GetAAPoints() . " AA point(s) available to spend.");
}
Reply With Quote
 


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 08:39 PM.


 

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