Page 1 of 1
Quest Script Issue
Posted: Thu Apr 22, 2010 12:35 pm
by abndrew82
Hello
I have created a quest in my world, and part of it is working but its not finishing, Here is a screenshot of where the problem is, and what I think may be the issue.
Along with the 2 Spawn Scripts, and the Quest Script.
If someone can please look at them and see if they see the issue.
The problem is, the NPC (Erlar) gave me the quest with no issue, and I went to killed the mobs as requested, got updates with no problem, got done with that, and went back to Erlar and he had the completion icon as seen in the picture, but wouldnt respond to hails, to actually complete the step and send me to the next npc.
I am not sure if I am on the right track here, but thinking the issue may be that if you look at the image, there seems to be a space in between the step of killing and going back to Erlar that is just a period. Not sure if I messed up the steps and that is what is throwing it off.
Erlar.lua =
http://pastebin.com/drgb42wz
Rikar.lua =
http://pastebin.com/gB9nMb4n
diseasedskeleton.lua =
http://pastebin.com/3wDVdfny
Uploaded the LUA's to pastebin due to 3 attachment limit.
Thanks for any assistance, so I may learn more.
Drew
Re: Quest Script Issue
Posted: Thu Apr 22, 2010 3:42 pm
by Scatman
In Rikar's script you forgot the StartConversation() function.
Code: Select all
function hailed(NPC, Spawn)
FaceTarget(NPC, Spawn)
conversation = CreateConversation()
if HasQuest(Spawn, 304) and GetQuestStep(Spawn, 304) == 3 then
AddConversationOption(conversation, "I did a favor for Erlar, and he said I should speak to you about a reward.", "DidFavorForJhana")
end
end
Just throw a StartConversation in there and you should be good to go!
Btw, I think the bug was fixed where you can now leave a blank TaskGroupDescription. My sample quests had a '.' in there because if you didn't previously it wouldn't display.
Re: Quest Script Issue
Posted: Thu Apr 22, 2010 4:08 pm
by John Adams
abndrew82 wrote:Uploaded the LUA's to pastebin due to 3 attachment limit.
Bumped total attachments to 5, sorry about that.
Re: Quest Script Issue
Posted: Thu Apr 22, 2010 5:11 pm
by abndrew82
I will give that a test here in a few, but got a question
Would an error in his Script be messing up the other guy.
The quest is appearing to get stuck on talking to Erlar after the killing of the skeletons, which if I am understanding is before Erlar sends me to speak to Rikar.
What my understanding of the quest is, although I am not sure as this is alot of copy and paste from other quests as I read and learn more.
I get the quest from Erlar, he asks me to kill 6 Diseased Skeletons
I kill the skeletons
Go back to Erlar to report that I killed them
He sends me to speak to Rikar to get my reward
But the quest is hanging after killing, I get nothing from Erlar to go to Rikar, he has the quest complete icon above his head but does not respond to hails
Thanks
Drew
Re: Quest Script Issue
Posted: Thu Apr 22, 2010 7:47 pm
by abndrew82
I added what was mentioned, but that did not resolve the problem.
Still getting stuck after killing the skeletons, that Erlar does not saying anything else to me, just has the icon showing that I have completed.
I will have to look into reading through my spawnscript and quest script tomorrow to see if I can figure it out.
If anybody sees anything let me know.
Thanks Much
Drew
Re: Quest Script Issue
Posted: Thu Apr 22, 2010 7:55 pm
by Scatman
Ahh ok so it's right after you kill the skeletons and before you talk to Erlar, ok gotcha. Give me a few to look over, hopefully I can pick it out.
Re: Quest Script Issue
Posted: Fri Apr 23, 2010 4:37 am
by abndrew82
Hello
Thanks much for the assistance, I have found the issue.
Decided to take another look this morning and read through line by line, and found a copy/paste issue on my part
As this quest was a copy of another, just with some revisions, i found the mistake here
at the top under hailed
Code: Select all
if GetQuestStep(Spawn, QUEST_1) == 1 or GetQuestStep(Spawn, QUEST_1) == 2 then
HaveYouSlainTheSkelles(NPC, Spawn, conversation)
else
Which from my understanding calls the function HaveYouSlainTheSkelles
But my mistake was I renamed that function to skelles for my quest but didnt rename it further in the script
Code: Select all
function HaveYouSlainTheWolf(NPC, Spawn, conversation)
PlayFlavor(NPC, "voiceover/english/neriak/jhana_do_zyth/darklight_wood/hates_envy/jhana/jhana006.mp3", "", "", 3892809500, 404724544, Spawn)
if HasQuest(Spawn, QUEST_1) and GetQuestStep(Spawn, QUEST_1) == 2 then
AddConversationOption(conversation, "I have.", "dlg_28_1")
else
AddConversationOption(conversation, "Not yet.")
end
StartConversation(conversation, NPC, Spawn, "Have you slain the the skeletons?")
end
After changing that line and reloading, the quest works as I had hoped.
Now to read through this and get an understanding to see if I can create a quest without copy and paste now, so I can make them more the way I want them.
Re: Quest Script Issue
Posted: Fri Apr 23, 2010 2:03 pm
by Scatman
Copy and paste...best friend or worst enemy?

I do that all the time too. Glad you figured it out!