GalanCrestrider.lua 783 B

123456789101112131415161718192021222324252627282930
  1. --[[
  2. Script Name : SpawnScripts/QueensColony/GalanCrestrider.lua
  3. Script Author : Zcoretri
  4. Script Date : 2015.07.30
  5. Script Purpose : Galan Crestrider dialog
  6. :
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 10, "InRange")
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function hailed(NPC, Spawn)
  15. FaceTarget(NPC, Spawn)
  16. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1022.mp3", "", "", 0, 0, Spawn)
  17. end
  18. function InRange(NPC, Player)
  19. choice = math.random(1,2)
  20. if choice == 1 then
  21. PlayFlavor(NPC, "", "Welcome to Crestrider's Trading Post.", "", 1689589577, 4560189, Spawn)
  22. else
  23. PlayFlavor(NPC, "", "If you can trade it, we can buy it.", "", 1689589577, 4560189, Spawn)
  24. end
  25. end