ErwinRohand.lua 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. --[[
  2. Script Name : SpawnScripts/QeynosHarbor/ErwinRohand.lua
  3. Script Purpose : Erwin Rohand <Provisioner>
  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, "", "", "", 0, 0, Spawn)
  22. AddConversationOption(conversation, "I am not really in the market for anything. Is there any other way I can help?", "dlg_1_1")
  23. AddConversationOption(conversation, "Maybe I will have a look at what you have for sale. ")
  24. StartConversation(conversation, NPC, Spawn, "She's still out there, I can feel it. When I have enough money, I am heading out to sea to find my one true love. Won't you help me, friend? Just a small purchase?")
  25. if convo==2 then
  26. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  27. AddConversationOption(conversation, "Maybe I will have a look at what you have for sale. ", "dlg_2_1")
  28. StartConversation(conversation, NPC, Spawn, "She's still out there, I can feel it. When I have enough money, I am heading out to sea to find my one true love. Won't you help me, friend? Just a small purchase?")
  29. end
  30. if convo==3 then
  31. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  32. AddConversationOption(conversation, "I am not really in the market for anything. Is there any other way I can help?", "dlg_3_1")
  33. AddConversationOption(conversation, "Maybe I will have a look at what you have for sale. ")
  34. StartConversation(conversation, NPC, Spawn, "She's still out there, I can feel it. When I have enough money, I am heading out to sea to find my one true love. Won't you help me, friend? Just a small purchase?")
  35. end
  36. if convo==4 then
  37. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  38. AddConversationOption(conversation, "I am not really in the market for anything. Is there any other way I can help?", "dlg_4_1")
  39. AddConversationOption(conversation, "Maybe I will have a look at what you have for sale. ")
  40. StartConversation(conversation, NPC, Spawn, "She's still out there, I can feel it. When I have enough money, I am heading out to sea to find my one true love. Won't you help me, friend? Just a small purchase?")
  41. end
  42. if convo==5 then
  43. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  44. AddConversationOption(conversation, "I am not really in the market for anything. Is there any other way I can help?", "dlg_5_1")
  45. AddConversationOption(conversation, "Maybe I will have a look at what you have for sale. ")
  46. StartConversation(conversation, NPC, Spawn, "She's still out there, I can feel it. When I have enough money, I am heading out to sea to find my one true love. Won't you help me, friend? Just a small purchase?")
  47. end
  48. if convo==8 then
  49. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  50. AddConversationOption(conversation, "Then I'll be back with some sleek wolf hide in no time at all.", "dlg_8_1")
  51. StartConversation(conversation, NPC, Spawn, "Are you looking to help me out? Sailors are always looking for ways to keep warm on the high seas. Wolf hides offer warmth and protection from the bone chilling waters. If you could bring me some sleek hides, the money I make selling them, will bring me closer to finding my love.")
  52. end
  53. end
  54. function dlg_1_1(NPC, Spawn)
  55. FaceTarget(NPC, Spawn)
  56. conversation = CreateConversation()
  57. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  58. AddConversationOption(conversation, "Then I'll be back with some sleek wolf hide in no time at all.", "dlg_1_2")
  59. StartConversation(conversation, NPC, Spawn, "Sailors are always looking for ways to keep warm on the high seas. Wolf hides offer warmth and protection from the bone chilling waters. If you could bring me some sleek hides, the money I make selling them, will bring me closer to finding my love.")
  60. end
  61. function dlg_1_2(NPC, Spawn)
  62. FaceTarget(NPC, Spawn)
  63. conversation = CreateConversation()
  64. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  65. AddConversationOption(conversation, "You're welcome.", "dlg_1_3")
  66. StartConversation(conversation, NPC, Spawn, "Thank you!")
  67. end
  68. function dlg_3_1(NPC, Spawn)
  69. FaceTarget(NPC, Spawn)
  70. conversation = CreateConversation()
  71. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  72. AddConversationOption(conversation, "Then I'll be back with some sleek wolf hide in no time at all.", "dlg_3_2")
  73. StartConversation(conversation, NPC, Spawn, "Sailors are always looking for ways to keep warm on the high seas. Wolf hides offer warmth and protection from the bone chilling waters. If you could bring me some sleek hides, the money I make selling them, will bring me closer to finding my love.")
  74. end
  75. function dlg_5_1(NPC, Spawn)
  76. FaceTarget(NPC, Spawn)
  77. conversation = CreateConversation()
  78. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  79. AddConversationOption(conversation, "Then I'll be back with some sleek wolf hide in no time at all.", "dlg_5_2")
  80. StartConversation(conversation, NPC, Spawn, "Sailors are always looking for ways to keep warm on the high seas. Wolf hides offer warmth and protection from the bone chilling waters. If you could bring me some sleek hides, the money I make selling them, will bring me closer to finding my love.")
  81. end
  82. function dlg_5_2(NPC, Spawn)
  83. FaceTarget(NPC, Spawn)
  84. conversation = CreateConversation()
  85. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  86. AddConversationOption(conversation, "You're welcome.", "dlg_5_3")
  87. StartConversation(conversation, NPC, Spawn, "Thank you!")
  88. end