Thread: qglobal issues
View Single Post
  #1  
Old 03-15-2010, 05:27 PM
boo2
Fire Beetle
 
Join Date: May 2008
Location: Bahamas
Posts: 10
Default qglobal issues

sub EVENT_SAY {

my $journey = quest::saylink("journey", 0, "journey");

if($text=~/hail/i){
$client->Message(10, "Grizzly Adams says, 'Hello there $name. I am the recruiter of all the new soldiers in the Qeynos Militia. Would you like to begin your $journey?'");

}


elsif($text=~/journey/i){
{
quest::summonitem(107;
quest::setglobal("NoteToSun",1,5,"F");
$client->Message(10, "Grizzly Adams says, 'Welcome to the Militia, $name. You will report to Tzu with this note, and he will take it from there. Good luck.'"); }

}
elsif($text=~/journey/i && !defined $qglobals{NoteToSun}); {
$client->Message(10, "Grizzly Adams says, 'I have already recruited you'"); }
}
}

------------------


What is wrong with the qglobal? I just can't seem to get it to work!

Can anyone explain it further?
Reply With Quote