an_untamed_spirit_circle_counterclockwise_small_02.lua 1019 B

123456789101112131415161718192021222324252627282930313233343536
  1. --[[
  2. Script Name : <script-name>
  3. Script Purpose : <purpose>
  4. Script Author : <author-name>
  5. Script Date : <date>
  6. Script Notes : <special-instructions>
  7. --]]
  8. function spawn(NPC)
  9. x = GetX(NPC)
  10. y = GetY(NPC)
  11. z = GetZ(NPC)
  12. MovementLoopAddLocation(NPC, x - 2 , y, z + 8 , 2, math.random(5, 15))
  13. MovementLoopAddLocation(NPC, x + 7 , y, z + 5 , 2, math.random(5, 15))
  14. MovementLoopAddLocation(NPC, x , y, z - 6 , 2, math.random(5, 15))
  15. MovementLoopAddLocation(NPC, x - 9 , y, z - 1 , 2, math.random(5, 15))
  16. end
  17. function hailed(NPC, Spawn)
  18. FaceTarget(NPC, Spawn)
  19. end
  20. function respawn(NPC)
  21. end
  22. function death(NPC, Spawn)
  23. rand = math.random(0, 100)
  24. if rand <= 20 then
  25. choice = math.random(1, 2)
  26. if choice == 1 then
  27. PlayFlavor(NPC, "voiceover/english/ghost_darkelf_base_1/ft/ghost/ghost_darkelf_base_1_1_death_gf_b5958785.mp3", "Hold them and I'll return with others like us!", "", 3769472925, 2964757475, Spawn)
  28. else
  29. Say(NPC, "The others will be back for you.", Spawn)
  30. end
  31. end
  32. end