9
3

SirJeager.lua 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. --[[
  2. Script Name : SpawnScripts/Antonica/SirJeager.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.08.10 09:08:50
  5. Script Purpose :
  6. :
  7. --]]
  8. local GettingTheAxe = 5334 -- Getting the Axe Quest
  9. local SabertoothBattlePlans = 5335 -- Sabertooth Battle Plans Quest
  10. function spawn(NPC)
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. local conversation = CreateConversation()
  15. if not HasQuest(Spawn, SabertoothBattlePlans) then
  16. PlayFlavor(NPC, "voiceover/english/sir_jeager/antonica/sirjeager000.mp3", "", "", 3221404151, 3230765792, Spawn)
  17. if HasCompletedQuest(Spawn, GettingTheAxe) and not HasCompletedQuest(Spawn, SabertoothBattlePlans) then
  18. AddConversationOption(conversation, "I would like to help with the campaign against the Sabertooth.", "Option1")
  19. end
  20. AddConversationOption(conversation, "I'm just looking around.", "Option0")
  21. if HasCompletedQuest(Spawn, GettingTheAxe) then
  22. AddConversationOption(conversation, "No thank you.")
  23. end
  24. StartConversation(conversation, NPC, Spawn, "Greetings! Can I help you with something?")
  25. elseif HasQuest(Spawn, SabertoothBattlePlans) then
  26. PlayFlavor(NPC, "voiceover/english/sir_jeager/antonica/sirjeager005.mp3", "", "", 1410263883, 2325716326, Spawn)
  27. if GetQuestStep(Spawn, SabertoothBattlePlans) == 2 then
  28. AddConversationOption(conversation, "Yes, here they are.", "Option2")
  29. end
  30. AddConversationOption(conversation, "Not yet, but soon.")
  31. StartConversation(conversation, NPC, Spawn, "You have the battle plans?")
  32. end
  33. end
  34. function Option0(NPC, Spawn)
  35. FaceTarget(NPC, Spawn)
  36. local conversation = CreateConversation()
  37. PlayFlavor(NPC, "voiceover/english/sir_jeager/antonica/sirjeager004.mp3", "", "", 3285899250, 1646181505, Spawn)
  38. AddConversationOption(conversation, "I will watch my back.")
  39. StartConversation(conversation, NPC, Spawn, "Well, be careful, or the Sabertooth clan will have you for dinner.")
  40. end
  41. function Option1(NPC, Spawn)
  42. FaceTarget(NPC, Spawn)
  43. local conversation = CreateConversation()
  44. PlayFlavor(NPC, "voiceover/english/sir_jeager/antonica/sirjeager001.mp3", "", "", 1175262455, 1051406685, Spawn)
  45. AddConversationOption(conversation, "I am interested.", "offer")
  46. AddConversationOption(conversation, "I am not interested right now.")
  47. StartConversation(conversation, NPC, Spawn, "Really? Ahh, yes... You are the one that Squire Kivan was talking about. I do have something for you to do -- that is, if you are interested.")
  48. end
  49. function Option2(NPC, Spawn)
  50. SetStepComplete(Spawn, SabertoothBattlePlans, 2)
  51. FaceTarget(NPC, Spawn)
  52. local conversation = CreateConversation()
  53. PlayFlavor(NPC, "voiceover/english/sir_jeager/antonica/sirjeager006.mp3", "", "", 923179982, 4001844374, Spawn)
  54. AddConversationOption(conversation, "Anything to help.", "Option24")
  55. StartConversation(conversation, NPC, Spawn, "Hrmm...This is terrible news. Tomorrow I will write a report and send it to town with Squire Kivan. I am sure that the Royal Antonican Guard will know what to do. Reporting the Sabertooth's plans may save hundreds of lives. Antonica is indebted to you for your service, adventurer. Thank you.")
  56. end
  57. function offer(NPC, Spawn)
  58. OfferQuest(NPC, Spawn, SabertoothBattlePlans)
  59. end
  60. function respawn(NPC)
  61. spawn(NPC)
  62. end