9
3

CarpenterJorgieIcearmor.lua 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. --[[
  2. Script Name : SpawnScripts/Graystone/CarpenterJorgieIcearmor.lua
  3. Script Purpose : Carpenter Jorgie Icearmor
  4. Script Author : John Adams
  5. Script Date : 2008.09.21
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local Priest1 = 5772
  10. function spawn(NPC)
  11. SetInfoStructString(NPC, "action_state", "woodworking_idle")
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function hailed(NPC, Spawn)
  17. FaceTarget(NPC, Spawn)
  18. Dialog.New(NPC, Spawn)
  19. Dialog.AddDialog("A good day's work is the measure of worth!")
  20. Dialog.AddVoiceover("voiceover/english/carpenter_jorgie_icearmor/qey_harbor/jorgieicearmor000.mp3", 2791551387, 1030675041)
  21. PlayFlavor(NPC, "", "", "nod", 0, 0, Spawn)
  22. if HasQuest(Spawn,Priest1) and GetQuestStepProgress(Spawn,Priest1,2)==0 and GetQuestStep(Spawn,Priest1) <=2 then
  23. Dialog.AddOption("I understand you're not feeling well.", "Priest")
  24. end
  25. Dialog.AddOption("I fully agree. I'll let you get back to work!")
  26. Dialog.AddOption("No, I think it's just you. I'll let you get back to what you're doing.")
  27. Dialog.Start()
  28. end
  29. function Priest(NPC, Spawn)
  30. FaceTarget(NPC, Spawn)
  31. Dialog.New(NPC, Spawn)
  32. Dialog.AddDialog("Harr! Does all of Qeynos know about it?! You tell one friend you've got a bad case of the ... the wind, and soon the whole city is a-buzz! Best keep yer distance, friend.")
  33. Dialog.AddVoiceover("voiceover/english/carpenter_jorgie_icearmor/qey_harbor/jorgieicearmor001.mp3", 4288259113, 2466627591)
  34. PlayFlavor(NPC, "", "", "chuckle", 0, 0, Spawn)
  35. Dialog.AddOption("I see. When did you start noticing this problem?","Priesta")
  36. Dialog.AddOption("Is THAT what that smell is? I must be going...")
  37. Dialog.Start()
  38. end
  39. function Priesta(NPC, Spawn)
  40. FaceTarget(NPC, Spawn)
  41. Dialog.New(NPC, Spawn)
  42. Dialog.AddDialog("Oh, earlier today. Hmm ... now that you mention it the vapors started a little after I'd eaten that hunk of brisket I'd been saving.")
  43. Dialog.AddVoiceover("voiceover/english/carpenter_jorgie_icearmor/qey_harbor/jorgieicearmor002.mp3", 683432825, 959372110)
  44. PlayFlavor(NPC, "", "", "gutcramp", 0, 0, Spawn)
  45. Dialog.AddOption("A hunk of brisket? How old was it?","Priestb")
  46. Dialog.Start()
  47. end
  48. function Priestb(NPC, Spawn)
  49. FaceTarget(NPC, Spawn)
  50. Dialog.New(NPC, Spawn)
  51. Dialog.AddDialog("The missus cooked up this brisket that was so darned good; I wanted to keep a slab for special occasions. So, I stashed it 'round back where the cats and rats couldn't get at it. I suppose that was ... oh ... two months, three months ago.")
  52. Dialog.AddVoiceover("voiceover/english/carpenter_jorgie_icearmor/qey_harbor/jorgieicearmor003.mp3", 1074806250, 332386423)
  53. PlayFlavor(NPC, "", "", "confused", 0, 0, Spawn)
  54. Dialog.AddOption("You ate three-month-old meat?!","Priestc")
  55. Dialog.AddOption("...you need more help than I can offer. Good bye.")
  56. Dialog.Start()
  57. end
  58. function Priestc(NPC, Spawn)
  59. FaceTarget(NPC, Spawn)
  60. Dialog.New(NPC, Spawn)
  61. Dialog.AddDialog("Aye, it was a bit gamey. Maybe I shoulda cured it or cooked it first. I thought it was all right -- better than most days at the pub. But now I've a terrible pain in my gut, and my face is roasting hot.")
  62. Dialog.AddVoiceover("voiceover/english/carpenter_jorgie_icearmor/qey_harbor/jorgieicearmor004.mp3", 4032914528, 185062024)
  63. PlayFlavor(NPC, "", "", "gutcramp", 0, 0, Spawn)
  64. Dialog.AddOption("You have food poisoning! Let me heal you!","Priestd")
  65. Dialog.AddOption("You're going to die, and I can't help you! Gods! What did I do to deserve this test?!")
  66. Dialog.Start()
  67. end
  68. function Priestd(NPC, Spawn)
  69. SetStepComplete(Spawn,Priest1,2)
  70. FaceTarget(NPC, Spawn)
  71. Dialog.New(NPC, Spawn)
  72. Dialog.AddDialog("Ho now, I feel better already! Next time, I won't eat any brisket older than a month, 'less it's been properly salted. An' I'll pick out the maggots first. You're a temple healer, yes? Good work! Good work! I'll be sure to give a little something extra to the temple this week. Maybe a hefty slab of meat!")
  73. Dialog.AddVoiceover("voiceover/english/carpenter_jorgie_icearmor/qey_harbor/jorgieicearmor005.mp3", 1129428515, 388268360)
  74. PlayFlavor(NPC, "", "", "boggle", 0, 0, Spawn)
  75. Dialog.AddOption("Blessings be upon ... Oh, I'm gonna be sick!")
  76. Dialog.Start()
  77. ApplySpellVisual(NPC,58)
  78. CastSpell(Spawn,53)
  79. end