ImnatDVren.lua 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --[[
  2. Script Name : SpawnScripts/LongshadowAlley/ImnatDVren.lua
  3. Script Purpose : Imnat D`Vren
  4. Script Author : torsten
  5. Script Date : 2022.07.19
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local ADramaticPerformance = 5679
  10. local AShadyClearing = 5680
  11. local TheTruthisoutThere = 5684
  12. function spawn(NPC)
  13. ProvidesQuest(NPC, AShadyClearing)
  14. end
  15. function respawn(NPC)
  16. spawn(NPC)
  17. end
  18. function hailed(NPC, Spawn)
  19. if HasCompletedQuest(Spawn, ADramaticPerformance) then
  20. if not HasQuest(Spawn, AShadyClearing) and not HasCompletedQuest(Spawn, AShadyClearing) then
  21. OfferQuest(NPC, Spawn, AShadyClearing)
  22. end
  23. end
  24. if GetQuestStep(Spawn, AShadyClearing) == 2 then
  25. SetStepComplete(Spawn, AShadyClearing, 2)
  26. end
  27. if GetQuestStep(Spawn, TheTruthisoutThere) == 1 then
  28. FaceTarget(NPC, Spawn)
  29. Dialog.New(NPC, Spawn)
  30. Dialog.AddDialog("Yes... I know something about this. Who sends you again ?")
  31. Dialog.AddOption("Captain L`Nek of course. Now tell me what you know!")
  32. Dialog.Start()
  33. SetStepComplete(Spawn, TheTruthisoutThere, 1)
  34. end
  35. RandomGreeting(NPC, Spawn)
  36. end
  37. function RandomGreeting(NPC, Spawn)
  38. local choice = MakeRandomInt(1,1)
  39. if choice == 1 then
  40. PlayFlavor(NPC, "voiceover/english/imnat_d_vren/fprt_hood05/100_std_de_male_imnat_dvren_callout_c7828a4.mp3", "Bah! That Maliz keeps breaking everything. He's not allowed near what little furniture we have left! What do you want? Can't you see I'm busy!", "", 3649396705, 3766219054, Spawn, 0)
  41. end
  42. end