Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Database/World Building

Archive::Database/World Building Archive area for General Discussion's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 06-08-2002, 03:04 AM
skullitor
Fire Beetle
 
Join Date: May 2002
Posts: 5
Default Whats wrong with my quest

here is what it is

NPC_SCRIPT 1{
TRIGGER_TEXT:Hail:{

SAY:HOWDY!
SAY:You want a gift(yes or no)
}
TRIGGER_TEXT:yes:{
SAY:Here you go
SPAWN_ITEM 5004
SAY:Genis is the coolest guy ever!!!!
SAY:This sword will be all powerful, next time the server is reset.
SAY:It will be reset at 7:30 central US Time
SAY:Adios!
}
TRIGGER_TEXT:no:{
SAY: SCREW YOU
CAST_SPELL 982
SAY:SORRY!
SAY:lol
}
}
}
Reply With Quote
  #2  
Old 06-08-2002, 03:10 AM
stormgod
Discordant
 
Join Date: Apr 2002
Posts: 419
Default

first there is one last } to cut and are you sure that your npcid is 1 ?
Reply With Quote
  #3  
Old 06-08-2002, 03:49 AM
skullitor
Fire Beetle
 
Join Date: May 2002
Posts: 5
Default

yup his id is 1. what do you have to setup in the db to get him to work?
Reply With Quote
  #4  
Old 06-08-2002, 04:13 AM
Lurker_005
Demi-God
 
Join Date: Jan 2002
Location: Tourist town USA
Posts: 1,671
Default

nothing needs to be done in the db. Just save that without the last } as 1.qst and place it in the quests directory.

And just to be sure, in game target the npc and type #showstats that will list the npcID. Don't forget to target the npc when trying to use the quest.
__________________
Please read the forum rules and look at reacent messages before posting.
Reply With Quote
  #5  
Old 06-08-2002, 04:21 AM
Hardy's Avatar
Hardy
Dragon
 
Join Date: Feb 2002
Location: GI, NE
Posts: 924
Default

Might as well post here instead of starting a new thread:

How do you get the NPC to say your name? Can you just type in %T? Haven't tried the quests yet, was just seeing if that worked.
Reply With Quote
  #6  
Old 06-08-2002, 04:28 AM
stormgod
Discordant
 
Join Date: Apr 2002
Posts: 419
Default

to say your name use %CHARNAME

you can use too %CHARRACE and %CHARCLASS


also for skullitor , add a space at the end of everyline of your quests it may help particularly if last character of the line is a number
Reply With Quote
  #7  
Old 06-08-2002, 10:12 AM
Lurker_005
Demi-God
 
Join Date: Jan 2002
Location: Tourist town USA
Posts: 1,671
Default

Hmm will the : in 7:30 cause any problems?

skullitor, is anything happening? Or is it not working as you intend?
__________________
Please read the forum rules and look at reacent messages before posting.
Reply With Quote
  #8  
Old 06-08-2002, 12:10 PM
skullitor
Fire Beetle
 
Join Date: May 2002
Posts: 5
Default

no nothing is happening at all the guy dosent reply in any way
Reply With Quote
  #9  
Old 06-08-2002, 08:18 PM
Hardy's Avatar
Hardy
Dragon
 
Join Date: Feb 2002
Location: GI, NE
Posts: 924
Default

kewl, thanks stormgod
Reply With Quote
  #10  
Old 06-09-2002, 07:38 AM
mudman
Hill Giant
 
Join Date: Jun 2002
Posts: 163
Default wow

wow nice it doesn't look that hard to write a quest.

could someone show me a good script to get priest of discord to give levels and skills to anyone that hails him? thanks would help people very much on my server

Quote:
---------------------------------------------------------------------------
nothing needs to be done in the db. Just save that without the last } as 1.qst and place it in the quests directory
----------------------------------------------------------------------------

how do i get the priest of discord to do 1.qst? i mean assign it to him?

also i dont see a quests dir, are you talking about FQAdmin? I am a bit concerned about using it as it seems it corrupts my db.

Thanks, M.
Reply With Quote
  #11  
Old 06-09-2002, 08:17 AM
Baltar
Hill Giant
 
Join Date: Jan 2002
Posts: 185
Default

The npcid determines the file name. So if your npcid is 99 then the file will be 99.qst. The npcid can be located in the database
under the npc_types table. The column name is 'id'.

The directory does not exist in the default install, you will have to make it. Title it 'quests'.

for eg. if your emu directory is c:\eqemu, then the quest directory will be c:\eqemu\quests

Your sample Priest script would look like this:

NPC_SCRIPT 1 {
TRIGGER_TEXT:Hail:{
RAIN 0
EMOTE:Grins at %CHARNAME%
FACE_TARGET
SAY:Hello %CHARNAME%, I shall give you a skill or a level
SAY:Which one * skill * or * level *
}

TRIGGER_TEXT:skill:{
SAY:Here's some skill
SETSKILL 0 1
SETSKILL 1 1
SETSKILL 2 1
SETSKILL 3 1
}

TRIGGER_TEXT:level:{
say:Here's some level
LEVEL 60
}

* note * you must put a space after everyline or you will get
a parse error.

There are many more commands available but you gotta search
through wesquests.cpp for them
Reply With Quote
  #12  
Old 06-09-2002, 09:16 AM
TheClaus
Discordant
 
Join Date: Jan 2002
Location: Manteca, CA
Posts: 352
Default

Could it be broke in LInux again. I am having problems with it not working in Linux
Reply With Quote
  #13  
Old 06-09-2002, 01:21 PM
mudman
Hill Giant
 
Join Date: Jun 2002
Posts: 163
Default great

thanks much Baltar,

I tried this for shady , i did #showstat it said shady is character ID 292

so i made a dir in eqemu called Quest

and put in a file made with notepad called 282.qst

contents

NPC_SCRIPT 1 {
TRIGGER_TEXT:Hail:{
RAIN 0
EMOTE:Grins at %CHARNAME%
FACE_TARGET
SAY:Hello %CHARNAME%, I shall give you a skill or a level
SAY:Which one * skill * or * level *
}

TRIGGER_TEXT:skill:{
SAY:Here's some skill
SETSKILL 0 1
SETSKILL 1 1
SETSKILL 2 1
SETSKILL 3 1
}

TRIGGER_TEXT:level:{
say:Here's some level
LEVEL 60
}

after that re ran the server but shady wont use the script any idea of my error ?

Thanks much
M.
Reply With Quote
  #14  
Old 06-09-2002, 11:06 PM
h37lion
Sarnak
 
Join Date: Mar 2002
Posts: 52
Default

Im not sure, but I believe it has something to do with the name of the folder :Quest:
try renaming it to "questS" (notice the capital S)
__________________
-h37 | Kron the Horrible
Reply With Quote
  #15  
Old 06-09-2002, 11:28 PM
stormgod
Discordant
 
Join Date: Apr 2002
Posts: 419
Default

notice the capital S but put a s hehe ie quests will work when questS may not
but dont forget it
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 01:54 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