AroofWolfchaser.lua 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. --[[
  2. Script Name : SpawnScripts/Antonica/AroofWolfchaser.lua
  3. Script Purpose : Aroof Wolfchaser
  4. Script Author : geordie0511
  5. Script Date : 2019.03.18
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. Modified by: premierio015
  8. Modified Notes: Fixes for dialogues
  9. --]]
  10. local Killing = 466
  11. function spawn(NPC)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function LeaveRange(NPC, Spawn)
  17. end
  18. function hailed(NPC, Spawn)
  19. if not HasQuest(Spawn, Killing) or HasCompletedQuest(Spawn, Killing) then
  20. local choice = MakeRandomInt(1,4)
  21. if choice == 1 then
  22. FaceTarget(NPC,Spawn)
  23. PlayFlavor(NPC, "", "What? Where?", "confused", 1689589577, 4560189, Spawn)
  24. elseif choice == 2 then
  25. PlayFlavor(NPC, "", "Hic...", "", 1689589577, 4560189, Spawn)
  26. elseif choice == 3 then
  27. PlayFlavor(NPC, "", "Urrp, ello there, why are there two of you...", "squeal", 1689589577, 4560189, Spawn)
  28. elseif choice == 4 then
  29. PlayFlavor(NPC, "", "Hail to you too!", "wave", 1689589577, 4560189, Spawn)
  30. end
  31. elseif GetQuestStep(Spawn, Killing) == 1 then
  32. conversation = CreateConversation()
  33. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1002.mp3", "", "", 0, 0, Spawn)
  34. AddConversationOption(conversation, "Have some soup.", "dlg_2_1")
  35. AddConversationOption(conversation, "Eww...")
  36. StartConversation(conversation, NPC, Spawn, "Hail!")
  37. elseif HasQuest(Spawn, Killing) and GetQuestStep(Spawn, Killing) ~= 1 then
  38. AddConversationOption(conversation, "Eww...")
  39. StartConversation(conversation, NPC, Spawn, "Hail!")
  40. end
  41. end
  42. function dlg_2_1(NPC, Spawn)
  43. FaceTarget(NPC, Spawn)
  44. conversation = CreateConversation()
  45. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  46. AddConversationOption(conversation, "Sober up.", "dlg_2_2")
  47. StartConversation(conversation, NPC, Spawn, "Thanks!")
  48. SetStepComplete(Spawn, Killing, 1)
  49. end
  50. function dlg_2_2(NPC, Spawn)
  51. FaceTarget(NPC, Spawn)
  52. conversation = CreateConversation()
  53. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  54. AddConversationOption(conversation, "Sober up.", "dlg_2_3")
  55. StartConversation(conversation, NPC, Spawn, "What?!")
  56. end
  57. function dlg_2_3(NPC, Spawn)
  58. FaceTarget(NPC, Spawn)
  59. conversation = CreateConversation()
  60. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  61. AddConversationOption(conversation, "Okay...", "dlg_2_4")
  62. StartConversation(conversation, NPC, Spawn, "Yeah!")
  63. SetStepComplete(Spawn, Achoo, 2)
  64. end