question about npc spell casting AI_AGENTS menu

User Tag List

Results 1 to 6 of 6
  1. #1
    xdarkghostx's Avatar Member
    Reputation
    13
    Join Date
    Feb 2008
    Posts
    187
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    question about npc spell casting AI_AGENTS

    alrihgt so i had success with making an npc cast frostbolt on players, but i have one prob. I only want him to stand in one place and cast what he does is he will start to chase you hit you a bit then cast it. how can i fix this problem

    if you need me to post the sql stuff for the npc let me know or just tell me what i need to change


    +rep for helpers

    question about npc spell casting AI_AGENTS
  2. #2
    AngelSandy's Avatar Member
    Reputation
    19
    Join Date
    Jan 2009
    Posts
    330
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You will have to make him stand still by making a tiny Lua script to do so.

  3. #3
    stoneharry's Avatar Moderator Harry

    Authenticator enabled
    Reputation
    1613
    Join Date
    Sep 2007
    Posts
    4,554
    Thanks G/R
    151/146
    Trade Feedback
    0 (0%)
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Here's a Lua script to do it. (Delete the ai_agent)

    Code:
    local NPCID = 50 -- the id of the npc you want to cast the spell
    local FrostBolt = 42842 -- the id of the spell 'frostbolt'
    local Timer = 3000 -- The time between each cast (3000 = 3 seconds)
    
    function trash_Combat(pUnit, Event)
        pUnit:Root()
        pUnit:FullCastSpellOnTarget(FrostBolt, pUnit:GetClosestPlayer())
        pUnit:RegisterEvent("Wrath_Spam_Ftw", Timer, 0)
    end
    
    function Wrath_Spam_Ftw(pUnit, Event)
        pUnit:FullCastSpellOnTarget(FrostBolt, pUnit:GetClosestPlayer())
    end
    
    function trash_LeaveCombat(pUnit, Event)
        pUnit:RemoveEvents()
    end
    
    function trash_Died(pUnit, Event)
        pUnit:RemoveEvents()
    end
    
    RegisterUnitEvent(NPCID, 1, "trash_Combat")
    RegisterUnitEvent(NPCID, 2, "trash_LeaveCombat")
    RegisterUnitEvent(NPCID, 4, "trash_Died")

  4. #4
    diantonio's Avatar Member
    Reputation
    3
    Join Date
    Apr 2009
    Posts
    57
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well this is very complicated ... I just added a new root aura to the NPC via quice , here it is :

    42716 0

  5. #5
    starving030's Avatar Member
    Reputation
    1
    Join Date
    May 2008
    Posts
    5
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    set his walk and run speed to zero in the db.

  6. #6
    stoneharry's Avatar Moderator Harry

    Authenticator enabled
    Reputation
    1613
    Join Date
    Sep 2007
    Posts
    4,554
    Thanks G/R
    151/146
    Trade Feedback
    0 (0%)
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Use pUnit:Root() in the script rather than a aura that roots. Setting walk speed to 0 will actually make him very fast, not slower.

Similar Threads

  1. [PQR] Question About Target Instant Casts
    By Moonscarlet in forum WoW Bots Questions & Requests
    Replies: 1
    Last Post: 10-13-2013, 11:43 PM
  2. [ArcEmu] (Question) About boss/Mobs cast times.
    By Ellenor in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 05-16-2010, 10:36 PM
  3. [Question] About packing spell.dbc in MPQ
    By necroslord in forum WoW ME Questions and Requests
    Replies: 1
    Last Post: 09-15-2008, 05:56 AM
  4. NPC Spells =) (Ascent, not sure about antrix)
    By Dpsfraud in forum WoW EMU Guides & Tutorials
    Replies: 4
    Last Post: 11-18-2007, 12:26 PM
  5. Question about Spell edit
    By Sasukedk in forum World of Warcraft General
    Replies: 0
    Last Post: 02-13-2007, 12:26 PM
All times are GMT -5. The time now is 03:11 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search