bed2.lua 441 B

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