aShinReeavenger.lua 899 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/aShinReeavenger.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.05.11 09:05:13
  5. Script Purpose :
  6. :
  7. --]]
  8. local TheSkeletonKey = 411
  9. local blood_stained_finger_bones = 331128
  10. function spawn(NPC)
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. PlayAnimation(NPC, 18)
  15. end
  16. function respawn(NPC)
  17. spawn(NPC)
  18. end
  19. function death(NPC, Spawn)
  20. local chance = MakeRandomInt(1, 100)
  21. if chance >= 50 then
  22. if HasQuest(Spawn, TheSkeletonKey) then
  23. local zone = GetZone(Spawn)
  24. local X = GetX(NPC)
  25. local Y = GetY(NPC)
  26. local Z = GetZ(NPC)
  27. local BloodStainedFingerBones = SpawnMob(zone, blood_stained_finger_bones , true, X, Y, Z, 49.56)
  28. if BloodStainedFingerBones ~= nil then
  29. AddSpawnAccess(BloodStainedFingerBones, Spawn)
  30. end
  31. end
  32. end
  33. end