SoldierPellenos.lua 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. --[[
  2. Script Name : SoldierPellenos.lua
  3. Script Purpose : Soldier Pellenos
  4. Script Author : Dorbin
  5. Script Date : 08/29/2019
  6. Script Notes :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local Quest2 = 5773
  10. function spawn(NPC)
  11. SpawnSet(NPC,"mood_state",11851)
  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("Hello there! Come for tea? I'm sorry, but I'm completely out of sugar! Ask the gnolls; they killed everyone here. Yes, everyone ... but me. And now I don't know where the teapot is. But there's no sugar, so it doesn't matter. Hee hee!")
  20. Dialog.AddVoiceover("voiceover/english/soldier_pellenos/antonica/soldierpellenos000.mp3", 1163216661, 1374396993)
  21. if not HasQuest(Spawn,Quest2)then
  22. Dialog.AddOption("Err okay. Goodbye.")
  23. elseif GetQuestStep(Spawn,Quest2)>=3 and GetQuestStep(Spawn,Quest2)<=5 then
  24. Dialog.AddOption("Are you all right?","Dialog1")
  25. end
  26. Dialog.Start()
  27. end
  28. -- SetStepComplete(NPC,Quest2,4)
  29. function Dialog1(NPC, Spawn)
  30. FaceTarget(NPC,Spawn)
  31. Dialog.New(NPC, Spawn)
  32. Dialog.AddDialog("Perhaps. Although I might be all left! Yes, I'm the only one left. So I can't be right, after all, can I?")
  33. Dialog.AddVoiceover("voiceover/english/soldier_pellenos/antonica/soldierpellenos001.mp3", 3557389573, 3806634312)
  34. PlayFlavor(NPC,"","","crazy",0,0,Spawn)
  35. Dialog.AddOption("[continue]","Dialog2")
  36. Dialog.Start()
  37. end
  38. function Dialog2(NPC, Spawn)
  39. FaceTarget(NPC,Spawn)
  40. Dialog.New(NPC, Spawn)
  41. Dialog.AddDialog("Oh dear. Why is there blood on my forehead? Where's our commander? Where's the cook? Where is everyone! Why am I the only one who lived? I shouldn't be alive!")
  42. Dialog.AddVoiceover("voiceover/english/soldier_pellenos/antonica/soldierpellenos002.mp3", 1526924525, 878736968)
  43. PlayFlavor(NPC,"","","doh",0,0,Spawn)
  44. Dialog.AddOption("*Call upon the spirits to heal the madness the young soldier suffers*","Dialog3")
  45. Dialog.Start()
  46. end
  47. function Dialog3(NPC, Spawn)
  48. FaceTarget(NPC,Spawn)
  49. Dialog.New(NPC, Spawn)
  50. Dialog.AddDialog("Oh my. Who are you? When did you arrive? My eyes are playing tricks on me. Is that you, Papa? Oh, Papa! I saw some bad things today, Papa! I didn't die with the rest of 'em.")
  51. Dialog.AddVoiceover("voiceover/english/soldier_pellenos/antonica/soldierpellenos003.mp3", 2378022983, 3720942230)
  52. PlayFlavor(NPC,"","","doubletake",0,0,Spawn)
  53. Dialog.AddOption("I'm not your Papa, young man. I am a healer, and you've been badly wounded.","Dialog4")
  54. Dialog.Start()
  55. ApplySpellVisual(NPC,58)
  56. CastSpell(Spawn,52)
  57. end
  58. function Dialog4(NPC, Spawn)
  59. FaceTarget(NPC,Spawn)
  60. Dialog.New(NPC, Spawn)
  61. Dialog.AddDialog("No no! No wounds here! I'm a strong boy, I am! Yes, Papa, I'll pull myself together. I can hear you clearly.")
  62. Dialog.AddVoiceover("voiceover/english/soldier_pellenos/antonica/soldierpellenos004.mp3", 313471122, 2661378922)
  63. PlayFlavor(NPC,"","","heckno",0,0,Spawn)
  64. Dialog.AddOption("I hope my healing prayer works quickly. You're really losing it.","Dialog5")
  65. Dialog.Start()
  66. ApplySpellVisual(NPC,58)
  67. CastSpell(Spawn,52)
  68. end
  69. function Dialog5(NPC, Spawn)
  70. FaceTarget(NPC,Spawn)
  71. Dialog.New(NPC, Spawn)
  72. Dialog.AddDialog("Uh ... what was I just raving about? Thank you, stranger. I ... I lost myself for a moment. But I'm getting better. This wound is not serious, but I must return to Qeynos and inform them about the gnoll attack. Um ... you are the one who healed me, aren\'t you? Thank you.")
  73. Dialog.AddVoiceover("voiceover/english/soldier_pellenos/antonica/soldierpellenos005.mp3", 3396914222, 3656653380)
  74. PlayFlavor(NPC,"","","confused",0,0,Spawn)
  75. Dialog.AddOption("You're welcome. You seem to have pulled through.","Dialog6")
  76. Dialog.Start()
  77. SpawnSet(NPC,"mood_state",0)
  78. ApplySpellVisual(NPC,57)
  79. CastSpell(Spawn,53)
  80. end
  81. function Dialog6(NPC,Spawn)
  82. FaceTarget(NPC,Spawn)
  83. PlayFlavor(NPC,"","","thanks",0,0)
  84. SetStepComplete(Spawn,Quest2,5)
  85. AddTimer(NPC,6000,"Despawning")
  86. end
  87. function Despawning(NPC,Spawn)
  88. Despawn(NPC)
  89. end