Jump to content
  • Hypercapacitor Gizmo


    Le Froid
    • Status: Completed
      Main Category: Quests
      Sub-Category: Core Crash
      Version: 0.20 Milestone: 21 Priority: Low
      Implemented Version: 21.14

    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]


    User Feedback

    Recommended Comments



    Guest
    This is now closed for further comments

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use