aAMBUSHhighwayman.lua 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. --[[
  2. Script Name : SpawnScripts/Antonica/aAMBUSHhighwayman.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.05.01 11:05:35
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/MonsterCallouts/HighwaymanAntonica.lua")
  9. require "SpawnScripts/Generic/NPCModule"
  10. function spawn(NPC, Spawn)
  11. NPCModule(NPC, Spawn)
  12. CastSpell(NPC,41)
  13. --[[ local RaceChoice = MakeRandomInt(1,5)
  14. if RaceChoice ==1 then
  15. SpawnSet(NPC,"race","0")
  16. elseif RaceChoice == 2 or RaceChoice == 3 then
  17. SpawnSet(NPC,"race","6")
  18. elseif RaceChoice == 4 or RaceChoice == 5 then
  19. SpawnSet(NPC,"race","9")
  20. end]]--
  21. SpawnSet(NPC,"model_type",2306)
  22. SpawnSet(NPC,"faction",0)
  23. SpawnSet(NPC,"show_name",0)
  24. SpawnSet(NPC,"show_level",0)
  25. SpawnSet(NPC,"attackable",0)
  26. SpawnSet(NPC,"targetable",0)
  27. SpawnSet(NPC,"show_command_icon",0)
  28. SpawnSet(NPC,"collision_radius",0)
  29. DervishLeather(NPC)
  30. end
  31. function Action(NPC)
  32. local choice = MakeRandomInt(1, 9)
  33. if IsInCombat(NPC)== false then
  34. if choice == 1 then
  35. PlayFlavor(NPC, "", "", "cutthroat", 0, 0)
  36. elseif choice == 2 then
  37. PlayFlavor(NPC, "", "", "stare", 0, 0)
  38. elseif choice == 3 then
  39. PlayFlavor(NPC, "", "", "shakefist", 0, 0)
  40. elseif choice == 4 then
  41. PlayFlavor(NPC, "", "", "brandish", 0, 0)
  42. elseif choice == 5 then
  43. PlayFlavor(NPC, "", "", "taunt", 0, 0)
  44. elseif choice == 6 then
  45. PlayFlavor(NPC, "", "", "tapfoot", 0, 0)
  46. elseif choice == 7 then
  47. PlayFlavor(NPC, "", "", "chuckle", 0, 0)
  48. elseif choice == 8 then
  49. PlayFlavor(NPC, "", "", "sneer", 0, 0)
  50. elseif choice == 9 then
  51. PlayFlavor(NPC, "", "", "sniff", 0, 0)
  52. end
  53. end
  54. AddTimer(NPC,MakeRandomInt(7000,11000),"Action")
  55. end
  56. function respawn(NPC)
  57. spawn(NPC)
  58. end