View Single Post
  #1  
Old 04-17-2010, 10:48 AM
Kayen
Developer
 
Join Date: Mar 2009
Location: -
Posts: 228
Default quest::QGVarDuration? quest::timeleft? Do these work?

Trying to track a timer independent of any zone. However I am having trouble extracting the time remaining in a global or a task, either of which would work.

Take a look at these examples and tell me what I am doing wrong, neither will export the variable $Check.

sub EVENT_SAY {

quest::setglobal("vxed_Instance_Flag", 1, 5, "D3");
my $Check = quest::QGVarDuration($qglobals{vxed_Instance_Flag} );
quest::emote("Duration is : $Check");

}


sub EVENT_SAY {
#Used within the zone the task is set.
#quest::assigntask(50);
my $Check = quest::timeleft(50);
quest::emote("$Check");
}
Reply With Quote