mirror of
https://github.com/emagi/eq2emu-content
synced 2026-08-12 20:23:03 -04:00
40 lines
1,022 B
Lua
Executable file
40 lines
1,022 B
Lua
Executable file
--[[
|
|
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
|