MarshalSurefoot.lua 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. --[[
  2. Script Name : SpawnScripts/Baubbleshire/MarshalSurefoot.lua
  3. Script Purpose : Marshal Surefoot
  4. Script Author : John Adams
  5. Script Date : 2008.09.23
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. -- Quest ID's
  9. local FIGHT_THE_FORGOTTEN_GUARDIANS = 334 -- was 59
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, FIGHT_THE_FORGOTTEN_GUARDIANS)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function hailed(NPC, Spawn)
  17. FaceTarget(NPC, Spawn)
  18. conversation = CreateConversation()
  19. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1006.mp3", "", "", 0, 0, Spawn)
  20. Begin(NPC, Spawn, conversation)
  21. end
  22. function Begin(NPC, Spawn, conversation)
  23. if not HasQuest(Spawn, FIGHT_THE_FORGOTTEN_GUARDIANS) and not HasCompletedQuest(Spawn, FIGHT_THE_FORGOTTEN_GUARDIANS) and GetLevel(Spawn) >= 5 then
  24. AddConversationOption(conversation, "Do deputies get paid well?", "PaidWell")
  25. elseif HasQuest(Spawn, FIGHT_THE_FORGOTTEN_GUARDIANS) and GetQuestStep(Spawn, FIGHT_THE_FORGOTTEN_GUARDIANS) == 2 then
  26. AddConversationOption(conversation, "It was amazing! I defeated five forgotten guardians.", "KilledGuardians")
  27. end
  28. AddConversationOption(conversation, "Sorry to hear that. I must be going.")
  29. StartConversation(conversation, NPC, Spawn, "Stand stout! You'd make a fine deputy.")
  30. end
  31. function PaidWell(NPC, Spawn)
  32. FaceTarget(NPC, Spawn)
  33. conversation = CreateConversation()
  34. AddConversationOption(conversation, "I can face the titans of the forest.", "CanFaceTitans")
  35. AddConversationOption(conversation, "I'm not facing any titans today.")
  36. StartConversation(conversation, NPC, Spawn, "Aha! A mercenary! I can use your mettle for testing the strengths of the enemy. Can you overcome the titants of the forest? What do ya say, soldier?")
  37. end
  38. function CanFaceTitans(NPC, Spawn)
  39. FaceTarget(NPC, Spawn)
  40. conversation = CreateConversation()
  41. AddConversationOption(conversation, "I will face the titans.", "OfferQuest1")
  42. StartConversation(conversation, NPC, Spawn, "Then stand firm and venture to the Forest Ruins. The foes act as Forgotten Guardians. They prey upon the people ... stand tall soldier! Crush a few and return with a tale of victory!")
  43. end
  44. function OfferQuest1(NPC, Spawn)
  45. FaceTarget(NPC, Spawn)
  46. OfferQuest(NPC, Spawn, FIGHT_THE_FORGOTTEN_GUARDIANS)
  47. end
  48. function KilledGuardians(NPC, Spawn)
  49. SetStepComplete(Spawn, FIGHT_THE_FORGOTTEN_GUARDIANS, 2)
  50. FaceTarget(NPC, Spawn)
  51. conversation = CreateConversation()
  52. AddConversationOption(conversation, "Farewell Marshal Surefoot.")
  53. StartConversation(conversation, NPC, Spawn, "What bravery! You laughed in the face of death! You are a true protector of the forest realms. I shall seek you out when I recruit my force of Leatherfoot deputies. You are relieved for now.")
  54. end