smashedbarrel2.lua 621 B

123456789101112131415161718192021222324
  1. --[[
  2. Script Name : SpawnScripts/MizansCellar/smashedbarrel2.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.09.22 06:09:28
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. end
  10. function casted_on(NPC, Spawn, Message)
  11. if Message == "clean" then
  12. if QuestStepIsComplete(Spawn,5749,3)== false then
  13. SetStepComplete(Spawn,5749,3)
  14. SpawnSet(NPC,"model_type","0")
  15. PlaySound(NPC,"sounds/widgets/triggered_environmental/enviro_woodsplntr_large002.wav",GetX(NPC), GetY(NPC), GetZ(NPC))
  16. end
  17. end
  18. end
  19. function respawn(NPC)
  20. spawn(NPC)
  21. end