Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Quests

Archive::Quests Archive area for Quests's posts that were moved here after an inactivity period of 90 days.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #21  
Old 07-22-2004, 07:41 AM
Cisyouc
Demi-God
 
Join Date: Jun 2004
Location: Heaven.
Posts: 1,260
Default

Quote:
Originally Posted by KhaN
Quote:
people in #support have said my quest is correct
I would like to know what they smoke ?!~

Try something like this, your syntax is wrong.
Code:
*#281099.pl 
sub EVENT_SAY 
{ 
 if ($text=~/hail/i) 
 { 
  if($npcvari1 == 0) 
  {
   quest::say("Hello! Would you be interested in helping me?"); 
   $npcvari1="0";    } 
  }
 if($text=~/helping/i)
 {
  if($npcvari1 == 1 &&  
  { 
   quest::targlobal("npcvari1","1","Y5",281099,$charid,26);
   quest::say("Thanks!"); 
   quest::me("You have recieved a character flag!");
   $npcvari1="0"; 
  } 
 }
}
You check action done to NPC, then if there is a variable and its value, then you give the action to do.

One important things is to ALWAYS add "quest::targlobal" as the first actions, or you can have bugs.
Also be sure to always perl cache by using command "$npcvari1="0"; ".
*
Hope that will help and GL in dev quests.
No i dont think you understood the quest, after you complete the quest the NPC should just respond with "Thanks for helping!".

and will

$npcvari1="0";

reset the global back to 0? Becuase thats not what I want.

Thanks in advance.
__________________
namespace retval { template <class T> class ReturnValueGen { private: T x; public: ReturnValueGen() { x = 0; }; T& Generator() { return x; }; }; } int main() { retval::ReturnValueGen<int> retvalue; return retvalue.Generator(); }
C++ is wonderful.
Reply With Quote
 


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 04:47 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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3