WoW Travel bot(for now...) menu

User Tag List

Results 1 to 4 of 4
  1. #1
    lanman92's Avatar Active Member
    Reputation
    50
    Join Date
    Mar 2007
    Posts
    1,033
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    WoW Travel bot(for now...)

    I'm working on my travel bot, and was wondering how you can make this code work once again, after I stop recording waypoints.

    Code:
     
    private void Run()
    {
    while (running)
    {
    if (om.DistanceTo(m_parent.wm.lastWaypoint()) >= 10f || m_parent.wm.waypoints.Count == 0)
    {
    m_parent.wm.waypoints.Add(new Location(om.X, om.Y, om.Z));
    }
    Thread.Sleep(0x10);
    }
    }
    I have it running in a thread on it's own while I'm alt-tabbed into wow. I'm not sure how to do this, it throws the exception object reference not set to instance or w/e.

    These ads disappear when you log in.

  2. #2
    Apoc's Avatar Angry Penguin
    Reputation
    1387
    Join Date
    Jan 2008
    Posts
    2,750
    Thanks G/R
    0/12
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by lanman92 View Post
    I'm working on my travel bot, and was wondering how you can make this code work once again, after I stop recording waypoints.

    Code:
     
    private void Run()
    {
    while (running)
    {
    if (om.DistanceTo(m_parent.wm.lastWaypoint()) >= 10f || m_parent.wm.waypoints.Count == 0)
    {
    m_parent.wm.waypoints.Add(new Location(om.X, om.Y, om.Z));
    }
    Thread.Sleep(0x10);
    }
    }
    I have it running in a thread on it's own while I'm alt-tabbed into wow. I'm not sure how to do this, it throws the exception object reference not set to instance or w/e.
    You should stop using other people's work. (The Thread.Sleep(0x10) gave it away, that only comes from disassemblers.)

  3. #3
    lanman92's Avatar Active Member
    Reputation
    50
    Join Date
    Mar 2007
    Posts
    1,033
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Idk what you are talking about. I started this project on my own. I guess I'll finish it on my own...(The reason I used hex for my sleep duration is just habit. Didn't mean to.)

    Think what you want, but I do need some help. I'm working on my pathforwards and pathbackwards functions. My backwards function works fine, but my forward function seems to be adding points to my list(wm.waypoints). I thought it might be that my thread from the path creator wasn't dying, but it doesn't seem to be that. I ran the debugger with it, breakpointing, and I couldn't find where the points were getting added.

    I'm almost sure there's a better way to end an otherwise infinite thread, but I'm just zeroing a bool condition and aborting.

    Here's my running function(in a thread):

    Code:
    private void runForwards()
    {
    int index = 0;
    while (index < (wm.waypoints.Count - 1))
    {
    movement.GoTo(wm.waypoints[index]);
    while (movement.moving == 0x4)
    Thread.Sleep(25);
    index++;
    }
    }
    Last edited by lanman92; 05-14-2009 at 12:54 PM.

  4. #4
    lanman92's Avatar Active Member
    Reputation
    50
    Join Date
    Mar 2007
    Posts
    1,033
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I fixed my previous issue, but now I need help with something painful. I'm making it display a map of the waypoints, but it's scaling it down way too far. Here's the code:

    Code:
     
    Graphics g = Graphics.FromImage(bm);
    float XLow, YLow, XHigh, YHigh;
    XLow = 0;
    YLow = 0;
    XHigh = 0;
    YHigh = 0;
    int index = 0;
    XLow = m_parent.wm.waypoints[0].X;
    YLow = m_parent.wm.waypoints[0].Y;
    foreach (Location loc in m_parent.wm.waypoints)
    {
    if (XLow > loc.X)
    XLow = loc.X;
    if (YLow > loc.Y)
    YLow = loc.Y;
    if (YHigh < loc.Y)
    YHigh = loc.Y;
    if (XHigh < loc.X)
    XHigh = loc.X;
    }
    List<Point> offsets = new List<Point>();
    foreach (Location loc in m_parent.wm.waypoints)
    {
    offsets.Add(new Point(Convert.ToInt32(loc.X - XLow), Convert.ToInt32(loc.Y - YLow)));
    }
    float scaleX = XHigh - XLow;
    if (scaleX < 0)
    scaleX = scaleX * (-1);
    float scaleY = YHigh - YLow;
    if (scaleY < 0)
    scaleY = scaleY * (-1);
    scaleX = (pictureBox1.Width / 2) / scaleX;
    scaleY = (pictureBox1.Height / 2) / scaleY;
    foreach (Point p in offsets)
    {
    float newX = p.X * scaleX;
    float newY = p.Y * scaleY;
    newX = (pictureBox1.Width / 2) + newX;
    newY = (pictureBox1.Height / 2) + newY;
    wps.Add(new Point(Convert.ToInt32(newX), Convert.ToInt32(newY)));
    }
    foreach (Point pt in wps)
    {
    bm.SetPixel(pt.X, pt.Y, Color.Red);
    g.DrawEllipse(new Pen(Brushes.Blue, 1), new Rectangle(pt.X - 5, pt.Y - 5, 10, 10));
     
    }
    while ((index + 1) <= (m_parent.wm.waypoints.Count - 1))
    {
    g.DrawLine(new Pen(Brushes.Green, 1f), wps[index], wps[index + 1]);
    index++;
    }
    I was hoping on some advice to improve this. I want it so that it will display any size of map, that's why I have the center of my picturebox being in the origin, but I think that may be my issue. I guess it's a possibility that I have to rewrite my code, but I'd rather not. Any suggestions?(BTW Apoc, I hope you don't think this is someone else's code as well, because I just wrote it tonight... Not to mention you're probably the only one here to help)

Similar Threads

  1. [Question] Best Pokemon Go Bot for now and best farming place ?
    By PeyoteFTW in forum Pokemon GO Chat
    Replies: 3
    Last Post: 08-26-2016, 01:05 PM
  2. [Trading] WOW Honorbuddy bot for Hearthstone buddy bot
    By Gwowld in forum General MMO Buy Sell Trade
    Replies: 0
    Last Post: 04-18-2015, 08:22 AM
  3. [Trading] Trading WoW account+bot for War Z account
    By TheNationGaming in forum World of Warcraft Buy Sell Trade
    Replies: 2
    Last Post: 02-22-2013, 01:28 AM
  4. WoW leveling bot for 3.3.5 private server.
    By adrianutrilla in forum WoW Bots Questions & Requests
    Replies: 0
    Last Post: 07-02-2012, 03:59 PM
  5. Looking for wow level bot for 3.1.1
    By momak in forum World of Warcraft General
    Replies: 4
    Last Post: 05-09-2009, 04:23 PM
All times are GMT -5. The time now is 07:50 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2023 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2023 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search