View Single Post
  #1  
Old 04-23-2015, 03:34 PM
Bandor
Hill Giant
 
Join Date: May 2014
Posts: 209
Default Summoning an item every x hours

Wasn't sure what to title this so I guess its self explanatory lol. Currently using the following,but it doesnt appear to be working.


Code:
sub EVENT_CONNECT {
    quest::settimer("Reward", 14400);
}
}

sub EVENT_TIMER {
    if ($timer eq "Reward") {
        quest::stoptimer("Reward");
        $client->AddAlternateCurrencyValue(43942, 1);
        $client->Message(315, "You have received AMOUNT CURRENCY for staying online for four hours!");
        quest::settimer("Reward", 14400);
    }
}
__________________
Owner and Developer - Everquest: A New World
Reply With Quote