View Single Post
  #2  
Old 06-17-2008, 11:44 AM
Cripp's Avatar
Cripp
Discordant
 
Join Date: Oct 2003
Location: The Shire
Posts: 474
Default

try this one...
Code:
sub EVENT_SAY
{
	if ($text=~/hail/i)
	{
		quest::say("Hail to you, lesser being!");
	}
	if ($text=~/Set/i)
	{
		quest::say("Setting your stupid var human !");
		if (!defined $qgobals{AVAR})
		{
			quest::delglobal("AVAR");
			quest::setglobal("AVAR", 1, 7, "Y50");
		}
	}
	if ($text=~/Get/i)
	{
		my $avar = $qglobals{AVAR};
		quest::say("Here is your results $avar");
	}
}
PS: not sure if that red semicolon should go there or not.. thats why i made it red.
__________________
Nug Blazers - ServerOP / founder
^^comming... later!

www.nugblazers.com
Reply With Quote