ApprenticeBoggi.lua 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --[[
  2. Script Name : SpawnScripts/Castleview/ApprenticeBoggi.lua
  3. Script Purpose : Apprentice Boggi
  4. Script Author : Scatman
  5. Script Date : 2009.10.03
  6. Script Notes :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. dofile("SpawnScripts/Generic/GenericEcologyVoiceOvers.lua")
  10. local Tool = 5457
  11. function spawn(NPC)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function hailed(NPC, Spawn)
  17. if GetFactionAmount(Spawn,11) <0 then
  18. FactionChecking(NPC, Spawn, faction)
  19. else
  20. FaceTarget(NPC, Spawn)
  21. Dialog.New(NPC, Spawn)
  22. Dialog.AddDialog("Oh! Hello! I wasn't... um... napping. I was just resting my injured leg. That's it!")
  23. Dialog.AddVoiceover("voiceover/english/apprentice_boggi/qey_village04/apprenticeboggi.mp3", 1068299089, 2686342617)
  24. if GetQuestStep(Spawn, Tool) ==1 then
  25. Dialog.AddOption("Froptub wanted me to find you. He said you haven't delivered the new etching tool yet.", "ToolPickup")
  26. end
  27. Dialog.AddOption("I think I'll let you get back to resting your \"injury.\" Good bye.")
  28. Dialog.Start()
  29. end
  30. end
  31. function ToolPickup(NPC, Spawn)
  32. FaceTarget(NPC, Spawn)
  33. Dialog.New(NPC, Spawn)
  34. Dialog.AddDialog("Oh, yes, the etching tool. I have it right here. Could you deliver it for me? I don't think my leg will make it up the stairs to his smithy.")
  35. Dialog.AddVoiceover("voiceover/english/apprentice_boggi/qey_village04/apprenticeboggi000.mp3",2830477410, 146534045)
  36. PlayFlavor(NPC, "", "", "agree", 0,0 , Spawn)
  37. Dialog.AddOption("I'll take the tool to Froptub and let you get back to resting your \"injury\".","Update")
  38. Dialog.AddOption("You must be joking. I'm not doing your work for you.")
  39. Dialog.Start()
  40. end
  41. function Update(NPC, Spawn)
  42. SetStepComplete(Spawn, Tool, 1)
  43. end