[Example] C# Bot base for 4.0.1 menu

Shout-Out

User Tag List

Page 4 of 5 FirstFirst 12345 LastLast
Results 46 to 60 of 70
  1. #46
    Millow's Avatar Member
    Reputation
    5
    Join Date
    Mar 2007
    Posts
    49
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by _Mike View Post
    Code:
    float delta_x = loc.X - MyPosition.X;
    float delta_y = loc.Y - MyPosition.Y;
    float delta_z = loc.Z - MyPosition.Y;
    return Math.Sqrt(delta_x * delta_x + delta_y * delta_y + delta_z * delta_z);
    Thanx for the code snippet, if it is more efficient, I'll do it this way for sure ! I'm still learning about getting stuff working, efficiency will come later I guess, thx for pointing this one out.

    Now I managed to write to memory to change my character facing, I was pretty excited about that.
    Code:
    
    private void btfacing_Click(object sender, EventArgs e)
    {
    Memory.Write<float>(Me.ObjectPointer + Pointers.PositionPointers.UNIT_ROT, 0); 
    }
    
    But I've hit another wall, I can't seem to figure out how to get my character moving after I set the facing, I've looked at the movement flag. I also read a post about changes in the way you can use movement flag to get your toon moving. Anyhow, I tried it this way
    Code:
    
    private void button3_Click(object sender, EventArgs e)
    {
    Memory.Write<int>((Me.ObjectPointer + 0x8) + ((uint)MovementFlags.Forward * 4), 1);
    }
    I was just trying stuff, I know the code looks a little silly to someone who understands pointers and offsets very well. If you guys have any pointer for getting the toon moving with a memory write or any good thread about the subject, I'm all ears. Right now I'm reading about the endscene hook, injection, engine function, Lua DoString (which is supposed to be awesome) and other stuff.
    Anyhow, I learn something new every day, which I guess is good ! Cheers

    [Example] C# Bot base for 4.0.1
  2. #47
    HeroXx's Avatar Member
    Reputation
    1
    Join Date
    Feb 2008
    Posts
    36
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You need to write at least the; X, Y and action code to the CTM struct to get some movement. At the moment you are just setting the movement flag to move - it doesn't know where to move to.
    Last edited by HeroXx; 11-07-2010 at 02:45 PM.

  3. #48
    miceiken's Avatar Contributor Authenticator enabled
    Reputation
    209
    Join Date
    Dec 2007
    Posts
    401
    Thanks G/R
    7/9
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'd appreciate if you didn't hijack my thread.

  4. #49
    Millow's Avatar Member
    Reputation
    5
    Join Date
    Mar 2007
    Posts
    49
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yup no problem, sorry for that !
    Thx again for the code you've put together, very nice.

  5. #50
    dook123's Avatar Active Member
    Reputation
    21
    Join Date
    Oct 2008
    Posts
    115
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is very nice code. I am bored at work looking through this and have a question. In your WoWPlayer class regarding get Pet.
    Code:
    foreach (var u in ObjectMgr.GetUnits()) { if (u.SummonedBy.Equals(GUID)) return u; }
    I may be wrong but what if you have multiple pets? I know its simple and not that important.

    Again, great contribution!
    -Duke

  6. #51
    miceiken's Avatar Contributor Authenticator enabled
    Reputation
    209
    Join Date
    Dec 2007
    Posts
    401
    Thanks G/R
    7/9
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by dook123 View Post
    This is very nice code. I am bored at work looking through this and have a question. In your WoWPlayer class regarding get Pet.
    Code:
    foreach (var u in ObjectMgr.GetUnits()) { if (u.SummonedBy.Equals(GUID)) return u; }
    I may be wrong but what if you have multiple pets? I know its simple and not that important.

    Again, great contribution!
    -Duke
    Ehm, can you even have multiple active pets?

  7. #52
    dook123's Avatar Active Member
    Reputation
    21
    Join Date
    Oct 2008
    Posts
    115
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Reply

    It is unlikely, but not impossible.

    World of Warcraft - English (NA) Forums -> Having Multiple Pets out at Once???

    Example is in the second post there.

    What I thought was, if you have a vanity pet out first, then summon hunter pet. Could it potentially find the vanity pet first? Then if something is attacking your hunter pet your bot would sit there like a nub and not help fight.

    I am not sure if the vanity pet is the same type of object as the hunter pet so that's why I said "I might be wrong".

  8. #53
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1358
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/6
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What about the "Mirror Image" spell on a mage?

    (I don't actually know how that works, I never bothered to check when I was playing. Curious now though...)

  9. #54
    2$mart4me's Avatar Member
    Reputation
    1
    Join Date
    Mar 2010
    Posts
    21
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I will have to see how it treats Army of the Dead as well.

  10. #55
    Scorpiona's Avatar Active Member
    Reputation
    17
    Join Date
    Mar 2009
    Posts
    42
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Mages can have their Water Elemental out at the same time as Mirror Image copies, as well as DKs with their permanent ghoul and Army of the Dead. AFAIK those spells work by applying an aura to the player which will grant them guardians for the duration of the buff.

  11. #56
    dook123's Avatar Active Member
    Reputation
    21
    Join Date
    Oct 2008
    Posts
    115
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Mages can have their Water Elemental out at the same time as Mirror Image copies, as well as DKs with their permanent ghoul and Army of the Dead. AFAIK those spells work by applying an aura to the player which will grant them guardians for the duration of the buff.
    Why even write this? Are they pet objects? or are you insinuating that these auras have a field showing they are in combat?

    Good Day to you sir!

  12. #57
    Scorpiona's Avatar Active Member
    Reputation
    17
    Join Date
    Mar 2009
    Posts
    42
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by dook123 View Post
    Why even write this? Are they pet objects? or are you insinuating that these auras have a field showing they are in combat?

    Good Day to you sir!
    Well thanks for your contribution to the matter. If it's so important, here's more info.

    Pet related spells (Summon Water Elemental, permanent Raise Dead) use the SpellEffect of SUMMON_PET = 56
    Non-pet related spells (Army of the Dead, non-permanent Raise Dead) use the SpellEffect of SUMMON = 28

    It's only possible to have one 'actual' pet. Spells like Mirror Image and Army of the Dead do not use your pet slot.

  13. #58
    dook123's Avatar Active Member
    Reputation
    21
    Join Date
    Oct 2008
    Posts
    115
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am contributing by asking the original question and spurring an almost irrelevant discussion about a sweet piece of code. I believe you still have not answered anything useful to fixing the problem. Nevertheless, thank you for clarifying your comment.

    The issue remains, is there a flag if say your water elemental is in combat? The code i commented on was used in methods to determine if your bot is in combat and to assist the pet/spell.

  14. #59
    Scorpiona's Avatar Active Member
    Reputation
    17
    Join Date
    Mar 2009
    Posts
    42
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by dook123 View Post
    I am contributing by asking the original question and spurring an almost irrelevant discussion about a sweet piece of code. I believe you still have not answered anything useful to fixing the problem. Nevertheless, thank you for clarifying your comment.

    The issue remains, is there a flag if say your water elemental is in combat? The code i commented on was used in methods to determine if your bot is in combat and to assist the pet/spell.
    Originally Posted by dook123 View Post
    It is unlikely, but not impossible.

    World of Warcraft - English (NA) Forums -> Having Multiple Pets out at Once???

    Example is in the second post there.

    What I thought was, if you have a vanity pet out first, then summon hunter pet. Could it potentially find the vanity pet first? Then if something is attacking your hunter pet your bot would sit there like a nub and not help fight.

    I am not sure if the vanity pet is the same type of object as the hunter pet so that's why I said "I might be wrong".
    • There is no issue, as companions (vanity pets) and hunter pets are not the same thing.
    • Yes, any Unit has a Flags descriptor, which will contain the Combat flag (0x80000) upon entering combat.
    Last edited by Scorpiona; 11-17-2010 at 03:38 PM.

  15. #60
    dook123's Avatar Active Member
    Reputation
    21
    Join Date
    Oct 2008
    Posts
    115
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you for the detailed reply.

Page 4 of 5 FirstFirst 12345 LastLast

Similar Threads

  1. Safely Afk botting AV for dummies!
    By Parog in forum World of Warcraft Guides
    Replies: 30
    Last Post: 04-22-2008, 10:03 PM
  2. Easy AV afk. No bot needed. For parents with small children.
    By lostsoul23m in forum World of Warcraft Guides
    Replies: 17
    Last Post: 02-27-2008, 11:58 AM
  3. Tool to get all Fish/bots working for EU version users! [self-made]
    By -MadMax- in forum World of Warcraft Bots and Programs
    Replies: 6
    Last Post: 09-08-2006, 09:02 AM
  4. Runescape Bot, Looking for!
    By Shadowman2418 in forum Community Chat
    Replies: 2
    Last Post: 07-16-2006, 11:58 PM
All times are GMT -5. The time now is 08:07 AM. 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