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.

Reply
 
Thread Tools Display Modes
  #1  
Old 04-12-2004, 06:51 AM
DeletedUser
Fire Beetle
 
Join Date: Sep 2002
Posts: 0
Default Quest Woe

Got a problem with this quest!
If anyone can help me, many thanks!

sub EVENT_SAY {
if($text=~/Hail/i){
quest::say("Welcome to EQEmu! Get your bearings and go pick up some supplies while you visit this haven. When you are [ready], I will instruct you further."); }
quest::givecash (8,4,3,1);
}

sub EVENT_SAY {
if($text=~/small/i){
quest::say("Tell me something I don't know, smartass."); }
}

sub EVENT_SAY {
if($text=~/ready/i){
quest::say("Take this. You will need it.");
quest::rain(1);
}
}
#END of FILE Zone:tutorial ID:3 -- A_Gnomish_Guide

However when I just use the quest:

sub EVENT_SAY {
if($text=~/Hail/i){
quest::say("Welcome to EQEmu! Get your bearings and go pick up some supplies while you visit this haven. When you are [ready], I will instruct you further."); }
}
#END of FILE Zone:tutorial ID:3 -- A_Gnomish_Guide

This works fine... I could have messed up in my programming of this quest. Any help is greatly appriciated!

-Wizzel
Reply With Quote
  #2  
Old 04-12-2004, 07:25 AM
cofruben
Old-EQEmu Developer
 
Join Date: Oct 2002
Location: Spain
Posts: 323
Default

try this
Code:
sub EVENT_SAY { 
if($text=~/Hail/i){ 
quest::say("Welcome to EQEmu! Get your bearings and go pick up some supplies while you visit this haven. When you are [ready], I will instruct you further."); quest::givecash (8,4,3,1); }
if($text=~/small/i){quest::say("Tell me something I don't know, smartass."); } 
if($text=~/ready/i){quest::say("Take this. You will need it."); quest::rain(1); }
}
Reply With Quote
  #3  
Old 04-12-2004, 07:35 AM
DeletedUser
Fire Beetle
 
Join Date: Sep 2002
Posts: 0
Default

It didn't work...But i may have an idea. the stuff at the bottom, that says ID:3 and A_Gnomish_Guide

Its all setup correctly, but do i need to include it or can it just be the whole pl file is exactly what you posted.

Other than that, do you have any other ideas.

By the way, thanks very much for the quick response.
Reply With Quote
  #4  
Old 04-12-2004, 07:37 AM
cofruben
Old-EQEmu Developer
 
Join Date: Oct 2002
Location: Spain
Posts: 323
Default

sorry look again,put bad code,edited
Reply With Quote
  #5  
Old 04-12-2004, 07:38 AM
DeletedUser
Fire Beetle
 
Join Date: Sep 2002
Posts: 0
Default

gonna try it now and thanks again you are most helpful!
Reply With Quote
  #6  
Old 04-12-2004, 07:42 AM
DeletedUser
Fire Beetle
 
Join Date: Sep 2002
Posts: 0
Default

hmmm.... still not working...maybe i am doing something wrong. I have another quest in the zone and it works fine...

Here is what I have...tell me if there is something wrong

sub EVENT_SAY {
if($text=~/Hail/i){
quest::say("Welcome to EQEmu! Get your bearings and go pick up some supplies while you visit this haven. When you are [ready], I will instruct you further."); quest::givecash (8,4,3,1); }
if($text=~/small/i){quest::say("Tell me something I don't know, smartass."); }
if($text=~/ready/i){quest::say("Take this. You will need it."); quest::rain(1); }
#END of FILE Zone:tutorial ID:3 -- A_Gnomish_Guide

thanks
Reply With Quote
  #7  
Old 04-12-2004, 07:44 AM
cofruben
Old-EQEmu Developer
 
Join Date: Oct 2002
Location: Spain
Posts: 323
Default

Code:
sub EVENT_SAY { 
if($text=~/Hail/i){ 
quest::say("Welcome to EQEmu! Get your bearings and go pick up some supplies while you visit this haven. When you are [ready], I will instruct you further."); quest::givecash (8,4,3,1); } 
if($text=~/small/i){quest::say("Tell me something I don't know, smartass."); } 
if($text=~/ready/i){quest::say("Take this. You will need it."); quest::rain(1); } 
}
You forgot last '}'.

Name of the quest should be 3.pl (3 is your npc_type id)
and it should be saved in quest/tutorial/3.pl I guess
Reply With Quote
  #8  
Old 04-12-2004, 07:50 AM
DeletedUser
Fire Beetle
 
Join Date: Sep 2002
Posts: 0
Default

thanks for your help, its not working though...hmmm thats weird and i go up to the gnomish banker and hail him and he reacts to me. All the gnomish guide does it turn towards me...

Anyother suggestions and thank you sir for your help or if anyone could give me an example of a working quest with rain it would be much appriciated...
Reply With Quote
  #9  
Old 04-12-2004, 07:51 AM
DeletedUser
Fire Beetle
 
Join Date: Sep 2002
Posts: 0
Default

FYI, the gnomish banker is:

sub EVENT_SAY {
if($text=~/Hail/i){
quest::say("I can hold your money when you don't want to carry it around with you..."); }
}
#END of FILE Zone:tutorial ID:2 -- A_Gnomish_Banker
Reply With Quote
  #10  
Old 04-12-2004, 08:08 AM
cofruben
Old-EQEmu Developer
 
Join Date: Oct 2002
Location: Spain
Posts: 323
Default

Code:
sub EVENT_SAY
{
if($text=~/hail/i){quest::("Hi."); quest::rain(1); }
}
this should work.Oh,directory is quests,not quest.
Reply With Quote
  #11  
Old 04-12-2004, 09:18 AM
nattini
Fire Beetle
 
Join Date: Mar 2004
Posts: 15
Default

at a quick glance, it looks like you're doing everything correctly. here something to try though, which may or may not help you.

With my particular version of perl, no script i wrote would work unless I ended the file with a few extra blank lines. i.e. hitting enter twice after the comment line describing the NPC. If I deleted those two lines it stopped working altogether - but never threw an error. Parhaps it has something to do with the differences between *nix and MS newline characters and carrige returns? <shrug>

-nattini
Reply With Quote
  #12  
Old 04-12-2004, 09:36 AM
DeletedUser
Fire Beetle
 
Join Date: Sep 2002
Posts: 0
Default

are you talking about before the
ID:3 ---Gnomish Banker

or after it?
Reply With Quote
  #13  
Old 04-12-2004, 10:06 AM
nattini
Fire Beetle
 
Join Date: Mar 2004
Posts: 15
Default

after. at the very end of the file after the line with the NPC name.

but like i said - it might not be related. I hadn't seen any mention of it on the boards so I assumed it was a problem specific to my particular version of perl... (but oddly all of quests i downloaded had those 2 extra lines at the end)

-nattini
Reply With Quote
  #14  
Old 04-12-2004, 10:14 AM
Monrezz's Avatar
Monrezz
Dragon
 
Join Date: Mar 2003
Location: #loc
Posts: 745
Default

I think rain() is broken, try removing that and see.

*EDIT* Or try this:

Code:
sub EVENT_SAY
{
  if ($text=~/Hail/i)
    {
      quest::say("Welcome to EQEmu! Get your bearings and go pick up some supplies while you visit this haven. When you are [ready] I will instruct you further.");
      quest::givecash (8,4,3,1);
    }
    
  if ($text=~/small/i)
    {
      quest::say("Tell me something I don't know, smartass.");
    }
    
  if ($text=~/ready/i)
    {
      quest::say("Take this. You will need it.");
      quest::rain(1);
    }
}

#END of FILE Zone:tutorial ID:3 -- A_Gnomish_Guide
__________________

kRPG Profile
Reply With Quote
Reply


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:16 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