Quest Script Issue

General support forum. If you require assistance and your problem doesnt fall in any of the other categories, this is the forum for you!

Moderator: Team Members

Forum rules
READ THE FORUM STICKY THREADS BEFORE ASKING FOR HELP!
Most information can be found there, and if not, the posts will help you determine the information required to get assistance from the development team.
Incomplete Help Requests will be locked or deleted.
Post Reply
abndrew82
Posts: 31
Joined: Tue Apr 13, 2010 3:37 pm

Quest Script Issue

Post by abndrew82 » Thu Apr 22, 2010 12:35 pm

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
You do not have the required permissions to view the files attached to this post.

User avatar
Scatman
Retired
Posts: 1688
Joined: Wed Apr 16, 2008 5:44 am
EQ2Emu Server: Scatman's Word
Characters: Scatman
Location: New Jersey

Re: Quest Script Issue

Post by Scatman » Thu Apr 22, 2010 3:42 pm

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.

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Re: Quest Script Issue

Post by John Adams » Thu Apr 22, 2010 4:08 pm

abndrew82 wrote:Uploaded the LUA's to pastebin due to 3 attachment limit.
Bumped total attachments to 5, sorry about that.

abndrew82
Posts: 31
Joined: Tue Apr 13, 2010 3:37 pm

Re: Quest Script Issue

Post by abndrew82 » Thu Apr 22, 2010 5:11 pm

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

abndrew82
Posts: 31
Joined: Tue Apr 13, 2010 3:37 pm

Re: Quest Script Issue

Post by abndrew82 » Thu Apr 22, 2010 7:47 pm

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

User avatar
Scatman
Retired
Posts: 1688
Joined: Wed Apr 16, 2008 5:44 am
EQ2Emu Server: Scatman's Word
Characters: Scatman
Location: New Jersey

Re: Quest Script Issue

Post by Scatman » Thu Apr 22, 2010 7:55 pm

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.

abndrew82
Posts: 31
Joined: Tue Apr 13, 2010 3:37 pm

Re: Quest Script Issue

Post by abndrew82 » Fri Apr 23, 2010 4:37 am

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.

User avatar
Scatman
Retired
Posts: 1688
Joined: Wed Apr 16, 2008 5:44 am
EQ2Emu Server: Scatman's Word
Characters: Scatman
Location: New Jersey

Re: Quest Script Issue

Post by Scatman » Fri Apr 23, 2010 2:03 pm

Copy and paste...best friend or worst enemy? :P I do that all the time too. Glad you figured it out!

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests