9
3

AnimalTrainers.lua 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. --[[
  2. Script Name : SpawnScripts/Generic/AnimalTrainers.lua
  3. Script Purpose : Generic script to make animal trainers emote to their animals
  4. Script Author : John Adams
  5. Script Date : 2009.06.14
  6. Script Notes :
  7. --]]
  8. function spawn(NPC)
  9. AddTimer(NPC, 5000, "emote1")
  10. end
  11. function emote1(NPC)
  12. SpawnSet(NPC, "visual_state", "12187")
  13. AddTimer(NPC, 5000, "Stop")
  14. AddTimer(NPC, 30000, "emote2")
  15. end
  16. function emote2(NPC)
  17. SpawnSet(NPC, "visual_state", "11298")
  18. AddTimer(NPC, 10000, "Stop")
  19. AddTimer(NPC, 30000, "emote3")
  20. end
  21. function emote3(NPC)
  22. SpawnSet(NPC, "visual_state", "11150")
  23. AddTimer(NPC, 5000, "Stop")
  24. AddTimer(NPC, 30000, "emote4")
  25. end
  26. function emote4(NPC)
  27. SpawnSet(NPC, "visual_state", "13063")
  28. AddTimer(NPC, 5000, "Stop")
  29. AddTimer(NPC, 30000, "emote5")
  30. end
  31. function emote5(NPC)
  32. SpawnSet(NPC, "visual_state", "2810")
  33. AddTimer(NPC, 5000, "Stop")
  34. AddTimer(NPC, 30000, "emote1")
  35. end
  36. function Stop(NPC)
  37. SpawnSet(NPC, "visual_state", "0")
  38. end
  39. function hailed(NPC, Spawn)
  40. FaceTarget(NPC, Spawn)
  41. end
  42. function respawn(NPC)
  43. spawn(NPC)
  44. end