9
3

table.lua 836 B

1234567891011121314151617181920212223242526272829303132
  1. --[[
  2. Script Name : SpawnScripts/MizansCellar/table.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.09.22 04:09:18
  5. Script Purpose : Workaround until we figure out furniture placement
  6. :
  7. --]]
  8. function spawn(NPC)
  9. SetRequiredQuest(NPC,5749,1,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,1)== false then
  16. SetStepComplete(Spawn,5749,1)
  17. local zone = GetZone(NPC)
  18. local Table2 = GetSpawnByLocationID(zone,133776538)
  19. SpawnSet(Table2,"model_type","6")
  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