Thread: Quest Timers
View Single Post
  #4  
Old 12-17-2004, 08:35 AM
Cisyouc
Demi-God
 
Join Date: Jun 2004
Location: Heaven.
Posts: 1,260
Default

Code:
sub EVENT_SAY
{
  if($text=~/hail/i)
    {
    quest::say("I'm going to say HI!!! in 60 seconds.");
    quest::settimer(1, 30);
    }
}

sub EVENT_TIMER
{
  if($timername == 1)
    {
    quest::say("Im about to say it...");
    quest::settimer(2, 30);
    }
  else
    {
    quest::say("HI!!!");
    }
}
__________________
namespace retval { template <class T> class ReturnValueGen { private: T x; public: ReturnValueGen() { x = 0; }; T& Generator() { return x; }; }; } int main() { retval::ReturnValueGen<int> retvalue; return retvalue.Generator(); }
C++ is wonderful.
Reply With Quote