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

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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 03-11-2005, 10:51 AM
_Kerosh_
Sarnak
 
Join Date: Nov 2004
Posts: 59
Default

Been looking at your quest and found a few errors.

Remember syntax : ), sub EVENT_SAY has a { correct? Where is the one ending the sub event?

Should be after he last function.

It should be quest::say, not questsay::
if ($text=~/earrings/i){
questsay::("I can craft, you a magical [Hoop of Dark Spirits], All I require is a mithril earing, and a jacnith. I will also require 500pp for my work.");
}
if ($text=~/rings/i){
questsay::("You would like a ring? Well I can craft you a ring of dreadful dreams. For this magical ring I require a dream stone, and a silver emerald ring. I will also require 1000 platinum peices for my work.");
}

Hoop of Dark Spirits, you put brackets around it as if they were supposed to say something, but you stopped there?

sub EVENT_ITEM needs a bracket to close it also
sub EVENT_ITEM
{
}
Also, how I would organize my code is like this:
*Note* There are spaces in there, the forum just deleted them.
sub EVENT_SAY
{
if($text=~/hail/i)
{
quest::say("Hullo.");
}
}
As you can see, it is a lot easier to tell what brackets are matched up with what. Just tab every time you have a new thing, such as

x=0;
sub EVENT_SAY
{
if(text=~/hail/i)
{
if($race == "Dwarf")
{
quest::say("Good dwarf, leave me be.");
}
}
}
Also, don't forget elsif, it is much better for coding:
if()
elsif()
else()

Hope I helped : )
__________________
Fate Industries Admin

Last edited by _Kerosh_; 03-11-2005 at 06:53 PM..
Reply With Quote
 

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 06:41 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