9
3

ElmaLowe.lua 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. --[[
  2. Script Name : SpawnScripts/NorthFreeport/ElmaLowe.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.06.19 04:06:22
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local Fighter = 5898
  10. function spawn(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. Dialog1(NPC, Spawn)
  17. end
  18. function Dialog1(NPC, Spawn)
  19. FaceTarget(NPC, Spawn)
  20. Dialog.New(NPC, Spawn)
  21. Dialog.AddDialog("Come in. Come in. Welcome to the Jade Tiger's Den, the finest tavern in all of Freeport. Feel free to browse our menu. I personally guarantee that we serve only the highest-quality food and brews. ")
  22. Dialog.AddVoiceover("voiceover/english/elma_lowe/fprt_north/elmalowe000.mp3", 3610495310, 1230069492)
  23. if HasQuest(Spawn,Fighter) and GetQuestStep(Spawn,Fighter)>=3 and GetQuestStep(Spawn,Fighter)<=5 and GetQuestStepProgress(Spawn,Fighter,3)==0 then
  24. Dialog.AddOption("[Hit her to get her attention]","Dialog1a")
  25. end
  26. Dialog.AddOption("I'll take a look around. ")
  27. Dialog.Start()
  28. end
  29. function Dialog1a(NPC, Spawn)
  30. FaceTarget(Spawn, NPC)
  31. AddTimer(NPC,800,"Dialog2",1,Spawn)
  32. PlayFlavor(Spawn, "", "", "pugilist_attack01", 0, 0, NPC)
  33. end
  34. function Dialog2(NPC, Spawn)
  35. FaceTarget(NPC, Spawn)
  36. Dialog.New(NPC, Spawn)
  37. Dialog.AddDialog("Ouch! Why did you do that?")
  38. PlayFlavor(NPC, "", "", "1h_thrown_ouch_down", 0, 0, Spawn)
  39. ApplySpellVisual(NPC,249)
  40. Dialog.AddVoiceover("voiceover/english/elma_lowe/fprt_north/elmalowe001.mp3", 434677831, 1032175372)
  41. Dialog.AddOption("Lucan doesn't want you serving the Gutternsnipes. [punch her again, harder]","Dialog2a")
  42. Dialog.Start()
  43. end
  44. function Dialog2a(NPC, Spawn)
  45. FaceTarget(Spawn, NPC)
  46. PlayFlavor(Spawn, "", "", "pugilist_attack", 0, 0, NPC)
  47. AddTimer(NPC,800,"Dialog2b",1,Spawn)
  48. end
  49. function Dialog2b(NPC, Spawn)
  50. FaceTarget(Spawn, NPC)
  51. PlayFlavor(NPC, "", "", "1h_thrown_ouch_forehand", 0, 0, Spawn)
  52. ApplySpellVisual(NPC,249)
  53. AddTimer(NPC,1300,"Dialog3",1,Spawn)
  54. end
  55. function Dialog3(NPC, Spawn)
  56. FaceTarget(NPC, Spawn)
  57. Dialog.New(NPC, Spawn)
  58. Dialog.AddDialog("Okay, okay!!!! I won't serve them anymore!")
  59. SetStepComplete(Spawn,Fighter,3)
  60. PlayFlavor(NPC, "", "", "cringe", 0, 0, Spawn)
  61. Dialog.AddVoiceover("voiceover/english/elma_lowe/fprt_north/elmalowe002.mp3", 2594071441, 2925543161)
  62. Dialog.AddOption("Good.")
  63. Dialog.Start()
  64. end