9
3

Aerinleaf.lua 1.3 KB

12345678910111213141516171819202122232425262728
  1. --[[
  2. Script Name : SpawnScripts/qeynos_combined02/Aerinleaf.lua
  3. Script Author : Rylec
  4. Script Date : 2021.08.02 03:08:30
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 7, "hailed")
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. local choice = MakeRandomInt(1,3)
  14. if choice == 1 then
  15. PlayFlavor(NPC, "voiceover/english/broker_mallium/fprt_west/031_con_merchant_mallium_halfelf_1_hail_1ed07c5.mp3", "I can only offer you what my contacts have been able to locate. These are the best goods that the citizens have to offer.", "sigh", 3045938288, 2279107443, Spawn)
  16. elseif choice == 2 then
  17. PlayFlavor(NPC, "voiceover/english/broker_mallium/fprt_west/031_con_merchant_mallium_halfelf_1_hail_8d817f98.mp3", "Here is what the city has to offer, my friend. If you have any questions at all about the stock, please don't hesitate to ask.", "agree", 1804906732, 3683797889, Spawn)
  18. else
  19. PlayFlavor(NPC, "voiceover/english/broker_mallium/fprt_west/031_con_merchant_mallium_halfelf_1_hail_5362df75.mp3", "Don't worry, friend, if it's not on our lists then the goods do not exist.", "no", 2182517673, 1430349366, Spawn)
  20. end
  21. end
  22. function respawn(NPC)
  23. spawn(NPC)
  24. end