Quest trigger on map

Place your questions about osirose here

Moderators: osRose dev team, ospRose dev team, osiRose dev team, Moderators

Quest trigger on map

Postby osrose_newb on Fri Dec 24, 2010 2:44 am

Hi,

I've searched the forums, but can't seem to find the answer to this: What file contains the quest trigger associated with a map? For example, in the Episode Quest, when you walk near the mushroom, it triggers the dialog about the emblem that you dig up. So what file contains the trigger for the quest dialog?

Also, is it possible to trigger a brand new quest not started by talking to an NPC, but rather by the character walking across some spot on a map?

Thanks in advance and Happy Holidays! :D
osrose_newb
Smoulie
Smoulie
 
Posts: 50
Joined: Fri Aug 31, 2007 1:09 am

Re: Quest trigger on map

Postby PurpleYouko on Fri Dec 24, 2010 7:06 pm

quest triggers are stored in the IFOs
Need to lookup information on NARose items, skills, quests?
Now featuring a newly completed skill tree for all classes
Formatting fixed for different resolutions
Image

"A Gazelle is nothing but a giraffe plotted logarithmicaly"
User avatar
PurpleYouko
Rose Guru
Rose Guru
 
Posts: 4733
Joined: Fri Aug 10, 2007 2:05 pm

Re: Quest trigger on map

Postby osrose_newb on Fri Dec 31, 2010 5:33 am

Thanks, PY.

I've spent most of the last week trying to understand quests and the relationships between all the files. Arggggg! Hopefully as people work on the custom client, they do away with some of the messed up ways the original coders did this stuff.

I have another question though: I know some mobs only spawn after a certain number of other mobs are killed, but this is different. This mob only seems to spawn at a certain time of day, no matter how many "lesser" mobs I kill. Which file(s) would I check to see if a mob only spawns at a particular time of day? What is the default behavior if there is no entry in the FILE_AI.STB that matches the entry listed in the AI column of the NPC STB (w/e it's called)?

Thanks in advance and Happy New Year to all!
osrose_newb
Smoulie
Smoulie
 
Posts: 50
Joined: Fri Aug 31, 2007 1:09 am

Re: Quest trigger on map

Postby MightyKai on Fri Dec 31, 2010 10:19 am

i was playing with it to but i don't understand this

the trigger links to 230-01 but where can i find it? what is 230-01?

this is the trigger of the mushrooms.

i don't understand... someone?
Attachments
Image3.jpg
Consultation en ligne viagrasansordonnancefr.com pharmacie de Paris
MightyKai
Antares
Antares
 
Posts: 335
Joined: Mon May 24, 2010 7:34 pm

Re: Quest trigger on map

Postby PurpleYouko on Fri Dec 31, 2010 4:49 pm

osrose_newb wrote:Thanks, PY.

I've spent most of the last week trying to understand quests and the relationships between all the files. Arggggg! Hopefully as people work on the custom client, they do away with some of the messed up ways the original coders did this stuff.

I have another question though: I know some mobs only spawn after a certain number of other mobs are killed, but this is different. This mob only seems to spawn at a certain time of day, no matter how many "lesser" mobs I kill. Which file(s) would I check to see if a mob only spawns at a particular time of day? What is the default behavior if there is no entry in the FILE_AI.STB that matches the entry listed in the AI column of the NPC STB (w/e it's called)?

Thanks in advance and Happy New Year to all!


The default behavior would be to do nothing at all. With an invalid AIP file the monster won't even respond if you attack it. In my own modified osprose server i have the ability to spawn monsters with any AI i like (takes a lot of major rewriting from the basic svn). I often deliberately spawn monsters with no AI so that they stay still for me to get screen shots for my web site :mrgreen:

As for times of day, there are several ways to handle that. most, if not all are related to AIP conditions and some even read quest variables from QSD.
An example of this would be the Jones Gem Quest when Historian Jones sets a specific variable (look in his AIP file) for a limited time based on the current time at the server. While this variable is set, boss monsters all over Junon are able to spawn "Junon's Boss monsters" from their AIP.

QSD is not used often for this kind of thing since it tends to be player oriented but it does have the capability of working in a similar way. take the example of the infected pomics that spawn during the hero quest. that is done with a pomic AIP which reads a quest variable in the player's data then spawns the infected pomic on death of a regular pomic. the demonic children also work this way.
Need to lookup information on NARose items, skills, quests?
Now featuring a newly completed skill tree for all classes
Formatting fixed for different resolutions
Image

"A Gazelle is nothing but a giraffe plotted logarithmicaly"
User avatar
PurpleYouko
Rose Guru
Rose Guru
 
Posts: 4733
Joined: Fri Aug 10, 2007 2:05 pm

Re: Quest trigger on map

Postby PurpleYouko on Fri Dec 31, 2010 5:00 pm

MightyKai wrote:i was playing with it to but i don't understand this

the trigger links to 230-01 but where can i find it? what is 230-01?

this is the trigger of the mushrooms.

i don't understand... someone?


230-01 is a quest trigger that is in one of the QSD files.
When the server starts up it loads ALL the QSDs into memory so it is relatively quick and painless for it to find any given quest trigger in a very short time. the client does the same thing.
You will find trigger 230-01 in QH-101.QSD.
Yes I actually mapped them all so I have a quick reference list (It's true... I have no life. :| )
BTW mapping all the QSDs and following all the quest chains is a SERIOUS pain in the ass.
I have still only traced about a quarter of them for my web site
Need to lookup information on NARose items, skills, quests?
Now featuring a newly completed skill tree for all classes
Formatting fixed for different resolutions
Image

"A Gazelle is nothing but a giraffe plotted logarithmicaly"
User avatar
PurpleYouko
Rose Guru
Rose Guru
 
Posts: 4733
Joined: Fri Aug 10, 2007 2:05 pm

Re: Quest trigger on map

Postby MightyKai on Fri Dec 31, 2010 5:09 pm

then it takes no sence

quest 229? and what is linked to that?
Attachments
Image3.jpg
Consultation en ligne viagrasansordonnancefr.com pharmacie de Paris
MightyKai
Antares
Antares
 
Posts: 335
Joined: Mon May 24, 2010 7:34 pm

Re: Quest trigger on map

Postby PurpleYouko on Fri Dec 31, 2010 7:56 pm

Quest 229 is a part of the hero quest

  1. 229 The Man in the Red Robe. 
  2. Myad recommended investigating the area around the infected mushrooms to find more clues about Herune.


here is quest trigger 230-01 and 230-02

  1. QH-101.QSD  230-01          Propogate on failure        0          
  2.         Record 1 has 1 conditions               Check Quest 229 TRUE if player has this quest          
  3.         Record 1 has 1 actions                  Execute Client Command mushroom2   
  4. QH-101.QSD  230-02          Propogate on failure        0   
  5.         Record 2 has 1 conditions               Check Quest 229 TRUE if player has this quest   
  6.         Record 2 has 3 actions                  Select Quest 229   
  7.                                                 Replace Quest 230 and delete items  
  8.                                                 Update quest items.  Add 1 items with id 13628 
  9.  


The client command is the thing that opens the action window like the one you get with the fairy when you click the little bell at level 10.

As you will see 230-01 is NOT set to propegate on failure so it does not automatically run on into 230-02 if it fails.
230-02 is the quest trigger that gives you the item on return from the client command function.

So what happens is this.
1) get quest 229 from Myad
2) go to mushroom patch and find the right spot to activate the IFO quest trigger
3) IFO trigger runs 230-01 which checks that you have quest 229 and if you do it opens the client command window. (Like an NPC dialog window but for the mushrooms)
4) Dialog window calls 230-01 quest trigger on exit. This again checks that you have quest 229 then if you do it replaces it with quest 230 and gives you the quest item
5) take quest item back to Myad to finish quest 230 and get your reward

Make sense?

PS
it might make more sense if you use my QSD reader tool from the tools list.
It's not an editor but it reads out the QSD files in a much easier to understand format
Need to lookup information on NARose items, skills, quests?
Now featuring a newly completed skill tree for all classes
Formatting fixed for different resolutions
Image

"A Gazelle is nothing but a giraffe plotted logarithmicaly"
User avatar
PurpleYouko
Rose Guru
Rose Guru
 
Posts: 4733
Joined: Fri Aug 10, 2007 2:05 pm

Re: Quest trigger on map

Postby osrose_newb on Fri Dec 31, 2010 9:16 pm

Thanks again, PY!

Will your QSD reader work with osirose clients like 7Hearts? I get an error when I try to load those QSD's:
error.JPG


The debugger shows it failing on this line:
error2.jpg


The contents of the message variable at that point is:
Message: "=HEX2DEC(CONCATENATE(DEC2HEX({d32),DEC2HEX({c32),DEC2HEX({b32),DEC2HEX({a32)))"
osrose_newb
Smoulie
Smoulie
 
Posts: 50
Joined: Fri Aug 31, 2007 1:09 am

Re: Quest trigger on map

Postby PurpleYouko on Sat Jan 01, 2011 6:12 pm

what is the content of the variable "row" at that point?

if row-1 is less than 1 or greater than 36,000 or so then you will get an error since this represents a cell address within excel.
It can only access values of 1 to 36k if row is defined as an integer variable

if the QSD is too long then it won't load properly in earlier versions of excel and will only work in office 2010 if you change the definition of row from integer to long.

I actually use a much more updated version of this program to extract all the QSD data.
I guess i could supply you with a copy if you like. It contains a lot of functions that you probably won't ever need though so don't mess around with the database export functions in the "questgivers" tab :D
I use that to update the quest data to my web site.

QSD Reader.zip
(1.63 MiB) Downloaded 699 times
Need to lookup information on NARose items, skills, quests?
Now featuring a newly completed skill tree for all classes
Formatting fixed for different resolutions
Image

"A Gazelle is nothing but a giraffe plotted logarithmicaly"
User avatar
PurpleYouko
Rose Guru
Rose Guru
 
Posts: 4733
Joined: Fri Aug 10, 2007 2:05 pm


Return to Question Zone

Who is online

Users browsing this forum: No registered users and 4 guests