[Example] C# Bot base for 4.0.1 menu

User Tag List

Page 3 of 5 FirstFirst 12345 LastLast
Results 31 to 45 of 70
  1. #31
    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)
    Any chance someone could upload this to fileshare site? Mmowned seems pretty unstable at the moment and I get a white screen when trying to access the attachment

    [Example] C# Bot base for 4.0.1
  2. #32
    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 Phalcon View Post
    Great work miceiken!! I'm using your objectmanager for my own bot. At the moment he can follow waypoint,attack mobs and loot them. And without any memory writes! Is it possible that you post the lines of code that you have fixed? So i don't have to re-implement my own function again in you sources :-)
    Unless you have a problem with the character getting wrong results on rotation you don't need to change anything, but I just realized that my maths were wrong when I set UNIT_ROT and OBJECT_ROT (I'm not sure these are the exact names). Should in (my) theory be 0xA instead of 0x10

  3. #33
    jsm374's Avatar Private
    Reputation
    1
    Join Date
    Sep 2010
    Posts
    1
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I can't get to the attachments from the forum either ... I just get a blank page like the previous poster. I bet it has to do with the recent forum troubles.
    Could you please upload it somewhere else also?

  4. #34
    Ishnuk's Avatar Member
    Reputation
    1
    Join Date
    Mar 2008
    Posts
    1
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Same Problem for me, can't get the attachment from first post.
    I downloaded an earlier Version, just for learning! It's very nice and logical made, great job!

    Thanks so long!

  5. #35
    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)
    Hmm, guess that reupload didn't work.
    http://tinyurl.com/39svzdv should work

  6. #36
    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)
    Originally Posted by miceiken View Post
    Hmm, guess that reupload didn't work.
    http://tinyurl.com/39svzdv should work
    Thanks !

  7. #37
    2briards's Avatar Member Authenticator enabled
    Reputation
    11
    Join Date
    Nov 2009
    Posts
    33
    Thanks G/R
    16/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by miceiken View Post
    Hmm, guess that reupload didn't work.
    http://tinyurl.com/39svzdv should work
    Nice sample thanks :-)

  8. #38
    skiss0rz's Avatar Member
    Reputation
    3
    Join Date
    Nov 2010
    Posts
    27
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you so much for this. Memory reading has been killing me the last few days and I'm sure I will be able to figure it out using your sample code, even if I don't know C#.

  9. #39
    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)
    Hey, this is my first post on the forum. First, thank you very much for this awesome code, it's very nice and useful.
    Second, I've starting playing with it a bit and managed to get some very basic things done, but still, very cool for me.
    But I've hit a wall, and I've read many many posts and can't get through that wall and I've decided to post a question, risking a major flame, but anyhow, I'll give it a shot, worst case scenario, I get flamed like a lot of first time poster. At least I donated, so I ain't the worst kind of leecher.
    The question is about facing, and yes I've read other thread, like this one http://www.mmowned.com/forums/world-...ry-writes.html.

    I was wondering a few things. How do I find the facing or bearing of my character ? When I use your bearing property in the location class, it always returns me 1 as value, no matter what location I feed it.
    Second, and the most important, I know it has to do with Apoc's whitemagic but still, I'll ask the question. How do I write the facing to the memory to make my toon turn toward the a waypoint ?
    I've tried this but it did nothing, I think it should turn my character 180 degrees around because Pi is 180 degrees in radian, but still, nothing seems to work.
    Code:
    
    magic.Write((Pointers.PositionPointers.UNIT_ROT), Math.PI);
    
    I think there may be something else I need to write to memory, as I read in the thread, but don't know what exactly.
    I will keep looking, but if anyone has any pointers, it would be very kind. I'd like to be able to have my character face the direction of the next waypoint, and then I'll move on to finding a way to make the toon move. I've looked at a lot of CTM thread but they were mostly pre 4.0.1, does it still work the same way, because it looks different.
    Hope I was kindda clear, bracing for flaming !
    Thx

  10. #40
    fish2k's Avatar Member
    Reputation
    5
    Join Date
    Nov 2008
    Posts
    21
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    @Millow:
    At the time i've opened that thread i thought it would be a good idea to stay out of process, but later i've decided to use injection. You can do alot of things really easily (movment, execute lua, ...).
    Most "out of process"-bots i've seen use simple key-sends and wait until they are more or less at the orientation they want, or they use CTM.

    Anyway: I suggest to inject and simply call SetFacing

  11. #41
    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 Millow View Post
    Hey, this is my first post on the forum. First, thank you very much for this awesome code, it's very nice and useful.
    Second, I've starting playing with it a bit and managed to get some very basic things done, but still, very cool for me.
    But I've hit a wall, and I've read many many posts and can't get through that wall and I've decided to post a question, risking a major flame, but anyhow, I'll give it a shot, worst case scenario, I get flamed like a lot of first time poster. At least I donated, so I ain't the worst kind of leecher.
    The question is about facing, and yes I've read other thread, like this one http://www.mmowned.com/forums/world-...ry-writes.html.

    I was wondering a few things. How do I find the facing or bearing of my character ? When I use your bearing property in the location class, it always returns me 1 as value, no matter what location I feed it.
    Second, and the most important, I know it has to do with Apoc's whitemagic but still, I'll ask the question. How do I write the facing to the memory to make my toon turn toward the a waypoint ?
    I've tried this but it did nothing, I think it should turn my character 180 degrees around because Pi is 180 degrees in radian, but still, nothing seems to work.
    Code:
    
    magic.Write((Pointers.PositionPointers.UNIT_ROT), Math.PI);
    
    I think there may be something else I need to write to memory, as I read in the thread, but don't know what exactly.
    I will keep looking, but if anyone has any pointers, it would be very kind. I'd like to be able to have my character face the direction of the next waypoint, and then I'll move on to finding a way to make the toon move. I've looked at a lot of CTM thread but they were mostly pre 4.0.1, does it still work the same way, because it looks different.
    Hope I was kindda clear, bracing for flaming !
    Thx
    Well, obviously you won't get the characters facing from the Location class. Have you checked WoWLocalPlayer.Facing? Regarding the facing, if you had read as many threads as you claim you'd realize that the UNIT_ROT offset has to be written relative to the objectpointer, but I never tried changing the facing like that, so I wouldn't know.

  12. #42
    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, I tried getting Facing directly from the WowLocalPlayer using
    Code:
    
    flbl.Text = Me.Facing.ToString();
    
    where I try to update the facing with the timer at each tick but still, I always get a facing of 0 or close, like 1.000E-30 or something like that. Anyhow, I guess I'll just read some more and try to figure out how to inject and use the SetFacing like fish2k suggested (thx btw !). And also, I did read a lot of thread, I'm not just "claiming" to have read them. Understanding them is another thing.

  13. #43
    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 Millow View Post
    Yup, I tried getting Facing directly from the WowLocalPlayer using
    Code:
    
    flbl.Text = Me.Facing.ToString();
    
    where I try to update the facing with the timer at each tick but still, I always get a facing of 0 or close, like 1.000E-30 or something like that. Anyhow, I guess I'll just read some more and try to figure out how to inject and use the SetFacing like fish2k suggested (thx btw !). And also, I did read a lot of thread, I'm not just "claiming" to have read them. Understanding them is another thing.
    Which link did you download from? And as I said, I'm not sure if the rotation offset is correct, I'll check

    Edit: Rotation offsets seems to be wrong
    Change 0xA to 0x10
    Last edited by miceiken; 11-06-2010 at 07:59 AM.

  14. #44
    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)
    Thx ! It worked, I finally see the facing of my toon, very nice + Rep !
    Also, if I might add, I couldn't get ur DistanceTo function working so I wrote this one
    Code:
    
    public double DonneDistance(Location loc)
    {
    var MyPosition = ObjectMgr.LocalPlayer.Location;
    double distanceXY = Math.Sqrt((Math.Pow(loc.Y - MyPosition.Y, 2)) + (Math.Pow(loc.X - MyPosition.X, 2)));
    double distance = Math.Sqrt((Math.Pow(distanceXY, 2)) + (Math.Pow(loc.Z - MyPosition.Z, 2)));
    return distance;
     
    }
    
    It works, it's basically a double Pythagore's law (don't know if this is the english name, it's the french name).
    Thank you again for your code and the updated offset, now I gotta play around with Apoc's WhiteMagic to get memory writing working !
    Oh, and I downloaded the code from the tinyurl link above.
    Last edited by Millow; 11-06-2010 at 10:52 AM.

  15. #45
    _Mike's Avatar Contributor
    Reputation
    310
    Join Date
    Apr 2008
    Posts
    531
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Millow View Post
    Code:
    
    public double DonneDistance(Location loc)
    {
    var MyPosition = ObjectMgr.LocalPlayer.Location;
    double distanceXY = Math.Sqrt((Math.Pow(loc.Y - MyPosition.Y, 2)) + (Math.Pow(loc.X - MyPosition.X, 2)));
    double distance = Math.Sqrt((Math.Pow(distanceXY, 2)) + (Math.Pow(loc.Z - MyPosition.Z, 2)));
    return distance;
     
    }
    
    While this works it is quite inefficient You are doing 2 square roots where only 1 is needed. And normal multiplication is slightly faster than using Math.Pow

    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);

Page 3 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 01:43 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