CaptainGullyshank.lua 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. --[[
  2. Script Name : SpawnScripts/EnchantedLands/CaptainGullyshank.lua
  3. Script Purpose : Captain Gullyshank
  4. Script Author : Cynnar
  5. Script Date : 2015.02.24
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function InRange(NPC, Spawn)
  15. end
  16. function LeaveRange(NPC, Spawn)
  17. end
  18. function hailed(NPC, Spawn)
  19. FaceTarget(NPC, Spawn)
  20. conversation = CreateConversation()
  21. local choice = math.random(1,1)
  22. if choice == 1 then
  23. PlayFlavor(NPC, "voiceover/english/captain_gullyshank/enchanted/halflings/halfling_captain_gullyshank_callout_50d8336.mp3", "Announce yourself! Are you friend or foe?", "", 2214140192, 919057659, Spawn)
  24. else
  25. end
  26. PlayFlavor(NPC, "voiceover/english/captain_gullyshank/enchanted/captain_gullyshank/captain_gullyshank006.mp3", "", "", 3764870485, 213873331, Spawn)
  27. AddConversationOption(conversation, "Good, glad to have helped.", "dlg_3_1")
  28. StartConversation(conversation, NPC, Spawn, "Do you have them? Let's have a look ... they're in better condition than I expected.")
  29. if convo==4 then
  30. PlayFlavor(NPC, "voiceover/english/captain_gullyshank/enchanted/captain_gullyshank/captain_gullyshank008.mp3", "", "", 1225501258, 3997832016, Spawn)
  31. AddConversationOption(conversation, "Ok. ", "dlg_4_1")
  32. StartConversation(conversation, NPC, Spawn, "I don't mean to be rude, but I must get back to my watch. Perhaps we can speak another time.")
  33. end
  34. if convo==22 then
  35. PlayFlavor(NPC, "voiceover/english/captain_gullyshank/enchanted/captain_gullyshank/captain_gullyshank006.mp3", "", "", 3764870485, 213873331, Spawn)
  36. AddConversationOption(conversation, "Good, glad to have helped.", "dlg_22_1")
  37. StartConversation(conversation, NPC, Spawn, "Do you have them? Let's have a look ... they're in better condition than I expected.")
  38. end
  39. if convo==23 then
  40. PlayFlavor(NPC, "voiceover/english/captain_gullyshank/enchanted/captain_gullyshank/captain_gullyshank008.mp3", "", "", 1225501258, 3997832016, Spawn)
  41. AddConversationOption(conversation, "Okay. ", "dlg_23_1")
  42. StartConversation(conversation, NPC, Spawn, "I don't mean to be rude, but I must get back to my watch. Perhaps we can speak another time.")
  43. end
  44. if convo==26 then
  45. PlayFlavor(NPC, "voiceover/english/captain_gullyshank/enchanted/captain_gullyshank/captain_gullyshank001.mp3", "", "", 230031672, 333606021, Spawn)
  46. AddConversationOption(conversation, "Why are you giving me words of caution?", "dlg_26_1")
  47. AddConversationOption(conversation, "Good bye. ")
  48. StartConversation(conversation, NPC, Spawn, "Words of caution are all I can lend you, friend. Our forces are spread far too thin to assist with anything other than defending what is left of our land.")
  49. end
  50. if convo==27 then
  51. PlayFlavor(NPC, "voiceover/english/captain_gullyshank/enchanted/captain_gullyshank/captain_gullyshank001.mp3", "", "", 230031672, 333606021, Spawn)
  52. AddConversationOption(conversation, "Why are you giving me words of caution?", "dlg_27_1")
  53. AddConversationOption(conversation, "Good bye. ")
  54. StartConversation(conversation, NPC, Spawn, "Words of caution are all I can lend you, friend. Our forces are spread far too thin to assist with anything other than defending what is left of our land.")
  55. end
  56. if convo==28 then
  57. PlayFlavor(NPC, "voiceover/english/captain_gullyshank/enchanted/captain_gullyshank/captain_gullyshank001.mp3", "", "", 230031672, 333606021, Spawn)
  58. AddConversationOption(conversation, "Why are you giving me words of caution?", "dlg_28_1")
  59. AddConversationOption(conversation, "Good bye. ")
  60. StartConversation(conversation, NPC, Spawn, "Words of caution are all I can lend you, friend. Our forces are spread far too thin to assist with anything other than defending what is left of our land.")
  61. end
  62. if convo==29 then
  63. PlayFlavor(NPC, "voiceover/english/captain_gullyshank/enchanted/captain_gullyshank/captain_gullyshank005.mp3", "", "", 362670140, 3713120877, Spawn)
  64. AddConversationOption(conversation, "Understood.", "dlg_29_1")
  65. StartConversation(conversation, NPC, Spawn, "Please don't bother me until you've recovered the documents. ")
  66. end
  67. end
  68. function dlg_3_1(NPC, Spawn)
  69. FaceTarget(NPC, Spawn)
  70. conversation = CreateConversation()
  71. PlayFlavor(NPC, "voiceover/english/captain_gullyshank/enchanted/captain_gullyshank/captain_gullyshank007.mp3", "", "", 3374555947, 3228895924, Spawn)
  72. AddConversationOption(conversation, "Thanks.", "dlg_3_2")
  73. StartConversation(conversation, NPC, Spawn, "Well, that's one thing less to worry about. Your efforts are appreciated and will not go unrewarded. ")
  74. end
  75. --[[ raw_conversations
  76. PlayFlavor(NPC, "voiceover/english/captain_gullyshank/enchanted/halflings/halfling_captain_gullyshank_callout_50d8336.mp3", "Announce yourself! Are you friend or foe?", "", 2214140192, 919057659, Spawn)
  77. --]]