View Single Post
  #11  
Old 01-12-2015, 04:21 PM
utbbop
Sarnak
 
Join Date: May 2009
Location: Mentor
Posts: 58
Default

Also, I switched from $client->AddCrystals to $client->AddAlternateCurrencyValue and cant get it to work with the timer...

Code:
sub EVENT_CONNECT {
    quest::settimer("Pearls", 10);
}

sub EVENT_TIMER {
    if ($timer eq "Pearls") 
	{
        quest::stoptimer("Pearls");
        $client->AddAlternateCurrencyValue(15, 1)
        $client->Message(315, "You have recieved 1 Planar Pearl. You now have ". plugin::commify($client->GetAlternateCurrencyValue(15))."" );
        quest::settimer("Pearls", 10);
    }
}
Reply With Quote