9
3

Madeline.lua 863 B

123456789101112131415161718192021222324252627282930313233343536
  1. --[[
  2. Script Name : SpawnScripts/Oakmyst_Classic/Madeline.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.10.19 02:10:08
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/AdvancementGaze.lua")
  9. dofile("SpawnScripts/Generic/GenericGuardVoiceOvers.lua")
  10. require "SpawnScripts/Generic/NPCModule"
  11. function spawn(NPC, Spawn)
  12. NPCModule(NPC, Spawn)
  13. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  14. end
  15. function respawn(NPC)
  16. spawn(NPC)
  17. end
  18. function hailed(NPC, Spawn)
  19. FaceTarget(NPC, Spawn)
  20. GenericGuardHail(NPC, Spawn)
  21. end
  22. function InRange(NPC, Spawn)
  23. if GetFactionAmount(Spawn,11)>=5000 then
  24. if GetLevel(Spawn) ==8 or GetLevel(Spawn)==9 then
  25. ClassCheck(NPC,Spawn)
  26. end
  27. end
  28. if GetFactionID(Spawn) ==1 then
  29. Attack(NPC,Spawn)
  30. end
  31. end