chair2.lua 481 B

12345678910111213141516171819202122
  1. --[[
  2. Script Name : SpawnScripts/MizansCellar/chair2.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.09.22 05:09:30
  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,2)== true or QuestIsComplete(Spawn,5749)==true then
  13. SpawnSet(NPC,"model_type","4")
  14. end
  15. end
  16. function respawn(NPC)
  17. spawn(NPC)
  18. end