EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Custom (https://www.eqemulator.org/forums/forumdisplay.php?f=671)
-   -   AA Tokens for custom servers (https://www.eqemulator.org/forums/showthread.php?t=41624)

Splose 11-30-2017 12:03 AM

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.

https://i.gyazo.com/7b3137df9966a99b...c2c48a68ef.png

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.");
}


Kingly_Krab 11-30-2017 09:43 PM

I usually just make a #claimaa command in EVENT_SAY in global_player.pl that looks for every kind of AA token and redeems them instantly.

Splose 12-01-2017 05:19 AM

you should make a command that helps you stop riding my dick and then use it immediately after. :cool: :cool: :cool:

Kingly_Krab 12-02-2017 12:52 PM

I was just giving my input. People can use your idea or they can use mine. It’s always nice to have options.


All times are GMT -4. The time now is 03:59 PM.

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