sub EVENT_SPAWN
{
quest::say("I'm the Greeter! I say 'Greetings' every minute!");
quest::settimer(1,60);
}
sub EVENT_TIMER
{
quest::say("Greetings!");
quest::settimer(1,60);
}
sub EVENT_SAY
{
if($text=~/hail/i)
{
quest::say("Same to you, friend!");
}
}
__________________
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.
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.
Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.