an_untamed_spirit_circle_clockwise_small_02.lua 994 B

1234567891011121314151617181920212223242526272829303132333435
  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. end
  19. function respawn(NPC)
  20. end
  21. function death(NPC, Spawn)
  22. rand = math.random(0, 100)
  23. if rand <= 20 then
  24. choice = math.random(1, 2)
  25. if choice == 1 then
  26. 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)
  27. else
  28. Say(NPC, "The others will be back for you.", Spawn)
  29. end
  30. end
  31. end