CorporalBatton.lua 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --[[
  2. Script Name : CorporalBatton.lua
  3. Script Purpose : Corporal Batton
  4. Script Author : Jabantiz
  5. Script Date : 08/29/2019
  6. Script Notes : Auto-Generated from a chat log using SpawnScriptDesigner
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local PeckettsPatrol = 5715
  10. function spawn(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. Dialog.New(NPC, Spawn)
  18. Dialog.AddDialog("I am afraid I must ask you to move along, citizen. This is a place of duty, not chatter.")
  19. Dialog.AddVoiceover("voiceover/english/corporal_batton/mudlib/vdl/quests/antonica/corporalbatton000.mp3", 3155813947, 2657899917)
  20. PlayFlavor(NPC,"","","sniff",0,0,Spawn)
  21. if GetQuestStep(Spawn, PeckettsPatrol) == 6 then
  22. Dialog.AddOption("Coldwind Point Garrison reporting.", "Option1")
  23. end
  24. Dialog.AddOption("Excuse my interruption, guard.")
  25. Dialog.Start()
  26. end
  27. function Option1(NPC, Spawn)
  28. SetStepComplete(Spawn, PeckettsPatrol, 6)
  29. FaceTarget(NPC, Spawn)
  30. Dialog.New(NPC, Spawn)
  31. Dialog.AddDialog("Nothing to report here militiaman. Before you proceed with your patrol the General has asked that you patrol Crater Pond also. You'll find Crater Pond just east of the South Gate of Qeynos.")
  32. Dialog.AddVoiceover("voiceover/english/corporal_batton/antonica/corporalbatton001.mp3", 77618874, 84026675)
  33. PlayFlavor(NPC,"","","no",0,0,Spawn)
  34. Dialog.AddOption("For Qeynos!","Salute")
  35. Dialog.Start()
  36. end
  37. function Salute(NPC,Spawn)
  38. PlayFlavor(NPC,"","","salute",0,0,Spawn)
  39. end