Missing Quest Complete over-head icon
- John Adams
- Retired
- Posts: 9684
- Joined: Thu Jul 26, 2007 6:27 am
- EQ2Emu Server: EQ2Emulator Test Center
- Characters: John
- Location: Arizona
- Contact:
Missing Quest Complete over-head icon
Murrar Shar does not seem to display the "book" over his head when the quest is completed. Is this in yet, or is my quest still not completed? I am about to retest this quest.
Yes, just re-did the kill 5 crabs, and no quest book noting I have something to Complete with that NPC.
Yes, just re-did the kill 5 crabs, and no quest book noting I have something to Complete with that NPC.
-
LethalEncounter
- Team: Zombie
- Posts: 2717
- Joined: Wed Jul 25, 2007 10:10 pm
- John Adams
- Retired
- Posts: 9684
- Joined: Thu Jul 26, 2007 6:27 am
- EQ2Emu Server: EQ2Emulator Test Center
- Characters: John
- Location: Arizona
- Contact:
-
LethalEncounter
- Team: Zombie
- Posts: 2717
- Joined: Wed Jul 25, 2007 10:10 pm
I havent had a chance to look at it yet, but be sure that you call the QuestReturnNPC(Quest, NPC ID) function in the quest's Init(Quest) function. Example: QuestReturnNPC(Quest, 547)
Without this, the quest has no idea which NPC it should be returned to (although I should probably just default to the one giving it).
Without this, the quest has no idea which NPC it should be returned to (although I should probably just default to the one giving it).
- John Adams
- Retired
- Posts: 9684
- Joined: Thu Jul 26, 2007 6:27 am
- EQ2Emu Server: EQ2Emulator Test Center
- Characters: John
- Location: Arizona
- Contact:
-
LethalEncounter
- Team: Zombie
- Posts: 2717
- Joined: Wed Jul 25, 2007 10:10 pm
I'm not sure what you mean. The info saved in the database would just be enough to set the quest info when they logged in. You will still need to define where a quest ends inside of the quest file. That information will be loaded along with the step information. If I'm missing something please let me know, but I think that will work fine. Again, I will make the end point default to the starting NPC if it is not given.
- John Adams
- Retired
- Posts: 9684
- Joined: Thu Jul 26, 2007 6:27 am
- EQ2Emu Server: EQ2Emulator Test Center
- Characters: John
- Location: Arizona
- Contact:
Ok, I just did not see a field for "spawn_id", but I think I understand that if the player has the quest, it is in their `character_quests` table, with a `quest_id`, and therefore is referenced in that script - yah? So it will always find the QuestReturnNPC() value.
Would it be more efficient to just tell the character_quest table who gave that quest, so if progress = completed, you do not have to skim through the LUA? Honestly, I do not know the magic behind keeping tons of scripts in memory, so maybe it is even faster the way it is now. heh. my brain hurts.
Would it be more efficient to just tell the character_quest table who gave that quest, so if progress = completed, you do not have to skim through the LUA? Honestly, I do not know the magic behind keeping tons of scripts in memory, so maybe it is even faster the way it is now. heh. my brain hurts.
-
LethalEncounter
- Team: Zombie
- Posts: 2717
- Joined: Wed Jul 25, 2007 10:10 pm
Hehe, well quests consist of 2 different parts that work hand-in-hand. The main part of the questing system is written in C++ and therefore much more efficient that the LUA scripts. The C++ portion of the questing system takes care of the loading and processing of the actual quest. The LUA part of the system is only used when the main quest system determines that it should call one of the LUA functions. So once a quest is loaded, the LUA stuff isn't used until the player completes a quest update.
BTW, the code on SVN is updated and you should get the book even without using the QuestReturnNPC function.
BTW, the code on SVN is updated and you should get the book even without using the QuestReturnNPC function.
- John Adams
- Retired
- Posts: 9684
- Joined: Thu Jul 26, 2007 6:27 am
- EQ2Emu Server: EQ2Emulator Test Center
- Characters: John
- Location: Arizona
- Contact:
- John Adams
- Retired
- Posts: 9684
- Joined: Thu Jul 26, 2007 6:27 am
- EQ2Emu Server: EQ2Emulator Test Center
- Characters: John
- Location: Arizona
- Contact:
Who is online
Users browsing this forum: No registered users and 0 guests