MerchantMelilah.lua 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. --[[
  2. Script Name : SpawnScripts/GreaterFaydark/MerchantMelilah.lua
  3. Script Purpose : Merchant Melilah
  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, "", "", "", 0, 0, Spawn)
  22. AddConversationOption(conversation, "That depends.", "dlg_17_1")
  23. AddConversationOption(conversation, "No, thanks.")
  24. StartConversation(conversation, NPC, Spawn, "Did you want to earn a little commission on a job for me?")
  25. if convo==45 then
  26. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  27. AddConversationOption(conversation, "Yes. She asked me to tell you...", "dlg_45_1")
  28. AddConversationOption(conversation, "Um...I think I've lost the note you gave me earlier.")
  29. AddConversationOption(conversation, "Not yet.")
  30. StartConversation(conversation, NPC, Spawn, "Have you spoken with HER yet?")
  31. end
  32. if convo==46 then
  33. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1005.mp3", "", "", 0, 0, Spawn)
  34. AddConversationOption(conversation, "Yes. She asked me to tell you...", "dlg_46_1")
  35. AddConversationOption(conversation, "Um...I think I've lost the note you gave me earlier.")
  36. AddConversationOption(conversation, "Not yet.")
  37. StartConversation(conversation, NPC, Spawn, "Have you spoken with HER yet?")
  38. end
  39. if convo==48 then
  40. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1005.mp3", "", "", 0, 0, Spawn)
  41. AddConversationOption(conversation, "You two are fighting over your father's estate?", "dlg_48_1")
  42. AddConversationOption(conversation, "Relax! I just said 'hello' to you.")
  43. StartConversation(conversation, NPC, Spawn, "Well?")
  44. end
  45. if convo==49 then
  46. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1005.mp3", "", "", 0, 0, Spawn)
  47. AddConversationOption(conversation, "You two are fighting over your father's estate?", "dlg_49_1")
  48. AddConversationOption(conversation, "Relax! I just said 'hello' to you.")
  49. StartConversation(conversation, NPC, Spawn, "Well?")
  50. end
  51. end
  52. function dlg_17_1(NPC, Spawn)
  53. FaceTarget(NPC, Spawn)
  54. conversation = CreateConversation()
  55. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  56. AddConversationOption(conversation, "Then why don't you go yourself?", "dlg_17_2")
  57. StartConversation(conversation, NPC, Spawn, "I need to send a note to my sister Fallulah. She's just over there near the bank.")
  58. end
  59. function dlg_17_2(NPC, Spawn)
  60. FaceTarget(NPC, Spawn)
  61. conversation = CreateConversation()
  62. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  63. AddConversationOption(conversation, "You want me to take a note to her so you don't have to speak to her yourself?", "dlg_17_3")
  64. StartConversation(conversation, NPC, Spawn, "Because we're not SPEAKING with each other! Ooooh....she makes me SO angry! Just thinking about what she said...but...okay...I'm calmer now. Anyway, if I didn't need to contact her, I wouldn't, but it can't be avoided.")
  65. end
  66. function dlg_17_3(NPC, Spawn)
  67. FaceTarget(NPC, Spawn)
  68. conversation = CreateConversation()
  69. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  70. AddConversationOption(conversation, "Well. Okay.", "dlg_17_4")
  71. StartConversation(conversation, NPC, Spawn, "Exactly. Like I said, a little commission for an easy job. I'd really appreciate it.")
  72. end
  73. function dlg_45_1(NPC, Spawn)
  74. FaceTarget(NPC, Spawn)
  75. conversation = CreateConversation()
  76. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  77. AddConversationOption(conversation, "I won't.")
  78. StartConversation(conversation, NPC, Spawn, "It figures. The one time...just a moment...let me write...out...another...note. Don't lose this one.")
  79. end
  80. function dlg_46_1(NPC, Spawn)
  81. FaceTarget(NPC, Spawn)
  82. conversation = CreateConversation()
  83. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  84. AddConversationOption(conversation, "She said to tell you that she 'wants the clock' and that you'll know what that means.", "dlg_46_2")
  85. StartConversation(conversation, NPC, Spawn, "How DARE she presume to talk to me! Even if it's only through you! I have a good mind to...calm...deep breaths...What did she have to say?")
  86. end
  87. function dlg_46_2(NPC, Spawn)
  88. FaceTarget(NPC, Spawn)
  89. conversation = CreateConversation()
  90. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  91. AddConversationOption(conversation, "Er, can I ask you what's going on between the two of you?", "dlg_46_3")
  92. StartConversation(conversation, NPC, Spawn, "She can't HAVE the clock. It's MINE! I can't BELIEVE how grasping and conniving...")
  93. end
  94. function dlg_46_3(NPC, Spawn)
  95. FaceTarget(NPC, Spawn)
  96. conversation = CreateConversation()
  97. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  98. AddConversationOption(conversation, "Um, okay.", "dlg_46_4")
  99. StartConversation(conversation, NPC, Spawn, "You still have the note? Go ahead and read it. It explains everything.")
  100. end
  101. function dlg_49_1(NPC, Spawn)
  102. FaceTarget(NPC, Spawn)
  103. conversation = CreateConversation()
  104. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  105. AddConversationOption(conversation, "Did you tell her how you felt?", "dlg_49_2")
  106. StartConversation(conversation, NPC, Spawn, "I'm not fighting, SHE'S fighting. All I ever hear from her is, 'I want this,' or 'I want that.' She's never ONCE asked me how I was feeling, or said anything about how much work it's been for me to handle things.")
  107. end
  108. function dlg_49_2(NPC, Spawn)
  109. FaceTarget(NPC, Spawn)
  110. conversation = CreateConversation()
  111. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  112. AddConversationOption(conversation, "Maybe. But folks show sadness in different ways. Maybe her way is different than yours.", "dlg_49_3")
  113. StartConversation(conversation, NPC, Spawn, "It's obvious, isn't it?")
  114. end
  115. function dlg_49_3(NPC, Spawn)
  116. FaceTarget(NPC, Spawn)
  117. conversation = CreateConversation()
  118. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  119. AddConversationOption(conversation, "She needs you.", "dlg_49_4")
  120. StartConversation(conversation, NPC, Spawn, "Hrmph. Maybe. She always did have it easier than me. Fallulah was daddy's favorite. She didn't have to set up shop until he passed away, and then she was always pestering me about how to do this and how to do that.")
  121. end
  122. function dlg_49_4(NPC, Spawn)
  123. FaceTarget(NPC, Spawn)
  124. conversation = CreateConversation()
  125. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  126. AddConversationOption(conversation, "Sure.", "dlg_49_5")
  127. StartConversation(conversation, NPC, Spawn, "I hadn't really thought of it that way. Maybe I have misjudged her. I tell you what. Let me take back that note and write a different one. Would you take this one to her instead?")
  128. end
  129. function dlg_49_5(NPC, Spawn)
  130. FaceTarget(NPC, Spawn)
  131. conversation = CreateConversation()
  132. PlayFlavor(NPC, "merchant_melilah/_exp03/exp03_cty_kelethin/quest/qst_sisters/qst_melilah014.mp3", "", "", 3364592352, 3085055338, Spawn)
  133. AddConversationOption(conversation, "Glad I could help.", "dlg_49_6")
  134. StartConversation(conversation, NPC, Spawn, "And...thank you. You helped me look at things a different way.")
  135. end