TrapperCoalbear.lua 4.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. --[[
  2. Script Name : SpawnScripts/ButcherblockMountains/TrapperCoalbear.lua
  3. Script Purpose : Trapper Coalbear
  4. Script Author : jakejp
  5. Script Date : 2018.06.07
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local TheNumberOneThreatInButcherblock = 265
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, TheNumberOneThreatInButcherblock)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. conversation = CreateConversation()
  18. if HasCompletedQuest(Spawn, TheNumberOneThreatInButcherblock) == false and HasQuest(Spawn, TheNumberOneThreatInButcherblock) == false and CanReceiveQuest(Spawn, TheNumberOneThreatInButcherblock) then
  19. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1004.mp3", "", "", 0, 0, Spawn)
  20. AddConversationOption(conversation, "Huh?", "dlg_20_4")
  21. AddConversationOption(conversation, "You mean kobolds, right?", "dlg_20_1")
  22. StartConversation(conversation, NPC, Spawn, "Be on the look out! Danger lurks everywhere. I've seen two today already. Ferocious quadrupedal beasts who's insatiable appetite for adventurers like you and me can only be met with an equal disdain!")
  23. elseif GetQuestStep(Spawn, TheNumberOneThreatInButcherblock) == 1 then
  24. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1004.mp3", "", "", 0, 0, Spawn)
  25. Say(NPC, "You're back? Already? No, no no. You couldn't have come clsoe to exterminating nearly enough bears yet. I told you, the threat of bears must be significantly reduced! Now, go!")
  26. elseif GetQuestStep(Spawn, TheNumberOneThreatInButcherblock) == 2 then
  27. SetStepComplete(Spawn, TheNumberOneThreatInButcherblock, 2)
  28. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1004.mp3", "", "", 0, 0, Spawn)
  29. AddConversationOption(conversation, "We can only hope for the best!", "dlg_4_1")
  30. AddConversationOption(conversation, "Um, sure. Right... ")
  31. StartConversation(conversation, NPC, Spawn, "Thanks for your help! Perhaps one day we'll be free from the furry clutches of their terrifying wrath... But for now we must remain vigilant, mindful of our berry patches and cautious when eating outside with family members on beautiful sun-filled days.")
  32. elseif HasCompletedQuest(Spawn, TheNumberOneThreatInButcherblock) == true then
  33. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1004.mp3", "", "", 0, 0, Spawn)
  34. Say(NPC, "Thanks again for your help. May the gods have mercy on us all and deliver us from a bear-filled destiny soon!")
  35. end
  36. end
  37. function dlg_20_1(NPC, Spawn)
  38. FaceTarget(NPC, Spawn)
  39. conversation = CreateConversation()
  40. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  41. AddConversationOption(conversation, "Bears?", "dlg_20_2")
  42. StartConversation(conversation, NPC, Spawn, "Oh no. Kobolds' pack-like nature, hierarchical command structure and base knowledge of divine magic have nothing on the raw paw-swatting tenacity of a bear! They're like the personification of chaotic evil... in bear form!")
  43. end
  44. function dlg_20_4(NPC, Spawn)
  45. FaceTarget(NPC, Spawn)
  46. conversation = CreateConversation()
  47. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  48. AddConversationOption(conversation, "Bears?", "dlg_20_2")
  49. StartConversation(conversation, NPC, Spawn, "Bears!")
  50. end
  51. function dlg_20_2(NPC, Spawn)
  52. FaceTarget(NPC, Spawn)
  53. conversation = CreateConversation()
  54. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  55. AddConversationOption(conversation, "Sure... I suppose I could help.", "GiveTheNumberOneThreatInButcherblock")
  56. AddConversationOption(conversation, "Forget it. I have far more important things to do.")
  57. StartConversation(conversation, NPC, Spawn, "Yes, bears. The number one threat in Butcherblock! Tell me, can you help? I may be an accomplished hunter, put on this world with the single purpose of removing all mammalian calamites... But I can't do it all alone. If not for me, could you do it to help protect everyone else?")
  58. end
  59. function dlg_20_3(NPC, Spawn)
  60. FaceTarget(NPC, Spawn)
  61. conversation = CreateConversation()
  62. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  63. AddConversationOption(conversation, "Will do!", "dlg_20_4")
  64. StartConversation(conversation, NPC, Spawn, "Great! You can get started right away. As I said, I've seen several already. Come see me again when you've significantly reduced the threat of bears in the area!")
  65. end
  66. function GiveTheNumberOneThreatInButcherblock(NPC, Spawn)
  67. OfferQuest(NPC, Spawn, TheNumberOneThreatInButcherblock)
  68. end