acourageousdefender.lua 809 B

1234567891011121314151617181920212223242526272829
  1. --[[
  2. Script Name : SpawnScripts/Ruins/acourageousdefender.lua
  3. Script Purpose : a courageous defender <Freeport Militia>
  4. Script Author : Scatman
  5. Script Date : 2009.08.29
  6. Script Notes :
  7. --]]
  8. dofile("SpawnScripts/Generic/RuinsDefendersVoiceOvers.lua")
  9. function spawn(NPC)
  10. local sli = GetSpawnLocationID(NPC)
  11. if sli == 159510 or sli == 159511 then
  12. -- Two guards praying to the statue of Luclin at the docks.
  13. AddVisualStateLoop(NPC, 1000, math.random(0, 500), 11150, 43918) -- cheer
  14. AddVisualStateLoop(NPC, 1000, math.random(0, 500), 10760, 43528) -- applaud
  15. AddVisualStateLoop(NPC, 1000, math.random(0, 500), 396, 33164) -- not worthy
  16. end
  17. end
  18. function respawn(NPC)
  19. spawn(NPC)
  20. end
  21. function hailed(NPC, Spawn)
  22. FaceTarget(NPC, Spawn)
  23. generic_hail(NPC, Spawn)
  24. end