9
3

zombiescript.lua 852 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. --[[
  2. Script Name : SpawnScripts/Graveyard/zombiescript.lua
  3. Script Purpose : Script for zombies in zone "The Graveyard" for quest with bone fragments "Bone Dust(583)"
  4. Script Author : premierio015
  5. Script Date : 2020.11.11
  6. Script Notes :
  7. --]]
  8. local BoneDust = 583
  9. function spawn(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function death(NPC, Spawn)
  18. if HasQuest(Spawn, BoneDust) then
  19. local choice = math.random(1, 4)
  20. if choice == 1 then
  21. AddStepProgress(Spawn, 583, 1, 2)
  22. elseif choice == 2 then
  23. AddStepProgress(Spawn, 583, 1, 4)
  24. elseif choice == 3 then
  25. AddStepProgress(Spawn, 583, 1, 6)
  26. elseif choice == 4 then
  27. AddStepProgress(Spawn, 583, 1, 7)
  28. end
  29. end
  30. end