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

Quote:
Originally Posted by utbbop View Post
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);
    }
}
I have compared this to my other quests that use a timer and it seems formatted correctly. Not sure why I cant get it working. Is it something related to global_player.pl? Or perhaps something related to my EVENT?

Thanks all!
Reply With Quote