9
3

Aliindar.lua 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. --[[
  2. Script Name : SpawnScripts/QeynosHarbor/Aliindar.lua
  3. Script Purpose : Aliindar <Broker>
  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. local choice = math.random(1,5)
  21. if choice == 1 then
  22. PlayFlavor(NPC, "voiceover/english/broker_aliindar/qey_harbor/031_con_merchant_aliindar_erudite_2_hail_3ff007fa.mp3", "Welcome, friend! The wares of an entire city are at your fingertips. So please make your selection.", "bye", 3892169564, 2246767706, Spawn)
  23. elseif choice == 2 then
  24. PlayFlavor(NPC, "voiceover/english/broker_aliindar/qey_harbor/031_con_merchant_aliindar_erudite_2_aoi_1fefa590.mp3", "Hello there! Let's not waste any time shall we? What is it I can get for you?", "beckon", 1746996390, 2674526000, Spawn)
  25. elseif choice == 3 then
  26. PlayFlavor(NPC, "voiceover/english/broker_aliindar/qey_harbor/031_con_merchant_aliindar_erudite_2_hail_6a21669e.mp3", "Yes, I know you seek what I have access to. Then again, who doesn't? So what can I help you acquire?", "flustered", 224844673, 1559511128, Spawn)
  27. elseif choice == 4 then
  28. PlayFlavor(NPC, "", "Hello there. Could we please speed along this transaction? I have an appointment with Queen Antonia herself!", "nod", 1689589577, 4560189, Spawn)
  29. elseif choice == 5 then
  30. PlayFlavor(NPC, "voiceover/english/broker_aliindar/qey_harbor/031_con_merchant_aliindar_erudite_2_hail_52cd8074.mp3", "The Ironforge Exchange? The Far Seas Trading Company? Insects of industry, my friend, waiting to be crushed beneath my boot heel!", "royalwave", 946110005, 2012982404, Spawn)
  31. else
  32. end
  33. end