9
3

AgdaDonillson.lua 946 B

1234567891011121314151617181920212223242526272829303132
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/AgdaDonillson.lua
  3. Script Purpose : Agda Donillson <Broker>
  4. Script Author : theFoof
  5. Script Date : 2013.10.30
  6. Script Notes :
  7. --]]
  8. require"SpawnScripts/FrostfangSea/halas_proximity_cheer"
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 15, "ProxCheer")
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. local choice = math.random(1,4)
  18. if choice == 1 then
  19. PlayFlavor(NPC, "", "What would you like to buy?", "", 1689589577, 4560189, Spawn)
  20. elseif choice == 2 then
  21. PlayFlavor(NPC, "", "Let's check what's available, shall we?", "nod", 1689589577, 4560189, Spawn)
  22. elseif choice == 3 then
  23. PlayFlavor(NPC, "", "I'm sure we have something that will please even you!", "hello", 1689589577, 4560189, Spawn)
  24. elseif choice == 4 then
  25. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1001.mp3", "", "", 0, 0, Spawn)
  26. end
  27. end