mirror2.lua 481 B

123456789101112131415161718192021
  1. --[[
  2. Script Name : SpawnScripts/MizansCellar/mirror2.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.09.22 05:09:49
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 20, "InRange", "LeaveRange")
  10. end
  11. function InRange(NPC,Spawn)
  12. if QuestStepIsComplete(Spawn,5749,4)== true or QuestIsComplete(Spawn,5749)== true then
  13. SpawnSet(NPC,"model_type","7")
  14. end
  15. end
  16. function respawn(NPC)
  17. spawn(NPC)
  18. end