9
3

QuartermasterLewyn.lua 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. --[[
  2. Script Name : SpawnScripts/QeynosHarbor/QuartermasterLewyn.lua
  3. Script Purpose : Quartermaster Lewyn <City Quartermaster>
  4. Script Author : Cynnar
  5. Script Date : 2020.04.12
  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_2_1049.mp3", "", "", 0, 0, Spawn)
  22. AddConversationOption(conversation, "I have an armor mold I would like to turn in.", "dlg_15_1")
  23. AddConversationOption(conversation, "Nothing.")
  24. StartConversation(conversation, NPC, Spawn, "What can I do for you?")
  25. if convo==16 then
  26. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1049.mp3", "", "", 0, 0, Spawn)
  27. AddConversationOption(conversation, "I have an armor mold I would like to turn in.", "dlg_16_1")
  28. AddConversationOption(conversation, "Nothing.")
  29. StartConversation(conversation, NPC, Spawn, "What can I do for you?")
  30. end
  31. if convo==21 then
  32. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1049.mp3", "", "", 0, 0, Spawn)
  33. AddConversationOption(conversation, "I have an armor mold I would like to turn in.", "dlg_21_1")
  34. AddConversationOption(conversation, "Nothing.")
  35. StartConversation(conversation, NPC, Spawn, "What can I do for you?")
  36. end
  37. end
  38. function dlg_15_1(NPC, Spawn)
  39. FaceTarget(NPC, Spawn)
  40. conversation = CreateConversation()
  41. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  42. AddConversationOption(conversation, "I don't have a mold.", "dlg_15_2")
  43. StartConversation(conversation, NPC, Spawn, "What type of mold do you have?")
  44. end
  45. function dlg_21_1(NPC, Spawn)
  46. FaceTarget(NPC, Spawn)
  47. conversation = CreateConversation()
  48. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  49. AddConversationOption(conversation, "I don't have a mold.", "dlg_21_2")
  50. StartConversation(conversation, NPC, Spawn, "What type of mold do you have?")
  51. end