KelbriMossborn.lua 5.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. --[[
  2. Script Name : SpawnScripts/EnchantedLands/KelbriMossborn.lua
  3. Script Purpose : Kelbri Mossborn
  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,2)
  22. if choice == 1 then
  23. PlayFlavor(NPC, "voiceover/english/kelbri_mossborne/enchanted/halflings/halfling_kelbri_mossborn_aoi_callout_familiar_9d74e583.mp3", "Oh, hello! It's good to see you again, can you help me?", "beckon", 3468817510, 52317813, Spawn)
  24. elseif choice == 2 then
  25. PlayFlavor(NPC, "voiceover/english/kelbri_mossborne/enchanted/halflings/halfling_kelbri_mossborn_aoi_callout_unfamiliar_119582aa.mp3", "Greetings, traveler. Have you come from the far off lands?", "curtsey", 1090087928, 2030017349, Spawn)
  26. else
  27. end
  28. PlayFlavor(NPC, "voiceover/english/kelbri_mossborne/enchanted/kelbri_mossborn001.mp3", "", "", 335654581, 1424626697, Spawn)
  29. AddConversationOption(conversation, "Sure, I'll help you.", "dlg_8_1")
  30. AddConversationOption(conversation, "I'm not interested in helping.")
  31. StartConversation(conversation, NPC, Spawn, "As you can see, the halflings and Seamist fairies staved off the majority of the evil from this small area of the Enchanted Lands. But we fear that as they grow older, local creatures are becoming more and more tainted. Please show some mercy and thin out their population; it's for the best.")
  32. if convo==9 then
  33. PlayFlavor(NPC, "voiceover/english/kelbri_mossborne/enchanted/kelbri_mossborn004.mp3", "", "", 584763382, 2817458045, Spawn)
  34. AddConversationOption(conversation, "It sure does. Have you got any more work for me?", "dlg_9_1")
  35. AddConversationOption(conversation, "Thanks, I'll be on my way.")
  36. StartConversation(conversation, NPC, Spawn, "Well done! I hope this compensates you for your time and effort.")
  37. end
  38. if convo==10 then
  39. PlayFlavor(NPC, "voiceover/english/kelbri_mossborne/enchanted/kelbri_mossborn004.mp3", "", "", 584763382, 2817458045, Spawn)
  40. AddConversationOption(conversation, "It sure does. Have you got any more work for me?", "dlg_10_1")
  41. AddConversationOption(conversation, "Thanks, I'll be on my way.")
  42. StartConversation(conversation, NPC, Spawn, "Well done! I hope this compensates you for your time and effort.")
  43. end
  44. if convo==35 then
  45. PlayFlavor(NPC, "voiceover/english/kelbri_mossborne/enchanted/kelbri_mossborn001.mp3", "", "", 335654581, 1424626697, Spawn)
  46. AddConversationOption(conversation, "Sure, I'll help you.", "dlg_35_1")
  47. AddConversationOption(conversation, "I'm not interested in helping.")
  48. StartConversation(conversation, NPC, Spawn, "As you can see, the halflings and Seamist fairies staved off the majority of the evil from this small area of the Enchanted Lands. But we fear that as they grow older, local creatures are becoming more and more tainted. Please show some mercy and thin out their population; it's for the best.")
  49. end
  50. if convo==36 then
  51. PlayFlavor(NPC, "voiceover/english/kelbri_mossborne/enchanted/kelbri_mossborn001.mp3", "", "", 335654581, 1424626697, Spawn)
  52. AddConversationOption(conversation, "Sure, I'll help you.", "dlg_36_1")
  53. AddConversationOption(conversation, "I'm not interested in helping.")
  54. StartConversation(conversation, NPC, Spawn, "As you can see, the halflings and Seamist fairies staved off the majority of the evil from this small area of the Enchanted Lands. But we fear that as they grow older, local creatures are becoming more and more tainted. Please show some mercy and thin out their population; it's for the best.")
  55. end
  56. if convo==37 then
  57. PlayFlavor(NPC, "voiceover/english/kelbri_mossborne/enchanted/kelbri_mossborn003.mp3", "", "", 3665637918, 1158066003, Spawn)
  58. AddConversationOption(conversation, "Okay.", "dlg_37_1")
  59. StartConversation(conversation, NPC, Spawn, "You've done well thus far, but I need you to slay more beasts!")
  60. end
  61. end
  62. function dlg_8_1(NPC, Spawn)
  63. FaceTarget(NPC, Spawn)
  64. conversation = CreateConversation()
  65. PlayFlavor(NPC, "voiceover/english/kelbri_mossborne/enchanted/kelbri_mossborn002.mp3", "", "", 2995435906, 726121034, Spawn)
  66. AddConversationOption(conversation, "As you wish.", "dlg_8_2")
  67. StartConversation(conversation, NPC, Spawn, "Very well, then! Thin out the overpopulation of beasts living on this side of the wall.")
  68. end
  69. function dlg_9_1(NPC, Spawn)
  70. FaceTarget(NPC, Spawn)
  71. conversation = CreateConversation()
  72. PlayFlavor(NPC, "voiceover/english/kelbri_mossborne/enchanted/kelbri_mossborn005.mp3", "", "", 3034402547, 289714368, Spawn)
  73. AddConversationOption(conversation, "Sure, I'll help.", "dlg_9_2")
  74. StartConversation(conversation, NPC, Spawn, "You've done your part to maintain the purity of the creatures of the Enchanted Lands. Do you have time to hunt more beasts?")
  75. end
  76. --[[ raw_conversations
  77. PlayFlavor(NPC, "voiceover/english/kelbri_mossborne/enchanted/halflings/halfling_kelbri_mossborn_aoi_callout_unfamiliar_119582aa.mp3", "Greetings, traveler. Have you come from the far off lands?", "curtsey", 1090087928, 2030017349, Spawn)
  78. PlayFlavor(NPC, "voiceover/english/kelbri_mossborne/enchanted/halflings/halfling_kelbri_mossborn_aoi_callout_familiar_9d74e583.mp3", "Oh, hello! It's good to see you again, can you help me?", "beckon", 3468817510, 52317813, Spawn)
  79. --]]