Quote:
Originally Posted by utbbop
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!