GnorFarven.lua 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. --[[
  2. Script Name : SpawnScripts/Graystone/GnorFarven.lua
  3. Script Purpose : Gnor Farven
  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, 2) then
  20. LikinTheViewAreYa(NPC, Spawn, conversation)
  21. else
  22. Say(NPC, "Sorry, it's near impossible for me to drink and talk at the same time.", Spawn)
  23. end
  24. end
  25. function LikinTheViewAreYa(NPC, Spawn, conversation)
  26. AddConversationOption(conversation, "Mav made some of her family recipe.", "dlg_17_1")
  27. StartConversation(conversation, NPC, Spawn, "Likin' the view, are ya? Hah hah!")
  28. end
  29. function dlg_17_1(NPC, Spawn)
  30. FaceTarget(NPC, Spawn)
  31. conversation = CreateConversation()
  32. AddConversationOption(conversation, "Well, prepare to find out. I have some of the brew right here.", "dlg_17_2")
  33. StartConversation(conversation, NPC, Spawn, "So she finally made good on her promise! It's about time. I'm going to have to schedule an appointment with her, cause I'm sure that's what it'll take to try some of this magical brew of hers. You know she says it can knock an ogre on 'is back, I dun' believe it though.")
  34. end
  35. function dlg_17_2(NPC, Spawn)
  36. FaceTarget(NPC, Spawn)
  37. conversation = CreateConversation()
  38. AddConversationOption(conversation, "Here you go.", "dlg_17_3")
  39. StartConversation(conversation, NPC, Spawn, "Oy! Fill 'er up then why don't ya! If it's half as good as Mav describes it it'll have been worth the wait.")
  40. end
  41. function dlg_17_3(NPC, Spawn)
  42. FaceTarget(NPC, Spawn)
  43. conversation = CreateConversation()
  44. AddConversationOption(conversation, "How is it?", "dlg_17_4")
  45. StartConversation(conversation, NPC, Spawn, "Hold your chairs 'cause here I go!")
  46. end
  47. function dlg_17_4(NPC, Spawn)
  48. SetStepComplete(Spawn, DWARF_MENTOR_QUEST_2, 2)
  49. -- knockeddowntoknees
  50. SpawnSet(NPC, "visual_state", 11764)
  51. AddTimer(NPC, 3000, "RemoveVisualState")
  52. FaceTarget(NPC, Spawn)
  53. conversation = CreateConversation()
  54. AddConversationOption(conversation, "You're welcome.")
  55. StartConversation(conversation, NPC, Spawn, "Oooooh-wee, that'll make ya warm at night. She was right about it. I can't wait until she goes into business. Best brew this side of Kaladim. Hah, no offense, Coppershot! Thanks for bringing it to me!")
  56. end
  57. function RemoveVisualState(NPC)
  58. SpawnSet(NPC, "visual_state", 0)
  59. end