9
3

ReanaAstia.lua 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. --[[
  2. Script Name : SpawnScripts/BeggarsCourt/ReanaAstia.lua
  3. Script Purpose : Reana Astia
  4. Script Author : torsten
  5. Script Date : 2022.07.18
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local Mage1 = 5902
  10. function spawn(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. if GetFactionAmount(Spawn,12) >0 then
  17. Dialog3(NPC, Spawn)
  18. else
  19. PlayFlavor(NPC,"","","cutthroat",0,0,Spawn)
  20. end
  21. end
  22. function Dialog1(NPC, Spawn)
  23. FaceTarget(NPC, Spawn)
  24. Dialog.New(NPC, Spawn)
  25. Dialog.AddDialog("Me?! A farmer?! HA! I just sell the stuff to make a little money. You can't have fun in this place without a little bit of the cold, hard coin. You know? If I can get this all sold off, I'll have enough to throw a decent party down by the docks. Cazic knows, this place needs some action!")
  26. Dialog.AddVoiceover("voiceover/english/reana_astia/fprt_hood04/std_reana_astia000.mp3", 3252979034, 309845439)
  27. Dialog.AddOption("When's the party?", "Dialog2")
  28. Dialog.Start()
  29. end
  30. function Dialog2(NPC, Spawn)
  31. FaceTarget(NPC, Spawn)
  32. Dialog.New(NPC, Spawn)
  33. Dialog.AddDialog("That all depends on when I can get this all sold, doesn't it? So are you going to take this off my hands or what? I know you have some money in your pockets. Just one sack of grain and you can eat for days.")
  34. Dialog.AddVoiceover("voiceover/english/reana_astia/fprt_hood04/std_reana_astia001.mp3", 4204669996, 3295304812)
  35. Dialog.AddOption("Okay.")
  36. Dialog.Start()
  37. end
  38. function Dialog3(NPC, Spawn)
  39. FaceTarget(NPC, Spawn)
  40. Dialog.New(NPC, Spawn)
  41. Dialog.AddDialog("Hey! Do you want some grain? Nothing's wrong with it. Come on, it'll be good for making beer or something.")
  42. Dialog.AddVoiceover("voiceover/english/reana_astia/fprt_hood04/std_reana_astia.mp3", 3795939248, 4147514993)
  43. Dialog.AddOption("Then I have no need to talk to you.")
  44. Dialog.AddOption("Are you a farmer?", "Dialog1")
  45. if HasQuest(Spawn,Mage1) and GetQuestStepProgress(Spawn,Mage1,7)== 0 then
  46. Dialog.AddOption("I understand you witnessed a summoning today. What was summoned?", "Dialog4")
  47. end
  48. Dialog.Start()
  49. end
  50. function Dialog4(NPC, Spawn)
  51. SetStepComplete(Spawn,Mage1,7)
  52. FaceTarget(NPC, Spawn)
  53. Dialog.New(NPC, Spawn)
  54. Dialog.AddDialog("Dunno for certain. There was this bright light right before it showed up, so we couldn't see it. That's what made it hard to run out of there, too... this guy summoned up a whole bunch of enormous spears! I know they were spears, because as I was running away, I ran right into one of them! I was gored open by that spear and barely made it to a Priest in time... if you find out who did it, kill them for me, got it?")
  55. Dialog.AddVoiceover("voiceover/english/merchant_reana_astia/fprt_hood04/std_reana_astia002.mp3", 1441981908, 166520196)
  56. PlayFlavor(NPC,"","","shrug",0,0,Spawn)
  57. Dialog.AddOption("I'll consider it. So this person summoned some spears... thank you.")
  58. Dialog.Start()
  59. end