Jump to content
  • Hypercapacitor Gizmo


    Le Froid
    • Status: Completed
      Main Category: Quests
      Sub-Category: Core Crash
      Version: 0.20 Milestone: 21 (Current) Priority: Low
      Related to:
      Implemented Version: 21.14 (Master Branch)

    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 <10992>
    ]]--

    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]



    User Feedback

    Recommended Comments

    Changed Status to Completed

    Changed Implemented Version to 21.14 (Master Branch)

    Changed Milestone to 21 (Current)

    Changed Sub-Category to Core Crash

    Share this comment


    Link to comment
    Share on other sites


    Guest
    This is now closed for further comments

Contact Us

To contact us click here
You can also email us at [email protected]

Privacy Policy | Terms & Conditions

Repositories

The Link to the master list
of MaNGOS repositories:
Copyright © getMaNGOS. All rights Reserved.

This website is in no way associated with or endorsed by Blizzard Entertainment®
×
×
  • Create New...