MrClark.lua 737 B

1234567891011121314151617181920212223242526272829303132
  1. --[[
  2. Script Name : SpawnScripts/Graystone/MrClark.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.03.07 12:03:36
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. end
  10. function hailed(NPC, Spawn)
  11. FaceTarget(NPC, Spawn)
  12. choice = math.random(1,3)
  13. if choice == 1 then
  14. PlayFlavor(NPC, "", "", "attack", 0, 0, Spawn)
  15. elseif choice == 2 then
  16. PlayFlavor(NPC, "", "", "cast_drake_fire_breath", 0, 0, Spawn)
  17. AddTimer(NPC,250,"Stop",Spawn)
  18. else
  19. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  20. end
  21. end
  22. function Stop(NPC,Spawn)
  23. PlayFlavor(NPC, "", "", "kill_cast_drake_fire_breath", 0, 0, Spawn)
  24. end
  25. function respawn(NPC)
  26. spawn(NPC)
  27. end