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 03-30-2007, 08:51 AM
herold's Avatar
herold
Sarnak
 
Join Date: Jan 2004
Location: Denmark
Posts: 58
Default

I checked the TutB quest folder and found Vahlara.pl file ... it contained something interesting ...
Code:
 if (($text=~/hail/i)&&(${$name}!=2)){
    quest::delglobal("$name");
    quest::setglobal("$name",2,3,"F");
    $name=undef;
    quest::summonitem(59943);
    quest::say("I have something that might save you from the same fate. Take this kobold charm. May it bring you good luck, $name.");
  }
That code has something to do with flags, yes?

>>EDIT<<

I tried modifying the script and this is what I came up with, so far ...
Code:
sub EVENT_SAY{
  if (($text=~/hail/i)&&(${$name}==2)){
    quest::say("Greetings friend and welcome to the world of Norrath. Are [you interested in some gear] to help you get started?");
  }

 if (($text=~/i am interested in some gear/i)&&(${$name}!=2)){
    quest::delglobal("$name");
    quest::setglobal("$name",2,0,"F");
    $name=undef;
    quest::summonitem(xxxxx);
    quest::summonitem(xxxxx);
    quest::say("Here you go, $name. Now please don't loose these precious items, as I will not assist you any further.");
  }
I know it isn't complete yet, still need the code in case someone tries a second time (if it is possible) and I have absolutely no diea if the code is even near correct ... but, I am confused about a small number of things:

1. line 2 - the number "2" ???
2. line 6 - the number "2" again ???
3. line 7 - all of it ... why "delglobal" ???
4. line 8 - the number "2" here defines "value" = "this/all/this" and the number "0" defines "options" = "this/this/this" and it should only pertain to that NPC for that PLAYER in that ZONE ?!?
I changed to the number "0" from a "3". The "F" defines "duration" and I set this to "F" as it should last forever.

Any further advice and/or corrections? As I don't imagine this script is complete ...

Last edited by herold; 03-30-2007 at 05:17 PM..
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 12:37 AM.


 

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