Event _onQuestUpdate Help

bjcasey

ISX Specialist
I'm trying to use the event _onQuestUpdate to gather information about a current quest. Here is a paste of part of the code:

Code:
atom EQ2_onQuestUpdate(string ID, string Name, string CurrentZone, string Category, string Description, ... ProgressText)
Before this attempt using the atom, I was using the customtrigger approach described here --> http://eq2.isxgames.com/wiki/index.php?title=ISXEQ2:QUESTDATA_(Custom_Trigger)

The examples listed on that page and the quests that I was able to test the example script on echo the following to the console:

Code:
QUESTDATA::ID(11933484)
QUESTDATA::NAME(The D'Morte Family Crest)
QUESTDATA::CURRENTZONE(The Crypt of T'haen: Endless Twilight)
QUESTDATA::DESCRIPTION(The ribbon bearing the crest of the D'Morte family shimmers slightly through the tarnish that has built up over the centuries. A faint, almost imperceptible, glow seems to emanate from the silver symbol.)
QUESTDATA::PROGRESSTEXT:1.0(The crest seemed to glow very brightly as I neared the falls.) 
QUESTDATA::PROGRESSTEXT:2.0(As soon as the intruder fell, the gentle tug of the crest continued its pull towards the Timber Falls.)
QUESTDATA::PROGRESSTEXT:3.0(Upon entering the Tombs, you sense the ring pulling you deeper inside. Perhaps further exploration will reveal more...)
QUESTDATA::PROGRESSTEXT:4.0(There is yet a deeper urge from the crest to visit the vaults above these caves.)
QUESTDATA::PROGRESSTEXT:4.1(Find a way to access the higher areas of the caves.)
I'm looking for the following information:

1) Why does the event trigger twice when receiving the quest?
2) Why does it trigger off of group member quest updates?
3) How can I obtain the PROGRESSTEXT numbers using the event? 1.1 or 3.5 is what I am looking for.
 

mistahmikey

Active Member
Don't know the answers to 1) or 2), but I bet you can figure out 3) with the following information from the Lavishscript site:

To accept a variable number of parameters to a function, use ... as the object type, as the last parameter, such as:
function HowManyParameters(... Params)


The variable will be an array of strings, with the size equal to the number of parameters actually given to the function.
I suspect the progress number is Params[1], with the remaining Parms[2]...Params[Params.Size] being the progress text.
 
Last edited:
Top Bottom