AndretSurtees.lua 4.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. --[[
  2. Script Name : SpawnScripts/Nettleville/AndretSurtees.lua
  3. Script Purpose : Andret Surtees
  4. Script Author : Scatman
  5. Script Date : 2008.10.08
  6. Script Notes :
  7. --]]
  8. local QUEST_1_FROM_HELAIN = 295
  9. local QUEST_3_FROM_HELAIN = 297
  10. function spawn(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. conversation = CreateConversation()
  18. if HasQuest(Spawn, QUEST_3_FROM_HELAIN) or HasCompletedQuest(Spawn, QUEST_3_FROM_HELAIN) then
  19. if HasQuest(Spawn, QUEST_3_FROM_HELAIN) and GetQuestStep(Spawn, QUEST_3_FROM_HELAIN) == 2 then
  20. HelloThere(NPC, Spawn, conversation)
  21. else
  22. BackAgain(NPC, Spawn, conversation)
  23. end
  24. elseif HasQuest(Spawn, QUEST_1_FROM_HELAIN) and GetQuestStep(Spawn, QUEST_1_FROM_HELAIN) == 1 then
  25. MindYourStepQuest(NPC, Spawn, conversation)
  26. else
  27. MindYourStep(NPC, Spawn, conversation)
  28. end
  29. end
  30. function MindYourStep(NPC, Spawn, conversation)
  31. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/andret_surtees/qey_village01/andretsurtees001.mp3", "", "", 2406711423, 2100048061, Spawn)
  32. AddConversationOption(conversation, "Thank you. I'll be careful.")
  33. StartConversation(conversation, NPC, Spawn, "Mind your step, sometimes the floorboards have a little lip.")
  34. end
  35. -----------------------------------------------------------------------------------------------
  36. -- QUEST_1_FROM_HELAIN
  37. -----------------------------------------------------------------------------------------------
  38. function MindYourStepQuest(NPC, Spawn, conversation)
  39. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/andret_surtees/qey_village01/andretsurtees002.mp3", "", "", 2927697364, 976114271, Spawn)
  40. AddConversationOption(conversation, "Ah, thank you. I was sent by Helain Conyers, she said that..", "dlg_5_1")
  41. StartConversation(conversation, NPC, Spawn, "Mind your step, sometimes the floorboards have a little lip.")
  42. end
  43. function dlg_5_1(NPC, Spawn)
  44. SetStepComplete(Spawn, QUEST_1_FROM_HELAIN, 1)
  45. FaceTarget(NPC, Spawn)
  46. conversation = CreateConversation()
  47. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/andret_surtees/qey_village01/andretsurtees003.mp3", "", "", 3181148477, 966976976, Spawn)
  48. AddConversationOption(conversation, "No problem. Thank you!")
  49. StartConversation(conversation, NPC, Spawn, "That I had some books for her, right ya are. Here they are! Careful with that one about Brell Serilis. It is the oldest, and kinda' falling apart.")
  50. end
  51. -----------------------------------------------------------------------------------------------
  52. -- QUEST_3_FROM_HELAIN
  53. -----------------------------------------------------------------------------------------------
  54. function HelloThere(NPC, Spawn, conversation)
  55. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/andret_surtees/qey_village01/andretsurtees005.mp3", "", "", 2242497941, 3475570879, Spawn)
  56. AddConversationOption(conversation, "No, no. She was very excited to have them. She thought you may have something for me to do. ", "dlg_18_1")
  57. StartConversation(conversation, NPC, Spawn, "Hello, there! Don't tell me Helain is done with those books already! ")
  58. end
  59. function dlg_18_1(NPC, Spawn)
  60. FaceTarget(NPC, Spawn)
  61. conversation = CreateConversation()
  62. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/andret_surtees/qey_village01/andretsurtees006.mp3", "", "", 3395167985, 2902134044, Spawn)
  63. AddConversationOption(conversation, "I can see why you would. ", "dlg_18_2")
  64. StartConversation(conversation, NPC, Spawn, "She's a sweet girl. I appreciate her interests in books.")
  65. end
  66. function dlg_18_2(NPC, Spawn)
  67. SetStepComplete(Spawn, QUEST_3_FROM_HELAIN, 2)
  68. FaceTarget(NPC, Spawn)
  69. conversation = CreateConversation()
  70. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/andret_surtees/qey_village01/andretsurtees007.mp3", "", "", 3293202175, 255010916, Spawn)
  71. AddConversationOption(conversation, "That's OK. Thank you, anyway.")
  72. StartConversation(conversation, NPC, Spawn, "Right up my alley, I admit. Ha ha ha. But a job? No, not here. Normally, I would have a little task of some sort, but not today.")
  73. end
  74. function BackAgain(NPC, Spawn, conversation)
  75. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/andret_surtees/qey_village01/andretsurtees004.mp3", "", "", 2872376799, 1379943312, Spawn)
  76. AddConversationOption(conversation, "Oh, I don't know. I was just stopping in.", "dlg_19_1")
  77. StartConversation(conversation, NPC, Spawn, "Back again? I can't imagine that Helain's done with the books I lent her.")
  78. end