Thread: Refund AA quest
View Single Post
  #5  
Old 09-07-2013, 03:02 PM
rencro
Hill Giant
 
Join Date: Sep 2008
Location: So. California
Posts: 219
Default

Its all in the thread I linked, might want to read from the beginning next time:

Code:
sub EVENT_SAY {
 my $client = plugin::val('$client');
 my $spent = $client->GetSpentAA();
  if ($text=~/hail/i){
    quest::say("Where is Mr. Head?? You have $spent AA spent");  
	$client->ResetAA();
	$client->AddAAPoints($spent);
	}
}
BTW, you dont need to kick the client, just zone them out. So you cold have a "fake" zone that just watches for clients, then immediately sends them back to where they came from, instead of kicking the client and forcing them to relog back in...

ps, you may want to make sure you dont have a limit on max unspent aa....
Reply With Quote