LiNingVentur.lua 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. --[[
  2. Script Name : SpawnScripts/Everfrost/LiNingVentur.lua
  3. Script Author : Flunklesnarkin
  4. Script Date : 2015.09.04 09:09:39
  5. Script Purpose :
  6. :
  7. --]]
  8. local TheStoriesofEverfrost = 167
  9. local A_Pioneer_Without_A_Wagon = 168
  10. local
  11. function spawn(NPC)
  12. ProvidesQuest(NPC, A_Pioneer_Without_A_Wagon)
  13. end
  14. function hailed(NPC, Spawn)
  15. FaceTarget(NPC, Spawn)
  16. if HasCompletedQuest(Spawn, TheStoriesofEverfrost) == false and HasQuest(Spawn, TheStoriesofEverfrost) == false then
  17. Default_Chat(NPC, Spawn)
  18. elseif HasQuest(Spawn, TheStoriesofEverfrost) == true and HasQuest(Spawn, A_Pioneer_Without_A_Wagon) == false and HasCompletedQuest(Spawn, A_Pioneer_Without_A_Wagon) == false then
  19. Quest1Chat_1(NPC, Spawn)
  20. elseif HasCompletedQuest(Spawn, TheStoriesofEverfrost) == true and HasQuest(Spawn, A_Pioneer_Without_A_Wagon) == false and HasCompletedQuest(Spawn, A_Pioneer_Without_A_Wagon) == false then
  21. Quest1Chat_1(NPC, Spawn)
  22. elseif HasQuest(Spawn, A_Pioneer_Without_A_Wagon) == true and GetQuestStep(Spawn, 168) == 1 then
  23. Quest1Chat_5(NPC, Spawn)
  24. end
  25. end
  26. function respawn(NPC)
  27. spawn(NPC)
  28. end
  29. function Default_Chat(NPC, Spawn)
  30. Say(NPC, "I'm done with this forsaken place. Done with it, I say!")
  31. end
  32. function Quest1Chat_1(NPC, Spawn)
  33. FaceTarget(NPC, Spawn)
  34. conversation = CreateConversation()
  35. AddConversationOption(conversation, "Excuse me, but what's wrong?", "Quest1Chat_2")
  36. StartConversation(conversation, NPC, Spawn, "He's gone, oh dear, he's gone...")
  37. end
  38. function Quest1Chat_2(NPC, Spawn)
  39. FaceTarget(NPC, Spawn)
  40. conversation = CreateConversation()
  41. AddConversationOption(conversation, "I am... sorry to hear that.", "Quest1Chat_3")
  42. StartConversation(conversation, NPC, Spawn, "My, my husband... We were crossing the bay and he was... he was... eaten by one of those terrible sharks. I hate this place! Everything here is terrible!")
  43. end
  44. function Quest1Chat_3(NPC, Spawn)
  45. SetStepComplete(Spawn, TheStoriesofEverfrost, 2)
  46. FaceTarget(NPC, Spawn)
  47. conversation = CreateConversation()
  48. AddConversationOption(conversation, "That's a terrible story. Is there anything I can do?", "Quest1Chat_4")
  49. AddConversationOption(conversation, "Perhaps there is some way I can profit... Err, help.", "Quest1Chat_4")
  50. StartConversation(conversation, NPC, Spawn, "Yes, we tried so hard to make a home here... My Samuel was so eager to cut something from this land, but I never wanted to! I told him it was a cursed place! And though it took a few years of misery to convince him, he finally agreed. And so there we are, finally ready to return to a decent life, and he's taken from me!")
  51. end
  52. function Quest1Chat_4(NPC, Spawn)
  53. FaceTarget(NPC, Spawn)
  54. conversation = CreateConversation()
  55. AddConversationOption(conversation, "I can do that.", "Offer_Quest_APWOAW")
  56. AddConversationOption(conversation, "I am in no mood for charity.")
  57. StartConversation(conversation, NPC, Spawn, "You would? Oh... thank you! The first kindness I've found in this place. You see, when we were crossing the bay, we did so in such a panic, especially after the attack, that our possessions were scattered all over the bay. It would mean so much if you could find them.")
  58. end
  59. function Quest1Chat_5(NPC, Spawn)
  60. FaceTarget(NPC, Spawn)
  61. conversation = CreateConversation()
  62. AddConversationOption(conversation, "No, I will keep searching though.")
  63. StartConversation(conversation, NPC, Spawn, "Well? Have you managed to find all of it? Or even just some?")
  64. end
  65. function Offer_Quest_APWOAW(NPC, Spawn)
  66. OfferQuest(NPC, Spawn, A_Pioneer_Without_A_Wagon)
  67. end