GurnaHadel.lua 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. --[[
  2. Script Name : SpawnScripts/Graystone/GurnaHadel.lua
  3. Script Purpose : Gurna Hadel
  4. Script Author : Scatman
  5. Script Date : 2009.10.05
  6. Script Notes :
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericVoiceOvers.lua")
  9. local DWARF_MENTOR_QUEST_2 = 285
  10. function spawn(NPC)
  11. SetInfoStructString(NPC, "action_state", "drinking_idle")
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function hailed(NPC, Spawn)
  17. FaceTarget(NPC, Spawn)
  18. conversation = CreateConversation()
  19. GenericHail(NPC, Spawn)
  20. if HasQuest(Spawn, DWARF_MENTOR_QUEST_2) and not QuestStepIsComplete(Spawn, DWARF_MENTOR_QUEST_2, 3) then
  21. GotSomethingForMe(NPC, Spawn, conversation)
  22. else
  23. PlayFlavor(NPC, "", "Come back when you've got brew!", "", 1689589577, 4560189, Spawn)
  24. end
  25. end
  26. function GotSomethingForMe(NPC, Spawn, conversation)
  27. AddConversationOption(conversation, "A pint, compliments of Mav.", "dlg_18_1")
  28. StartConversation(conversation, NPC, Spawn, "'Ave ya got something for me?")
  29. end
  30. function dlg_18_1(NPC, Spawn)
  31. FaceTarget(NPC, Spawn)
  32. conversation = CreateConversation()
  33. AddConversationOption(conversation, "Yup, her family recipe.", "dlg_18_2")
  34. StartConversation(conversation, NPC, Spawn, "Her brew, then? Has she finally made some?")
  35. end
  36. function dlg_18_2(NPC, Spawn)
  37. FaceTarget(NPC, Spawn)
  38. conversation = CreateConversation()
  39. AddConversationOption(conversation, "Well the day has finally come! She's ready for everyone to try it.", "dlg_18_3")
  40. StartConversation(conversation, NPC, Spawn, "Good! Took her long enough. I was worried she was just making it all up, I kind of felt sorry for her!")
  41. end
  42. function dlg_18_3(NPC, Spawn)
  43. FaceTarget(NPC, Spawn)
  44. conversation = CreateConversation()
  45. PlayAnimation(NPC,11422)
  46. AddConversationOption(conversation, "All right. I hope you're ready.", "dlg_18_4")
  47. StartConversation(conversation, NPC, Spawn, "Fill me up!")
  48. end
  49. function dlg_18_4(NPC, Spawn)
  50. SetStepComplete(Spawn, DWARF_MENTOR_QUEST_2, 3)
  51. -- cringe
  52. SpawnSet(NPC, "visual_state", 11256)
  53. AddTimer(NPC, 3000, "RemoveVisualState")
  54. FaceTarget(NPC, Spawn)
  55. conversation = CreateConversation()
  56. AddConversationOption(conversation, "Will do.")
  57. StartConversation(conversation, NPC, Spawn, "It's got some bite, don't it now? I think I'll be feeling that for a few days to come, give Mav my compliments!")
  58. end
  59. function RemoveVisualState(NPC)
  60. SpawnSet(NPC, "visual_state", 0)
  61. end