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

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

Reply
 
Thread Tools Display Modes
  #1  
Old 11-10-2003, 11:36 AM
Kgaul
Hill Giant
 
Join Date: Apr 2003
Posts: 225
Default Might be jumpig the gun..

i noticed the quests.h was modied but the quests in the folders stops the zone from loading. was the format changed of the quest or is this a known bug?

Thanks for your hard work,


Kgaul
Reply With Quote
  #2  
Old 11-10-2003, 03:51 PM
killspree
Dragon
 
Join Date: Jun 2002
Posts: 776
Default

The quest parser is still being rewritten from what I understand.
__________________
Xeldan
Lead Content Designer
Shards of Dalaya
Reply With Quote
  #3  
Old 11-10-2003, 08:00 PM
Edgar1898
Senior Member
Former EQEmu Developer
Current EQ2Emu Lead Developer
 
Join Date: Dec 2002
Posts: 1,065
Default

Just got it fixed last night, will be in the next cvs dump.

*NOTE* Quests are still being tested and they are VERY picky, if you have one format error, you will get bad results.
__________________
Lethal Encounter
Reply With Quote
  #4  
Old 11-10-2003, 10:35 PM
Kgaul
Hill Giant
 
Join Date: Apr 2003
Posts: 225
Default

you guys own,

Kgaul
Reply With Quote
  #5  
Old 11-11-2003, 06:59 AM
Edgar1898
Senior Member
Former EQEmu Developer
Current EQ2Emu Lead Developer
 
Join Date: Dec 2002
Posts: 1,065
Default

For those of you who dont know the new format of quests I'll give you a small heads up with this sample quest. All quests go into a folder called "quests" under the directory where you run your zones. In addition, each zone that you want to have quests needs to have its own folder under the quests folder. IE you want some mob in crushbone to have a quest, you would create the folder "quests" if it isnt created already and add a folder called "crushbone" under quests. Then once you have the directory set up, you will need to get the NPC ID of the mob you want to have the quest. Once you have that completed the directory structure would look like this:
(directory you run eqemu from)/quests/crushbone/19943.qst where 19943 is the NPC ID for the mob. Below is the quest, it shows you some of the basic quest functions:

Code:
EVENT_SAY {
if($1- =~ "Hail") { say("Hail citizen! I am the Captain of the Freeport Militia.  It is my duty to recruit people to kill the deathfist's that plague our land. Are you willing to [assist] the Freeport Militia?"); }
}

EVENT_ITEM {
if($item1 == "13916" && $copper == 0 && $silver == 6) {  say("Good job!  Here is to compensate for your troubles."); exp("1000"); givecash("0","7","0","0"); }
if($itemcount(13916)!=1) { say("hi"); summonitem($item1); }
}
PS: dont forget the ";" after each function.
__________________
Lethal Encounter
Reply With Quote
  #6  
Old 11-11-2003, 07:57 AM
a_Guest03
Demi-God
 
Join Date: Jun 2002
Posts: 1,693
Default

It basically looks like C code. I like it, Lethal. I understand this.
__________________
It's never too late to be something great.
Reply With Quote
  #7  
Old 11-11-2003, 07:59 AM
Rabaril
Sarnak
 
Join Date: Sep 2003
Posts: 62
Default

I know very little of code languages... But this seems very easy to understand, with the organization... And almost template like command strings...

Great job!
__________________
"Corruption causes justice to seem like madness..." - Samurai X
Reply With Quote
  #8  
Old 11-15-2003, 09:18 PM
mollymillions's Avatar
mollymillions
Hill Giant
 
Join Date: May 2003
Posts: 176
Default

Thanks for the pointers.
I am finding the example wont work with the current 0.50 release version.
I created a file for testing (\Quests\freportw.5252.qst) containing the example text:

EVENT_SAY {
if($1- =~ "Hail") { say("Hail citizen! I am the Captain of the Freeport Militia. It is my duty to recruit people to kill the deathfist's that plague our land. Are you willing to [assist] the Freeport Militia?"); }
}
/*END of FILE Zone:freportw ID:5252 -- Velan_Torresk */

Zone.exe gives the following error when the zone is loaded:

Line: 3,File: quests/freportw/5252.qst | error C0006: syntax error : too many ')'s

I tried different variations and commands but zone.exe always gives the "error C0006: syntax error : too many ')'" message.
Reply With Quote
  #9  
Old 11-16-2003, 02:53 AM
Kgaul
Hill Giant
 
Join Date: Apr 2003
Posts: 225
Default

same here untill i replaced all the /* */ with just // for texting the code...

also if you just test it with the EVENT_SAY and leave the rest you can see what works...


Kgaul
Reply With Quote
  #10  
Old 11-16-2003, 03:37 AM
mollymillions's Avatar
mollymillions
Hill Giant
 
Join Date: May 2003
Posts: 176
Default

Cheers
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 05:20 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