Hypercapacitor Gizmo
In this quest (id 5151) you're supposed to open a cage and kill the panther inside to get an item. The only problem is that the panther is not attackable even though it's set to the correct faction.
To fix this I wrote up an lua script:
[quote]
--[[
-= Script Information =-
* Zone: Thousand Needles
* QuestId: 5151
* Script Type: Quest
* Npc: Enraged Panther
]]--
local pantherId = 10992
local cageEntry = 176195
local function PantherCage_OnGoStateChanged(event, go, state)
local nearbyCreatures = go:GetCreaturesInRange(3, pantherId)
local panther = nearbyCreatures[1]
local closestPlr = go:GetNearestPlayer(3)
if panther:IsAlive() then
panther:SetFaction(14)
panther:AttackStart(closestPlr)
end
end
RegisterGameObjectEvent(cageEntry, 10, PantherCage_OnGoStateChanged)
[/quote]
Recommended Comments