HallieSummerglint.lua 613 B

1234567891011121314151617181920212223242526272829
  1. --[[
  2. Script Name : SpawnScripts/WillowWood/HallieSummerglint.lua
  3. Script Purpose : Hallie Summerglint <Shieldsmith>
  4. Script Author : Scatman
  5. Script Date : 2009.09.15
  6. Script Notes :
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericMerchantVoiceOvers.lua")
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 6, "InRange")
  11. end
  12. function InRange(NPC,Spawn)
  13. if math.random(0, 100) <= 30 then
  14. FaceTarget(NPC, Spawn)
  15. GenericMerchantHail(NPC, Spawn)
  16. end
  17. end
  18. function respawn(NPC)
  19. spawn(NPC)
  20. end
  21. function hailed(NPC, Spawn)
  22. FaceTarget(NPC, Spawn)
  23. GenericMerchantHail(NPC, Spawn)
  24. end