PDA

View Full Version : AA Tokens for custom servers


Splose
11-30-2017, 12:03 AM
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/7b3137df9966a99b888e34c2c48a68ef.png

quests/global/spells/24844.pl

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.