9
3

PeonaToughins.lua 1019 B

123456789101112131415161718192021222324252627282930313233343536
  1. --[[
  2. Script Name : SpawnScripts/Baubbleshire/PeonaToughins.lua
  3. Script Purpose : Peona Toughins <Tailor>
  4. Script Author : Scatman
  5. Script Date : 2009.09.27
  6. Script Notes :
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericArmorsmithVoiceOvers.lua")
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function InRange(NPC, Spawn)
  16. if math.random(0, 100) <= 25 then
  17. FaceTarget(NPC, Spawn)
  18. GenericArmorsmithHail(NPC, Spawn)
  19. end
  20. end
  21. function LeaveRange(NPC, Spawn)
  22. end
  23. function hailed(NPC, Spawn)
  24. FaceTarget(NPC, Spawn)
  25. conversation = CreateConversation()
  26. PlayFlavor(NPC, "voiceover/english/armorer_peona_toughins/qey_village06/quests/armorer_peona_toughins/armorer_peona_toughins001.mp3", "", "", 3593368605, 1432200573, Spawn)
  27. AddConversationOption(conversation, "Maybe some other time.")
  28. StartConversation(conversation, NPC, Spawn, "Dare I say, it's a fine day for shopping. How can I help you?")
  29. end