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.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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
 


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 11:25 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