how do i make so a npc attack a other npc? in middle of a battle menu

User Tag List

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

    how do i make so a npc attack a other npc? in middle of a battle

    How do i do so a npc start to attack a other npc? plz say

    Or make so the npc don't attack anything lie Unit:Stopattack () or something..
    Last edited by mariobox; 09-19-2010 at 05:58 AM.

    how do i make so a npc attack a other npc? in middle of a battle
  2. #2
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    X:AttackReaction(Y, 1, 0)

    X being the unit your telling to attack Y.

    X:WipeTargetList()

    Should reset the aggro.

  3. #3
    mariobox's Avatar Member
    Reputation
    1
    Join Date
    Feb 2010
    Posts
    76
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    can you say that clearly?

  4. #4
    Zymus's Avatar Active Member
    Reputation
    15
    Join Date
    Sep 2009
    Posts
    87
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I believe he did.

  5. #5
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    It's as clear as I can make it. Example of use:

    function Z(pUnit)
    if NPC_B ~= nil then
    pUnit:AttackReaction(NPC_B, 1, 0)
    end
    end

    function Reset(pUnit)
    pUnit:WipeTargetList()
    end



  6. #6
    mariobox's Avatar Member
    Reputation
    1
    Join Date
    Feb 2010
    Posts
    76
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    danke !!!!!!!!!!!!!!!!!!!!!!

Similar Threads

  1. Replies: 7
    Last Post: 10-26-2008, 10:35 AM
  2. How do i make my registration page work? And Other stuff about it
    By whatshisface in forum WoW EMU Questions & Requests
    Replies: 14
    Last Post: 09-16-2008, 07:42 PM
  3. How do you make a ranged npc?
    By justsum1 in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 01-28-2008, 08:37 PM
  4. How do you make a custom NPC? - Mangos
    By regnar in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 12-01-2007, 11:17 AM
  5. How do I make npcs?
    By noobert in forum World of Warcraft Emulator Servers
    Replies: 8
    Last Post: 09-04-2007, 02:38 PM
All times are GMT -5. The time now is 04:49 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search