Aves.lua 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. --[[
  2. Script Name : SpawnScripts/Nettleville/Aves.lua
  3. Script Purpose : Aves
  4. Script Author : Scatman
  5. Script Date : 2009.08.12
  6. Script Notes :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local FPStout = 5595
  10. function spawn(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. if GetFactionAmount(Spawn,11)<0 then
  17. FaceTarget(NPC, Spawn)
  18. PlayFlavor(NPC, "", "", "shakefist", 0, 0, Spawn)
  19. else
  20. FaceTarget(NPC, Spawn)
  21. Dialog.New(NPC, Spawn)
  22. PlayFlavor(NPC, "", "", "no", 0, 0, Spawn)
  23. Dialog.AddDialog("Shhh! Keep your voice down. Unless my brother sent you, I suggest you find another place to wait for the ferry.")
  24. Dialog.AddVoiceover("voiceover/english/aves/qey_village01/aves000.mp3", 3237492483, 2034262045)
  25. if not HasQuest(Spawn,FPStout) and not HasCompletedQuest (Spawn, FPStout) then
  26. Dialog.AddOption("Um... I don't even know who your brother is. I think I'll leave you alone")
  27. end
  28. if GetQuestStep (Spawn, FPStout)==1 then
  29. Dialog.AddOption("Your brother actually sent me to pick up a delivery for him.","FPStoutTurnin")
  30. end
  31. if HasCompletedQuest (Spawn, FPStout) then
  32. Dialog.AddOption("I've done all I care to do for you and your brother. Good day.")
  33. end
  34. Dialog.Start()
  35. end
  36. end
  37. function FPStoutTurnin(NPC, Spawn)
  38. FaceTarget(NPC, Spawn)
  39. Dialog.New(NPC, Spawn)
  40. Dialog.AddDialog("Good good! Here is the small crate he wants. Take it straight to him and don't stop to converse with any guards. I'd take it to him but my face is too... famous around these parts.")
  41. Dialog.AddVoiceover("voiceover/english/aves/qey_village01/aves001.mp3", 854559524, 3758157918)
  42. Dialog.AddOption("Should I be concerned about what is in this crate?", "FPStoutTurnin2")
  43. Dialog.Start()
  44. end
  45. function FPStoutTurnin2(NPC, Spawn)
  46. FaceTarget(NPC, Spawn)
  47. Dialog.New(NPC, Spawn)
  48. PlayFlavor(NPC,"","","shrug",0,0,Spawn)
  49. Dialog.AddDialog("Well, considering you're carrying some of Freeport's finest stout, I don't think making small talk with the guards is wise. They don't take kindly to hooch crossing in these walls. Now, hurry back to Verth. By now he's dry as a bone!")
  50. Dialog.AddVoiceover("voiceover/english/aves/qey_village01/aves002.mp3", 1813890327, 1734189734)
  51. Dialog.AddOption("...Alright.", "QuestUpdate")
  52. Dialog.Start()
  53. end
  54. function QuestUpdate(NPC, Spawn)
  55. SetStepComplete(Spawn, FPStout, 1)
  56. end