aBarbarianTrader.lua 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. --[[
  2. Script Name : SpawnScripts/QeynosHarbor/aBarbarianTrader.lua
  3. Script Purpose : a barbarian trader <Far Seas Trading Company>
  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. local convo = math.random(1, 5)
  22. if convo == 1 then
  23. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1001.mp3", "", "", 0, 0, Spawn)
  24. AddConversationOption(conversation, "But I just thought...", "dlg_36_1")
  25. AddConversationOption(conversation, "I wouldn't trust you to scrub my boots, much less fetch me a drink.")
  26. StartConversation(conversation, NPC, Spawn, "What are you staring at? Do I look like a tavern wench to you? There must be a short plank for you around here somewhere.")
  27. elseif convo == 2 then
  28. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1001.mp3", "", "", 0, 0, Spawn)
  29. AddConversationOption(conversation, "But I just thought...", "dlg_37_1")
  30. AddConversationOption(conversation, "I wouldn't trust you to scrub my boots, much less fetch me a drink.")
  31. StartConversation(conversation, NPC, Spawn, "What are you staring at? Do I look like a tavern wench to you? There must be a short plank for you around here somewhere.")
  32. elseif convo == 3 then
  33. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1001.mp3", "", "", 0, 0, Spawn)
  34. AddConversationOption(conversation, "But I just thought...", "dlg_38_1")
  35. AddConversationOption(conversation, "I wouldn't trust you to scrub my boots, much less fetch me a drink.")
  36. StartConversation(conversation, NPC, Spawn, "What are you staring at? Do I look like a tavern wench to you? There must be a short plank for you around here somewhere.")
  37. elseif convo == 4 then
  38. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1001.mp3", "", "", 0, 0, Spawn)
  39. AddConversationOption(conversation, "But I just thought...", "dlg_39_1")
  40. AddConversationOption(conversation, "I wouldn't trust you to scrub my boots, much less fetch me a drink.")
  41. StartConversation(conversation, NPC, Spawn, "What are you staring at? Do I look like a tavern wench to you? There must be a short plank for you around here somewhere.")
  42. else
  43. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1001.mp3", "", "", 0, 0, Spawn)
  44. AddConversationOption(conversation, "But I just thought...", "dlg_40_1")
  45. AddConversationOption(conversation, "I wouldn't trust you to scrub my boots, much less fetch me a drink.")
  46. StartConversation(conversation, NPC, Spawn, "What are you staring at? Do I look like a tavern wench to you? There must be a short plank for you around here somewhere.")
  47. end
  48. end