GurnaHadel.lua 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. conversation = CreateConversation()
  18. GenericHail(NPC, Spawn)
  19. if HasQuest(Spawn, DWARF_MENTOR_QUEST_2) and not QuestStepIsComplete(Spawn, DWARF_MENTOR_QUEST_2, 3) then
  20. GotSomethingForMe(NPC, Spawn, conversation)
  21. else
  22. PlayFlavor(NPC, "", "Come back when you've got brew!", "", 1689589577, 4560189, Spawn)
  23. end
  24. end
  25. function GotSomethingForMe(NPC, Spawn, conversation)
  26. AddConversationOption(conversation, "A pint, compliments of Mav.", "dlg_18_1")
  27. StartConversation(conversation, NPC, Spawn, "'Ave ya got something for me?")
  28. end
  29. function dlg_18_1(NPC, Spawn)
  30. FaceTarget(NPC, Spawn)
  31. conversation = CreateConversation()
  32. AddConversationOption(conversation, "Yup, her family recipe.", "dlg_18_2")
  33. StartConversation(conversation, NPC, Spawn, "Her brew, then? Has she finally made some?")
  34. end
  35. function dlg_18_2(NPC, Spawn)
  36. FaceTarget(NPC, Spawn)
  37. conversation = CreateConversation()
  38. AddConversationOption(conversation, "Well the day has finally come! She's ready for everyone to try it.", "dlg_18_3")
  39. 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!")
  40. end
  41. function dlg_18_3(NPC, Spawn)
  42. FaceTarget(NPC, Spawn)
  43. conversation = CreateConversation()
  44. AddConversationOption(conversation, "All right. I hope you're ready.", "dlg_18_4")
  45. StartConversation(conversation, NPC, Spawn, "Fill me up!")
  46. end
  47. function dlg_18_4(NPC, Spawn)
  48. SetStepComplete(Spawn, DWARF_MENTOR_QUEST_2, 3)
  49. -- cringe
  50. SpawnSet(NPC, "visual_state", 11256)
  51. AddTimer(NPC, 3000, "RemoveVisualState")
  52. FaceTarget(NPC, Spawn)
  53. conversation = CreateConversation()
  54. AddConversationOption(conversation, "Will do.")
  55. 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!")
  56. end
  57. function RemoveVisualState(NPC)
  58. SpawnSet(NPC, "visual_state", 0)
  59. end