9
3

Faydark.lua 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. --[[
  2. Script Name : SpawnScripts/WillowWood/Faydark.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.09.21 03:09:33
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. end
  10. function hailed(NPC, Spawn)
  11. FaceTarget(NPC, Spawn)
  12. end
  13. function casted_on(NPC, Spawn, SpellName)
  14. if SpellName == 'Nuzzle' then
  15. FaceTarget(NPC,Spawn)
  16. local choice = MakeRandomInt(1,6)
  17. if choice == 1 then
  18. PlaySound(NPC,"sounds/widgets/alarms_clues_traps/alarm_cat_meow1_01.wav",GetX(NPC), GetY(NPC), GetZ(NPC))
  19. elseif choice == 2 then
  20. PlaySound(NPC,"sounds/widgets/alarms_clues_traps/alarm_cat_meow1_02.wav",GetX(NPC), GetY(NPC), GetZ(NPC))
  21. elseif choice == 3 then
  22. PlaySound(NPC,"sounds/widgets/alarms_clues_traps/alarm_cat_meow1_03.wav",GetX(NPC), GetY(NPC), GetZ(NPC))
  23. elseif choice == 4 then
  24. PlaySound(NPC,"sounds/widgets/alarms_clues_traps/alarm_cat_meow1_04.wav",GetX(NPC), GetY(NPC), GetZ(NPC))
  25. elseif choice == 5 then
  26. PlaySound(NPC,"sounds/critters/cat/cat_happy001.wav",GetX(NPC), GetY(NPC), GetZ(NPC))
  27. elseif choice == 6 then
  28. PlaySound(NPC,"sounds/critters/cat/cat_happy001.wav",GetX(NPC), GetY(NPC), GetZ(NPC))
  29. end
  30. end
  31. end
  32. function respawn(NPC)
  33. spawn(NPC)
  34. end