Agro? menu

User Tag List

Thread: Agro?

Results 1 to 8 of 8
  1. #1
    DoctorSpanker's Avatar Private
    Reputation
    1
    Join Date
    Jul 2013
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Agro?

    I'm trying to make a npc spawn from the dark portal and walk down to agro to an npc , however i want mobs to spawn in waves of 10-15 and it wouldn't be logical to define npcs and give them way points to move down the ramp for every wave. is there anyway to make npc's agro to closest player or nearest npc on spawn, if so if it involves a script could you please link an example of the script.

    Agro?
  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)
    I use this code:

    Code:
    function AddsSpawnKeymaster(pUnit, Event)
    	pUnit:RegisterEvent("AddsAttackKeymaster", 800, 1)
    end
    
    -- This function is used by scripts accross the zone
    function AddsAttackKeymaster(pUnit)
    	pUnit:CastSpell(61456) -- spawn visual
    	local plr = pUnit:GetClosestPlayer()
    	if plr then
    		pUnit:AttackReaction(plr, 1, 0)
    	end
    end
    
    RegisterUnitEvent(442200, 18, "AddsSpawnKeymaster")
    When creature spawns, wait near to a second so that the creature has a chance to be fully pushed to the world, then cast a spawn visual, find the closest player and set aggro with them for the creature to enter combat with them.

  3. #3
    Xmaily's Avatar Master Sergeant
    Reputation
    14
    Join Date
    May 2013
    Posts
    115
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    would u have to define anything for this?

  4. #4
    DoctorSpanker's Avatar Private
    Reputation
    1
    Join Date
    Jul 2013
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do i have to define anything? I made the script but nothing happens. I also don't get a error in Arcemu-World.

    function demon_OnSpawn(Unit, Event)
    Unit:RegisterEvent("AddsAttackKeymaster", 100, 1)
    end

    function demon_OnCombat(Unit, Event, Plr)
    Unit:RemoveEvents()
    end

    function demon_OnKilledPlayer(Unit, Event, Plr)
    end

    function demon_OnLeaveCombat(Unit, Event, Plr)
    Unit:RemoveEvents()
    end

    function demon_OnDied(Unit, Event, Plr)
    Unit:RemoveEvents()
    end

    RegisterUnitEvent(90052, 1, demon_OnCombat)
    RegisterUnitEvent(90052, 2, demon_OnLeaveCombat)
    RegisterUnitEvent(90052, 3, demon_OnKilledPlayer)
    RegisterUnitEvent(90052, 4, demon_OnDied)
    RegisterUnitEvent(90052, 18, demon_OnSpawn)

    function AddsAttackKeymaster(pUnit)
    Unit:CastSpell(61456) -- spawn visual
    local plr = Unit:GetClosestPlayer()
    if plr then
    Unit:AttackReaction(plr, 1, 0)
    end
    end

  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)
    100 is probably too quick change to 1000. Also in the function you define punit them use unit.

  6. #6
    DoctorSpanker's Avatar Private
    Reputation
    1
    Join Date
    Jul 2013
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Great is worked! however when they agrro they only go a small distance (not far enough) then reset. I tired changing the bounding radius in the data base but it still resets at the same point.

  7. #7
    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)
    Originally Posted by DoctorSpanker View Post
    Great is worked! however when they agrro they only go a small distance (not far enough) then reset. I tired changing the bounding radius in the data base but it still resets at the same point.
    Aggro radius is hard coded in the emulator.

  8. #8
    DoctorSpanker's Avatar Private
    Reputation
    1
    Join Date
    Jul 2013
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    is aggro radius the same as bounding radius? i thought aggro radius was how close you had to be to the mob for it to spawn and bounding radius was how far it can go without resetting? if so how do i fix this?

Similar Threads

  1. Agro addon?
    By gilthbric in forum WoW UI, Macros and Talent Specs
    Replies: 4
    Last Post: 01-03-2008, 07:44 AM
  2. Agro range
    By crwilborn in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 09-21-2007, 01:11 PM
  3. [tested] walk though a whole instance with out agro
    By i think i just pwned you in forum World of Warcraft Exploits
    Replies: 31
    Last Post: 06-24-2007, 10:37 PM
  4. Killing players in Neutrals without agroing guards.
    By BloodhoofMage in forum World of Warcraft Exploits
    Replies: 15
    Last Post: 02-09-2007, 10:44 PM
  5. How to lose agro on 100 trolls
    By OMGPWN in forum World of Warcraft Exploits
    Replies: 1
    Last Post: 12-17-2006, 01:46 AM
All times are GMT -5. The time now is 04:51 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