I wrote the script for that mob to offer the quest but in your editor when I hit save, it would not save it and I think it crashed the server =/ oops! After the first time I wrote it, I rewrote a second quick one and tried to make sure I had no syntax errors just incase your scripts checked for it before it saved it into the DB. I'm going to copy and paste it in this post so if there is a bug I can just copy/paste it back in there. Otherwise, let me know what I'm doing wrong. Thanks!
Code: Select all
function spawn(npc)
ProvidesQuest(npc, 3)
end
function hailed(npc, spawn)
FaceTarget(npc, spawn)
conversation = CreateConversation()
if HasQuest(spawn, 3) then
AddConversationOption(conversation, "K bye")
StartConversation(conversation, npc, spawn, "Keep killan!")
else
if HasCompletedQuest(spawn, 3) then
AddConversationOption(conversation, "Anytime")
StartConversation(conversation, npc, spawn, "Thanks for the help!")
else
AddConversationOption(conversation, "Listen to the silence?", "quest1_before1")
AddConversationOption(conversation, "Then I'll leave you in peace.")
StartConversation(conversation, npc, spawn, "Shhh...I'm trying to listen to the silence. Whisper please.")
end
end
end
function quest1_before1(npc, spawn)
conversation = CreateConversation()
AddConversationOption(conversation, "The view's not so clear from here.", "quest1_before2")
StartConversation(conversation, npc, spawn, "Away from the noise over in the camp. You can see where you've been and where you can go. You know what awaits you if you go further in. If only everything were as simple as that, where all your choices are clear and you can see what awaits.")
end
function quest1_before2(npc, spawn)
conversation = CreateConversation()
AddConversationOption(conversation, "What evil do you sense?", "quest1_before3")
AddConversationOption(conversation, "Then I'll have no more dealings with you.")
StartConversation(conversation, npc, spawn, "True, but it's clearer than, say, the difference between good and evil. All those around here who are \"good\" avoid me because I was born \"evil\". I grew up in Freeport. Does that make them better than me somehow, that I chose to leave Freeport to work on behalf of the Queen only recently? Who knows? Yet I must be evil; I can sense the evil in others.")
end
function quest1_before3(npc, spawn)
conversation = CreateConversation()
AddConversationOption(conversation, "I'll do what I can.", "quest1_offerQuest")
AddConversationOption(conversation, "Perhaps some other time.")
StartConversation(conversation, npc, spawn, "They say that there is a taint rising from an unknown source, polluting this place and corrupting the inhabitants. I feel it is much simpler than that. There are spiders in the Tainted Forest, poisonous ones. With their venom, they can cause untold suffering. The search for \"evil\" sometimes has a mundane cause. We must rid the Colony of these spiders.")
end
function quest1_offerQuest(npc, spawn)
OfferQuest(npc, spawn, 3)
end
*EDIT*
Edited spawnscript for her first quest to be exactly like live. Couldn't save it on the spawnscript because the Save button wasn't available to click.