HannaDeeppockets.lua 716 B

1234567891011121314151617181920212223242526
  1. --[[
  2. Script Name : SpawnScripts/QueensColony/HannaDeeppockets.lua
  3. Script Author : Zcoretri
  4. Script Date : 2015.07.30
  5. Script Purpose : Hanna Deeppockets dialog
  6. :
  7. --]]
  8. function hailed(NPC, Spawn)
  9. FaceTarget(NPC, Spawn)
  10. choice = math.random(1,2)
  11. -- need the halfling greeting voiceovers
  12. if choice == 1 then
  13. PlayFlavor(NPC, "", "All your basic necessities you'll find here.", "", 1689589577, 4560189, Spawn)
  14. else
  15. PlayFlavor(NPC, "", "The Deeppockets have a long history of good deals, ask anyone!", "", 0, 0, Spawn)
  16. end
  17. end
  18. function targeted(NPC, Spawn)
  19. if GetDistance(Spawn, NPC) < 10 then
  20. hailed(NPC, Spawn)
  21. end
  22. end