CaptainSturman.lua 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. --[[
  2. Script Name : SpawnScripts/TheThunderingSteppes/CaptainSturman.lua
  3. Script Purpose : Captain Sturman
  4. Script Author : geordie0511
  5. Script Date : 2019.03.19
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local Captain = 472
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function InRange(NPC, Spawn)
  16. end
  17. function LeaveRange(NPC, Spawn)
  18. end
  19. function hailed(NPC, Spawn)
  20. FaceTarget(NPC, Spawn)
  21. conversation = CreateConversation()
  22. PlayFlavor(NPC, "voiceover/english/captain_sturman/steppes/captainsturman000.mp3", "", "", 2356938778, 3921151874, Spawn)
  23. if GetQuestStep(Spawn, Captain) == 1 then
  24. AddConversationOption(conversation, "Thank you for the warning. ")
  25. StartConversation(conversation, NPC, Spawn, "Be careful out in these lands, adventurer. There are many factions in the Thundering Steppes that are not friendly to outsiders.")
  26. SetStepComplete(Spawn, Captain, 1)
  27. else
  28. AddConversationOption(conversation, "Thank you for the warning. ")
  29. StartConversation(conversation, NPC, Spawn, "Be careful out in these lands, adventurer. There are many factions in the Thundering Steppes that are not friendly to outsiders.")
  30. end
  31. end