aBlizzardGrizzly_(572511).lua 852 B

12345678910111213141516171819202122232425262728
  1. --[[
  2. Script Name : Quests/FrostfangSea/aBlizzardGrizzly_(572511).lua
  3. Script Purpose : movement loop for a bear at loc id 572511
  4. Script Author : theFoof
  5. Script Date : 2013.5.22
  6. --]]
  7. function spawn(NPC)
  8. X = GetX(NPC)
  9. Y = GetY(NPC)
  10. Z = GetZ(NPC)
  11. MovementLoopAddLocation(NPC, 87.5, 35.93, -497.63, 2, 0)
  12. MovementLoopAddLocation(NPC, 83.06, 36.29, -503.23, 2, 0)
  13. MovementLoopAddLocation(NPC, 81.31, 40.11, -522.55, 2, 0)
  14. MovementLoopAddLocation(NPC, 79.99, 45.27, -542.14, 2, math.random(3,7))
  15. MovementLoopAddLocation(NPC, 76.11, 40.43, -526.41, 2, 0)
  16. MovementLoopAddLocation(NPC, 83.06, 36.29, -503.23, 2, 0)
  17. MovementLoopAddLocation(NPC, 87.5, 35.93, -497.63, 2, 0)
  18. MovementLoopAddLocation(NPC, X, Y, Z, 2, math.random(3,7))
  19. end
  20. function respawn(NPC)
  21. spawn(NPC)
  22. end
  23. function hailed(NPC, Spawn)
  24. FaceTarget(NPC, Spawn)
  25. end