9
3

bed.lua 788 B

123456789101112131415161718192021222324252627282930313233
  1. --[[
  2. Script Name : SpawnScripts/MizansCellar/bed.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.09.22 05:09:45
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. SetRequiredQuest(NPC,5749,5,1,0,1)
  10. end
  11. function Version(NPC)
  12. end
  13. function casted_on(NPC, Spawn, Message)
  14. if Message == "clean" then
  15. if QuestStepIsComplete(Spawn,5749,5)== false then
  16. SetStepComplete(Spawn,5749,5)
  17. local zone = GetZone(NPC)
  18. local Object2 = GetSpawnByLocationID(zone,133776549)
  19. SpawnSet(Object2,"model_type","3")
  20. SpawnSet(NPC,"model_type","0")
  21. PlaySound(NPC,"sounds/ui/place_item.wav",GetX(NPC), GetY(NPC), GetZ(NPC))
  22. end
  23. end
  24. end
  25. function respawn(NPC)
  26. spawn(NPC)
  27. end