Madeline.lua 787 B

12345678910111213141516171819202122232425262728293031323334
  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. function spawn(NPC)
  11. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function hailed(NPC, Spawn)
  17. FaceTarget(NPC, Spawn)
  18. GenericGuardHail(NPC, Spawn)
  19. end
  20. function InRange(NPC, Spawn)
  21. if GetFactionAmount(Spawn,11)>=5000 then
  22. if GetLevel(Spawn) ==8 or GetLevel(Spawn)==9 then
  23. ClassCheck(NPC,Spawn)
  24. end
  25. end
  26. if GetFactionID(Spawn) ==1 then
  27. Attack(NPC,Spawn)
  28. end
  29. end