This is simplier and makes more sense, it's bad you didn't even read the thread you posted. I tested
$client->RefundAA(), it doesn't do anything until you're booted, but it doesn't boot you, thus the
$client->Kick()
Quote:
Originally Posted by realityincarnate
Ok, ask and you shall receive. Three more new functions:
$client->AddAAPoints(number) - adds 'number' to the character's unspent AA points
$client->GetSpentAA() - returns the number of AA the client has spent
$client->RefundAA() - wipes all purchased AA abilities, refunds the spent points, and boots the client to ensure a relog.
|
Also, there's no need to define
$client in a
sub EVENT_SAY, only in a plugin, nor is there a necessity to define any variables.
Code:
sub EVENT_SAY
{
if($text=~/Hail/i)
{
plugin::Whisper("Would you like to " . quest::saylink("reset", 1) . " your AA points?");
}
if($text=~/Reset/i)
{
plugin::Whisper("Off you go!");
$client->RefundAA();
$client->Kick();
}
}