PDA

View Full Version : Whats wrong with my quest


skullitor
06-08-2002, 03:04 AM
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
}
}
}

stormgod
06-08-2002, 03:10 AM
first there is one last } to cut and are you sure that your npcid is 1 ?

skullitor
06-08-2002, 03:49 AM
yup his id is 1. what do you have to setup in the db to get him to work?

Lurker_005
06-08-2002, 04:13 AM
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.

Hardy
06-08-2002, 04:21 AM
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.

stormgod
06-08-2002, 04:28 AM
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

Lurker_005
06-08-2002, 10:12 AM
Hmm will the : in 7:30 cause any problems?

skullitor, is anything happening? Or is it not working as you intend?

skullitor
06-08-2002, 12:10 PM
no nothing is happening at all the guy dosent reply in any way

Hardy
06-08-2002, 08:18 PM
kewl, thanks stormgod :)

mudman
06-09-2002, 07:38 AM
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.

Baltar
06-09-2002, 08:17 AM
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

TheClaus
06-09-2002, 09:16 AM
Could it be broke in LInux again. I am having problems with it not working in Linux

mudman
06-09-2002, 01:21 PM
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.

h37lion
06-09-2002, 11:06 PM
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)

stormgod
06-09-2002, 11:28 PM
notice the capital S but put a s hehe ie quests will work when questS may not
but dont forget it ;)

Baltar
06-10-2002, 05:04 AM
mudman make sure the directory is 'quests' not 'quest'
and also line 1 says:

NPC_SCRIPT 1 {

it should read

NPC_SCRIPT 292 {

I forgot to tell that.

stormgod
06-10-2002, 05:18 AM
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 292.qst

contents

NPC_SCRIPT 292 {
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.

take care about using the same ID number everywhere as I put in red in your quests
also dont forget the missing closing bracket in blue

mudman
06-10-2002, 09:03 AM
Awsome that worked great, thanks much.

Quote
---------------------------------------------------------------------------
here are many more commands available but you gotta search
through wesquests.cpp for them
------------------------------------------------------------------------------

Cool where can I find these quests commands mentioned above?
where is this file at ? or is it a web site?

M.

stormgod
06-10-2002, 10:03 AM
this file is in the eqemu source

skullitor
06-10-2002, 10:06 AM
In my original post question dose it matter that im running linux?

mudman
06-10-2002, 01:27 PM
TRIGGER_TEXT:yes:{
Oh.. Hah your no match for me !
ATTACK %CHARNAME%
}

does this subscript look right ? i tried hatelist too ty )

M.


Could anyone post a zipped file of some good quests mabye that would be best teacher thanks

stormgod
06-10-2002, 02:20 PM
TRIGGER_TEXT:yes:{
SAY: Oh.. Hah your no match for me !
ADD_HATELIST 292
}


this would work better
(292 is the npcid , I'm supposing that you are using the same npc , if not change it to the right number or to the number of the npc you want to attack the target )

mudman
06-12-2002, 05:43 AM
humm, i tried

TRIGGER_TEXT:yes:{
SAY: Oh.. Hah your no match for me !
ADD_HATELIST 292
}

also:

ATTACK %charactername%
ATTACK 292

still he does not go after the player, is this just a bug?

how about have im just cast on the player then?

Ty.
M.

stormgod
06-12-2002, 06:05 AM
attack is not a command so dont bother with this , I dont know where you got this command but its wrong

the only command working is ADD_HATELIST

try with : it could be that , not sure
ADD_HATELIST:292

also are you sure the npc id is 292 because on the actual worlddata or ariak or lurker 292 is a bixie queen ???