Thread: qglobal issues
View Single Post
  #4  
Old 03-15-2010, 08:52 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,498
Default

Code:
# Grizzly

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

  if($text=~/hail/i) {
    if($qglobals{Grizzly} == 2) {
      quest::emote("stares at you with disbelief.");
    }
    else {
      quest::say("Greetings $name, I am the Milita Recruiter. Would you like to begin your $journey?");
    }
  }
  if($text=~/journey/i) {
    quest::setglobal("Grizzly",1,2,"F");
    quest::summonitem(33969);
    quest::say("Welcome to the Militia, $name. You will report to Tzu with this note, and he will take it from there. Good luck.");
  }
}
Not sure about the saylink.. I haven't used those before.
Reply With Quote