AroofWolfchaser.lua 2.2 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. --]]
  8. local Killing = 466
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function InRange(NPC, Spawn)
  16. local choice = math.random(1,4)
  17. if choice == 1 then
  18. PlayFlavor(NPC, "", "What? Where?", "confused", 1689589577, 4560189, Spawn)
  19. elseif choice == 2 then
  20. PlayFlavor(NPC, "", "Hic...", "", 1689589577, 4560189, Spawn)
  21. elseif choice == 3 then
  22. PlayFlavor(NPC, "", "Urrp, ello there, why are there two of you...", "squeal", 1689589577, 4560189, Spawn)
  23. elseif choice == 4 then
  24. PlayFlavor(NPC, "", "Hail to you too!", "wave", 1689589577, 4560189, Spawn)
  25. else
  26. end
  27. end
  28. function LeaveRange(NPC, Spawn)
  29. end
  30. function hailed(NPC, Spawn)
  31. FaceTarget(NPC, Spawn)
  32. conversation = CreateConversation()
  33. if GetQuestStep(Spawn, Killing) == 1 then
  34. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1002.mp3", "", "", 0, 0, Spawn)
  35. AddConversationOption(conversation, "Have some soup.", "dlg_2_1")
  36. AddConversationOption(conversation, "Eww...")
  37. StartConversation(conversation, NPC, Spawn, "Hail!")
  38. else
  39. AddConversationOption(conversation, "Eww...")
  40. StartConversation(conversation, NPC, Spawn, "Hail!")
  41. end
  42. end
  43. function dlg_2_1(NPC, Spawn)
  44. FaceTarget(NPC, Spawn)
  45. conversation = CreateConversation()
  46. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  47. AddConversationOption(conversation, "Sober up.", "dlg_2_2")
  48. StartConversation(conversation, NPC, Spawn, "Thanks!")
  49. SetStepComplete(Spawn, Killing, 1)
  50. end
  51. function dlg_2_2(NPC, Spawn)
  52. FaceTarget(NPC, Spawn)
  53. conversation = CreateConversation()
  54. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  55. AddConversationOption(conversation, "Sober up.", "dlg_2_3")
  56. StartConversation(conversation, NPC, Spawn, "What?!")
  57. end
  58. function dlg_2_3(NPC, Spawn)
  59. FaceTarget(NPC, Spawn)
  60. conversation = CreateConversation()
  61. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  62. AddConversationOption(conversation, "Okay...", "dlg_2_4")
  63. StartConversation(conversation, NPC, Spawn, "Yeah!")
  64. SetStepComplete(Spawn, Achoo, 2)
  65. end