9
3

MoragMcMarrin.lua 902 B

123456789101112131415161718192021222324252627282930313233
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/MoragMcMarrin.lua
  3. Script Purpose : Morag McMarrin <Fuel Merchant>
  4. Script Author : theFoof
  5. Script Date : 2013.09.26
  6. Script Notes :
  7. --]]
  8. require"SpawnScripts/FrostfangSea/halas_proximity_cheer"
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 10, "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,3)
  18. if choice == 1 then
  19. PlayFlavor(NPC, "", "", "nod", 1689589577, 4560189, Spawn)
  20. elseif choice == 2 then
  21. PlayFlavor(NPC, "", "I'll be happy to supply all your fuel needs.", "happy", 1689589577, 4560189, Spawn)
  22. elseif choice == 3 then
  23. PlayFlavor(NPC, "", "Please let me know if there's anything I can supply for you.", "nod", 1689589577, 4560189, Spawn)
  24. else
  25. PlayFlavor(NPC, "", "", "hello", 0, 0, Spawn)
  26. end
  27. end