View Single Post
  #4  
Old 05-05-2010, 09:14 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,498
Default

Try this:

Code:
sub EVENT_SAY {
  if($text=~/hail/i) {
    if(!defined($qglobals{illsalin})) {
      $client->Message(5,"Have you heard of the new [tyrant] of Last World?");
      quest::setglobal("illsalin",1,5,"F");
    }
    else {
      quest::say("Welcome back, $name. Do you need to hear about the [tyrant] Vertallis again?");
    }
  }
  if(($text=~/tyrant/i) && (defined($qglobals{illsalin})) && ($qglobals{illsalin} == 1)) {
    $client->Message(5,"His name is Vertallis, he is a monstrosity from another realm who subsides in the Caves of Time. He holds the key to the next realm of [adventure]...");
  }
  elsif(($text=~/adventure/i) && (defined($qglobals{illsalin})) && ($qglobals{illsalin} == 1)) {
    $client->Message(5,"Yes, the ancient Ruins of Illsalin. Deep within the ruins dwells creatures beyond any power you have ever seen...you must gain access to these ruins. One of adventurers went there several seasons back and has never returned...he could be alive. Poor Daemonloth...");
  }
}
If it still doesn't work, then it is somewhere else in the file that is broken.

This is assuming, as you said above, that this NPC has qglobals set to 1 in the database.
Reply With Quote