Problem with some mobs menu

User Tag List

Results 1 to 6 of 6
  1. #1
    mmosoft's Avatar Active Member CoreCoins Purchaser
    Reputation
    25
    Join Date
    May 2009
    Posts
    60
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Problem with some mobs

    Hi all.

    Is there informations for Blacklisting mobs that are hidden in tree or hill ?
    Maybe in memory or other ?

    I found lot of mobs that are hidden and my char try to attack them without success.
    I code a special function but it's hard to black list a mob or not ^^. And it don't work fine for the moment.

    Sometimes, mob can attack you but you can't touche them.
    And sometimes you can touch them but he don't lost life.
    Last edited by mmosoft; 07-02-2009 at 08:06 AM.
    OLDER ACCS

    Problem with some mobs
  2. #2
    naa's Avatar Contributor
    Reputation
    100
    Join Date
    Oct 2006
    Posts
    63
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I do not think you can find it in memory with a simple read (maby some more advanced code could calculate it).
    I check if the mob lost health the past 10 seconds etc, if not i blacklist it.
    Some of the code that i use to blacklist the a mob with either by name or GUID:
    You have to figure out the GSpellTimer yourself.
    Code:
            /// <summary>
            /// Dictionary
            /// </summary>
            public static Dictionary<string, GSpellTimer> Blacklisted = new Dictionary<string, GSpellTimer>();
    
            /// <summary>
            /// Blacklists the specified name.
            /// </summary>
            /// <param name="name">The name.</param>
            /// <param name="howlong_seconds">The howlong_seconds.</param>
            public static void Blacklist(string name, int howlong_seconds)
            {
                    GSpellTimer t = null;
                    if (Blacklisted.TryGetValue(name, out t))
                    {
                        Blacklisted.Remove(name);
                    }
                    t = new GSpellTimer((howlong_seconds*10)*1000);
                    Blacklisted.Add(name, t);
                    Log("Blacklisted " + name + " for " + (howlong_seconds) + "s");
            }
    
            /// <summary>
            /// Blacklists the specified GUID.
            /// </summary>
            /// <param name="GUID">The GUID.</param>
            /// <param name="howlong_seconds">The howlong_seconds.</param>
            public static void Blacklist(ulong GUID, int howlong_seconds)
            {
                Blacklist("GUID" + GUID, howlong_seconds);
            }
    
            /// <summary>
            /// Determines whether the specified name is blacklisted.
            /// </summary>
            /// <param name="name">The name.</param>
            /// <returns>
            ///     <c>true</c> if the specified name is blacklisted; otherwise, <c>false</c>.
            /// </returns>
            public static bool IsBlacklisted(string name)
            {
                    GSpellTimer t = null;
                    if (!Blacklisted.TryGetValue(name, out t))
                        return false;
    
                    return !t.isReady;
            }
    
            /// <summary>
            /// Determines whether the specified GUID is blacklisted.
            /// </summary>
            /// <param name="GUID">The GUID.</param>
            /// <returns>
            ///     <c>true</c> if the specified GUID is blacklisted; otherwise, <c>false</c>.
            /// </returns>
            public static bool IsBlacklisted(ulong GUID)
            {
                return IsBlacklisted("GUID" + GUID);
            }
    Last edited by naa; 07-02-2009 at 09:38 AM.

  3. #3
    ramey's Avatar Member
    Reputation
    45
    Join Date
    Jan 2008
    Posts
    320
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Maybe use TraceLine if they're inside a tree. Not sure if it will return false though.

  4. #4
    flo8464's Avatar Active Member
    Reputation
    30
    Join Date
    Apr 2009
    Posts
    434
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You could read the terrain details from the *.dbc files but I think its a bit too much work

  5. #5
    ggg898's Avatar Member
    Reputation
    10
    Join Date
    Jan 2009
    Posts
    39
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I blacklist mob when I get spellcast failed event too many times for a certain mob, where "too many" is set to something like 5 or 10... Easy and works well, at least for casters

  6. #6
    mmosoft's Avatar Active Member CoreCoins Purchaser
    Reputation
    25
    Join Date
    May 2009
    Posts
    60
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok thx.

    So I've make 2 functions.

    One which detect the number of tab I pressed to select the mob. Because when the mob is in the tree and you can't select him, I pressed tab lot of times.

    And one when you cast action on the mob and he don't lost life after 10 actions.

    Thx for the tips .
    OLDER ACCS

Similar Threads

  1. [Wow 5.4.0 XXXXX] Problem with some XOR calculations
    By Malak044 in forum WoW Memory Editing
    Replies: 2
    Last Post: 10-07-2013, 05:54 PM
  2. Problems with mobs life regening back to full hp
    By oldan in forum WoW EMU Questions & Requests
    Replies: 9
    Last Post: 10-28-2008, 11:22 PM
  3. Some problems with Faction
    By dragond in forum WoW EMU Questions & Requests
    Replies: 4
    Last Post: 08-14-2008, 02:12 PM
  4. Got some problems with my server..Nothing huge..
    By b!atch in forum World of Warcraft Emulator Servers
    Replies: 8
    Last Post: 02-09-2008, 05:04 AM
  5. Some problems with Items...
    By Pimpin_N0ob in forum World of Warcraft Emulator Servers
    Replies: 9
    Last Post: 09-02-2007, 03:07 AM
All times are GMT -5. The time now is 05:14 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