Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

Reply
 
Thread Tools Display Modes
  #1  
Old 05-05-2010, 09:14 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,504
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
  #2  
Old 05-05-2010, 11:20 PM
snedecor
Fire Beetle
 
Join Date: Apr 2009
Location: qatar
Posts: 13
Default

I'll give it a shot - also do you know of a way to reset script on mob without restarting? Cuz i got like 30 players on my server on average so i dont wanna keep restarting - Only asking cuz I never tried. Thanks
Reply With Quote
  #3  
Old 05-06-2010, 12:01 AM
nilbog
Hill Giant
 
Join Date: Nov 2007
Posts: 198
Default

#reloadpl

#repop
Reply With Quote
  #4  
Old 05-06-2010, 01:05 AM
snedecor
Fire Beetle
 
Join Date: Apr 2009
Location: qatar
Posts: 13
Default

#reloadpl will save me so much time =) Thank you. Also for the portion that jolligoro submitted - when i hail him he says the quest::say part and doesnt respon to "tyrant" at all....? Im wondering why any of the;

$client->Message(5,"Have you heard of the new [tyrant] of Last World?");

arent working? I just dont understand... the syntax/text everything is exactly the same as working quests - is there some plugin fix or something? Not quite sure what to do to fix - Thanks.
Reply With Quote
  #5  
Old 05-06-2010, 02:36 AM
snedecor
Fire Beetle
 
Join Date: Apr 2009
Location: qatar
Posts: 13
Default

nvm I figured it out - just missing some brackets - Thanks
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 07:53 PM.


 

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.
       
Powered by vBulletin®, Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3