ArnisuTobian.lua 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/ArnisuTobian.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.05.14 07:05:40
  5. Script Purpose :
  6. :
  7. --]]
  8. TheBloodskullThreat = 413 -- Bloodskull Threat quest
  9. function spawn(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1022.mp3", "", 0, 0, Spawn)
  14. if GetQuestStep(Spawn, TheBloodskullThreat) == 4 then
  15. local conversation = CreateConversation()
  16. AddConversationOption(conversation, "Tecera sent me.", "Option2")
  17. AddConversationOption(conversation, "What are you doing here?", "Option1")
  18. StartConversation(conversation, NPC, Spawn, "Go away!")
  19. else
  20. PlayFlavor(NPC, "", "Don't worry, it isn't what it looks like.", "", 0, 0, Spawn)
  21. end
  22. end
  23. function Option1(NPC, Spawn)
  24. FaceTarget(NPC, Spawn)
  25. local conversation = CreateConversation()
  26. AddConversationOption(conversation, "Tecera sent me.", "Option2")
  27. StartConversation(conversation, NPC, Spawn, "Conveniently overhearing certain things. If I am complacent enough they do not treat me all that bad. They're convinced I'm a noble, that I may be worth something. The facade will fade eventually, but I will milk it while I can. You should leave before they think you've rescued me.")
  28. end
  29. function Option2(NPC, Spawn)
  30. FaceTarget(NPC, Spawn)
  31. SetStepComplete(Spawn, TheBloodskullThreat, 4)
  32. local conversation = CreateConversation()
  33. AddConversationOption(conversation, "What are the orcs doing anyway?", "Option3")
  34. StartConversation(conversation, NPC, Spawn, "Ah, I see. Well, take this envelope then. It has what Tecera needs. Tell her I don't plan on staying much longer and I will see her soon.")
  35. end
  36. function Option3(NPC, Spawn)
  37. FaceTarget(NPC, Spawn)
  38. local conversation = CreateConversation()
  39. AddConversationOption(conversation, "In a way?", "Option4")
  40. StartConversation(conversation, NPC, Spawn, "They're experimenting with necromancy, in a way.")
  41. end
  42. function Option4(NPC, Spawn)
  43. FaceTarget(NPC, Spawn)
  44. local conversation = CreateConversation()
  45. AddConversationOption(conversation, "Why would they do that?", "Option5")
  46. StartConversation(conversation, NPC, Spawn, "Well, I don't think they're just looking to reanimate corpses or control spirits. I think they're looking into actual resurrection, though they are going about it the wrong way.")
  47. end
  48. function Option5(NPC, Spawn)
  49. FaceTarget(NPC, Spawn)
  50. local conversation = CreateConversation()
  51. AddConversationOption(conversation, "All right.")
  52. StartConversation(conversation, NPC, Spawn, "I honestly don't know. Please, take this information to Tecera.")
  53. end
  54. function respawn(NPC)
  55. spawn(NPC)
  56. end