9
3

YarinSkystride.lua 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. --[[
  2. Script Name : SpawnScripts/GreaterFaydark/YarinSkystride.lua
  3. Script Purpose : Yarin Skystride <Sylvan Hunters>
  4. Script Author : John Adams
  5. Script Date : 2009.03.01
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function InRange(NPC, Spawn)
  15. end
  16. function LeaveRange(NPC, Spawn)
  17. end
  18. function hailed(NPC, Spawn)
  19. FaceTarget(NPC, Spawn)
  20. conversation = CreateConversation()
  21. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1006.mp3", "", "", 0, 0, Spawn)
  22. AddConversationOption(conversation, "I would like the writ: Crushbone Sentries", "dlg_2_1")
  23. AddConversationOption(conversation, "I would like the writ: Crushbone Conscripts")
  24. AddConversationOption(conversation, "I am too busy at this time to help, though it is a worthy cause.")
  25. StartConversation(conversation, NPC, Spawn, "Welcome to the Sylvan Hunters, .. GetName(Spawn) .. . The lands of Faydwer can be a very dangerous place. We could use your help making it safer for our people and allies.")
  26. if convo==3 then
  27. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1006.mp3", "", "", 0, 0, Spawn)
  28. AddConversationOption(conversation, "I would like the writ: Crushbone Sentries", "dlg_3_1")
  29. AddConversationOption(conversation, "I would like the writ: Crushbone Conscripts")
  30. AddConversationOption(conversation, "I am too busy at this time to help, though it is a worthy cause.")
  31. StartConversation(conversation, NPC, Spawn, "Welcome to the Sylvan Hunters, .. GetName(Spawn) .. . The lands of Faydwer can be a very dangerous place. We could use your help making it safer for our people and allies.")
  32. end
  33. if convo==16 then
  34. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1006.mp3", "", "", 0, 0, Spawn)
  35. AddConversationOption(conversation, "I would like the writ: Crushbone Sentries", "dlg_16_1")
  36. AddConversationOption(conversation, "I would like the writ: Crushbone Conscripts")
  37. AddConversationOption(conversation, "I would like the writ: Crushbone Sparrers")
  38. AddConversationOption(conversation, "I am too busy at this time to help, though it is a worthy cause.")
  39. StartConversation(conversation, NPC, Spawn, "Welcome to the Sylvan Hunters, .. GetName(Spawn) .. . The lands of Faydwer can be a very dangerous place. We could use your help making it safer for our people and allies.")
  40. end
  41. end
  42. function dlg_16_1(NPC, Spawn)
  43. FaceTarget(NPC, Spawn)
  44. conversation = CreateConversation()
  45. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  46. AddConversationOption(conversation, "Thank you, I'll get started right away.", "dlg_16_2")
  47. StartConversation(conversation, NPC, Spawn, "The Sylvan Hunters would like for you to eliminate Crushbone sentries to further our cause. Doing so will earn you favor with our organization.")
  48. end