Simple Lua addon bot navigation menu

User Tag List

Results 1 to 4 of 4
  1. #1
    Elitetech's Avatar Contributor
    Reputation
    98
    Join Date
    Oct 2008
    Posts
    279
    Thanks G/R
    3/7
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Simple Lua addon bot navigation

    Hello, I'm trying to develop a simple bot-addon using protected lua functions in patch 7.1.5.

    So far I've got rotations and all that jazz down and can record a set of waypoints to a table. Now, navigating to waypoints from the table is an entirely different matter, and I'm not sure how to pull this off.

    I've been trying getting my distance to the x and y coordinates and using TurnLeftStart etc to change direction until my distance to the waypoint starts decreasing, but so far I get no decent results.

    So I guess my question is this; using protected lua functions, how would you navigate to a series of waypoints in a simple manner?

    Any help is greatly appreciated, thanks
    Knowledge is often mistaken for intelligence. This is like mistaking a cup of milk for a cow.

    Simple Lua addon bot navigation
  2. #2
    ev0's Avatar ★ Elder ★ murlocs.com

    CoreCoins Purchaser Authenticator enabled
    Reputation
    1850
    Join Date
    Jul 2012
    Posts
    2,737
    Thanks G/R
    313/377
    Trade Feedback
    16 (100%)
    Mentioned
    7 Post(s)
    Tagged
    7 Thread(s)
    Would you consider using external help?

    EWT - Easy WoW Toolbox - Fishing, Farming, Hacks, Morpher, LUA Unlocker and more!

    ^ Gives you MoveTo(X,Y,Z) functionality
    Need a guild in the US? Visit murlocs.com

  3. #3
    Jadd's Avatar 🐸 Premium Seller
    Reputation
    1511
    Join Date
    May 2008
    Posts
    2,432
    Thanks G/R
    81/333
    Trade Feedback
    1 (100%)
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    You can calculate the yaw rotation required based off the source position (player) and destination position (waypoint) using atan2 or equivalent:
    atan2(destination.Y - source.Y, destination.X - source.X)

    When you have the angle you could use GetPlayerFacing() to find how much you need to turn. You turn (key-turning or TurnLeftStart etc.) the value of pi every second. You can easily find the exact amount of time to turn for.

    Once you got that down you should consider adding Bezier curves so you don't have to stop, turn, then start moving after each waypoint.

  4. Thanks Elitetech (1 members gave Thanks to Jadd for this useful post)
  5. #4
    Elitetech's Avatar Contributor
    Reputation
    98
    Join Date
    Oct 2008
    Posts
    279
    Thanks G/R
    3/7
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Jadd View Post
    You can calculate the yaw rotation required based off the source position (player) and destination position (waypoint) using atan2 or equivalent:
    atan2(destination.Y - source.Y, destination.X - source.X)

    When you have the angle you could use GetPlayerFacing() to find how much you need to turn. You turn (key-turning or TurnLeftStart etc.) the value of pi every second. You can easily find the exact amount of time to turn for.

    Once you got that down you should consider adding Bezier curves so you don't have to stop, turn, then start moving after each waypoint.
    Thanks alot for the help! I was able to come up with exactly what I wanted, you're the man!

  6. Thanks Jadd (1 members gave Thanks to Elitetech for this useful post)

Similar Threads

  1. Simple Anti Afk addon/ bot / macro
    By ccndr in forum WoW Bots Questions & Requests
    Replies: 1
    Last Post: 04-16-2012, 11:23 AM
  2. [Mac] Simple AFK BG Bot.
    By tripleblade3 in forum World of Warcraft Bots and Programs
    Replies: 13
    Last Post: 05-25-2008, 11:00 AM
  3. [Request] I need this simple lua
    By Ellenor in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 02-29-2008, 03:18 PM
  4. Simple Lua Script , not working need help!
    By Arugos in forum World of Warcraft Emulator Servers
    Replies: 16
    Last Post: 12-30-2007, 02:06 PM
  5. Xafk, simple AFK/BG bot!
    By XinuX in forum World of Warcraft Bots and Programs
    Replies: 13
    Last Post: 08-08-2007, 07:17 PM
All times are GMT -5. The time now is 08:37 AM. 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