EQ2EMu/server/SpawnScripts/GrimgashsLair/GrimgashtheBlack.lua
2024-04-07 18:28:29 +00:00

44 lines
No EOL
1.6 KiB
Lua
Executable file

--[[
Script Name : SpawnScripts/GrimgashsLair/GrimgashtheBlack.lua
Script Author : Dorbin
Script Date : 2022.09.23 01:09:26
Script Purpose :
:
--]]
function spawn(NPC)
local dmgMod = GetStr(NPC)/10
SetInfoStructUInt(NPC, "override_primary_weapon", 1)
SetInfoStructUInt(NPC, "primary_weapon_damage_low", 5 + dmgMod)
SetInfoStructUInt(NPC, "primary_weapon_damage_high", 11 + dmgMod)
SetInfoStructUInt(NPC, "hp_regen_override", 1)
SetInfoStructSInt(NPC, "hp_regen", 0)
SetInfoStructUInt(NPC, "pw_regen_override", 1)
SetInfoStructSInt(NPC, "pw_regen", 0)
end
function respawn(NPC)
spawn(NPC)
end
function aggro(NPC,Spawn)
local choice = MakeRandomInt(1,2)
if choice == 1 then
PlayFlavor(NPC,"voiceover/english/grimgash_the_black/tutorial_island02_epic01/06_orc_grimgash_the_black_garbled_gm_0.mp3","First it was drakotas and now you! I'll teach you not to mess with a Son of Zek!","",3587881717,1370147630,nil,17)
elseif choice == 2 then
PlayFlavor(NPC,"voiceover/english/grimgash_the_black/tutorial_island02_epic01/06_orc_grimgash_the_black_garbled_gm_0.mp3","You are not part of the plan! I'll squash you like the bug you are.","",3587881717,1370147630,nil,17)
end
local zone = GetZone(NPC)
local Gob1 = GetSpawnByLocationID(zone, 133776472)
local Gob2 = GetSpawnByLocationID(zone, 133776473)
local Gob3 = GetSpawnByLocationID(zone, 133776474)
if IsAlive(Gob1) == true or IsAlive(Gob2) == true or IsAlive(Gob3) == true then
Attack(Gob1,Spawn)
Attack(Gob2,Spawn)
Attack(Gob3,Spawn)
end
end