table2.lua 530 B

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