BardrianVorsuth.lua 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. --[[
  2. Script Name : SpawnScripts/Oakmyst/BardrianVorsuth.lua
  3. Script Purpose : Bardrian Vorsuth
  4. Script Author : scatman
  5. Script Date : 2009.05.04
  6. Modified by : Ememjr
  7. Modified Date :2017.04.22
  8. Modified Noes : correcte the conversation
  9. Script Notes : Auto-Generated Conversation from PacketParser Data
  10. --]]
  11. local QUEST_FROM_CHARLIN = 209
  12. function spawn(NPC)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function hailed(NPC, Spawn)
  18. FaceTarget(NPC, Spawn)
  19. conversation = CreateConversation()
  20. if HasQuest(Spawn, QUEST_FROM_CHARLIN) and GetQuestStep(Spawn, QUEST_FROM_CHARLIN) == 1 then
  21. WhatDoYaNeed(NPC, Spawn, conversation)
  22. else
  23. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/bardrian_vorsuth/qey_adv01_oakmyst_revamp/qst_bardrian_notonquest_b22fa460.mp3", "Busy... Go away.", "", 1355174858, 967558565, Spawn)
  24. end
  25. end
  26. -----------------------------------------------------------------------------------------------------------
  27. -- QUEST_FROM_CHARLIN
  28. -----------------------------------------------------------------------------------------------------------
  29. function WhatDoYaNeed(NPC, Spawn, conversation)
  30. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/bardrian_vorsuth/qey_adv01_oakmyst/quests/bardrian/bardrian000.mp3", "", "", 339572544, 1009095329, Spawn)
  31. AddConversationOption(conversation, "Lieutenant Charlin sent me in his place.", "dlg_5_1")
  32. StartConversation(conversation, NPC, Spawn, "What do ya need? I'm waiting for someone.")
  33. end
  34. function dlg_5_1(NPC, Spawn)
  35. FaceTarget(NPC, Spawn)
  36. conversation = CreateConversation()
  37. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/bardrian_vorsuth/qey_adv01_oakmyst/quests/bardrian/bardrian001.mp3", "", "", 3275580861, 3455172409, Spawn)
  38. AddConversationOption(conversation, "What is it?", "dlg_5_2")
  39. StartConversation(conversation, NPC, Spawn, "I see. Well, then listen up. We've got an issue here. We found this box, no post markings at all, and finally our curiosity forced us to open it. Inside was this... machine.")
  40. end
  41. function dlg_5_2(NPC, Spawn)
  42. FaceTarget(NPC, Spawn)
  43. conversation = CreateConversation()
  44. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/bardrian_vorsuth/qey_adv01_oakmyst/quests/bardrian/bardrian002.mp3", "", "", 133230117, 3607589031, Spawn)
  45. AddConversationOption(conversation, "Is there anything else of note?", "dlg_5_3")
  46. StartConversation(conversation, NPC, Spawn, "I have no idea. It looks to be some sort of power or speed variable control system, but that's just a rough guess. It could likely be plugged into any number of other devices, but by itself it isn't especially useful. That fact and the lack of markings on the box are what make it suspicious, and why we contacted Charlin.")
  47. end
  48. function dlg_5_3(NPC, Spawn)
  49. SetStepComplete(Spawn, QUEST_FROM_CHARLIN, 1)
  50. FaceTarget(NPC, Spawn)
  51. conversation = CreateConversation()
  52. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/bardrian_vorsuth/qey_adv01_oakmyst/quests/bardrian/bardrian003.mp3", "", "", 917314149, 3791336463, Spawn)
  53. AddConversationOption(conversation, "It is more than enough. Thank you for your help.")
  54. StartConversation(conversation, NPC, Spawn, "Nope, but I figured this all was suspicious enough to get the guards interested.")
  55. end