12345678910111213141516171819202122232425262728293031323334353637383940 |
- --[[
- Script Name : SpawnScripts/Commonlands/aShinReeavenger.lua
- Script Author : Premierio015
- Script Date : 2021.05.11 09:05:13
- Script Purpose :
- :
- --]]
- require "SpawnScripts/Generic/NPCModule"
- local TheSkeletonKey = 411
- local blood_stained_finger_bones = 331128
- function spawn(NPC, Spawn)
- NPCModule(NPC, Spawn)
- RandomMovement(NPC, Spawn, 12, -12, 2, 8, 15)
- end
- function hailed(NPC, Spawn)
- FaceTarget(NPC, Spawn)
- PlayAnimation(NPC, 18)
- end
- function respawn(NPC)
- spawn(NPC)
- end
- function death(NPC, Spawn)
- local chance = MakeRandomInt(1, 100)
- if chance >= 50 then
- if HasQuest(Spawn, TheSkeletonKey) then
- local zone = GetZone(Spawn)
- local X = GetX(NPC)
- local Y = GetY(NPC)
- local Z = GetZ(NPC)
- local BloodStainedFingerBones = SpawnMob(zone, blood_stained_finger_bones , true, X, Y, Z, 49.56)
- if BloodStainedFingerBones ~= nil then
- AddSpawnAccess(BloodStainedFingerBones, Spawn)
- end
- end
- end
- end
|