9
3

anoakmystgreatbear.lua 649 B

1234567891011121314151617181920212223242526272829
  1. --[[
  2. Script Name : SpawnScripts/WillowWood/anoakmystgreatbear.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.02.21 05:02:14
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. end
  10. function casted_on(NPC, Spawn, SpellName)
  11. if SpellName == 'touch' then
  12. choice = math.random(1,3)
  13. if choice == 1 then
  14. PlaySound(NPC, 17872, Spawn)
  15. PlayFlavor(NPC, "", "", "attack", 0, 0, Spawn)
  16. elseif choice == 2 then
  17. Emote(NPC, "eyes at you warily.", Spawn)
  18. else
  19. Emote(NPC, "sniffs around you.", Spawn)
  20. end
  21. end
  22. end
  23. function respawn(NPC)
  24. spawn(NPC)
  25. end