Tab-Target
Short Update:
Bot was completely rewritten with a better logic and better movement.
Still got a tons of bugs...for example not looting everytime.
Images (Sorry couldnt it upload here, because my resolution seems to big for an upload here) :
01 — imgbb.com
02 — imgbb.com
Really great job!
I dont understand this pixelbot, why is it like rendering pixels?
in those pixels are numbers stored, which can be read into an external programm for making movement etc. possible without memory reading/writing.
Any chance you are willing to share the addons and/or LUA that you are using for all of your pixels? I'm making a pix bot in python for OS X and Lutris (linux), but the LUA and WA stuff has been a real pain in the ass. I'm willing to contribute to your non-wow codebase if you are interested.
What current problems do you have right now?
I've had some problems, which I didn't foresee with frames in WoW, is that one frame isn't one pixel. If you tell us what's your problem is, people will help for sure.
There is another thread which we talk about LUA with WoW, and solutions. Ask there: Link (PixelBot Code Collection LUA / Java / X)
Last edited by MrNotSoBright; 01-02-2020 at 10:02 AM.
Thanks, I ended up IDing mutiple problems. My screen was using a nonstandard RGB (painful to find out) and WeakAuras2 was using an 'off white' that was messing with my RGB values.
LUA itself is NP, but the AddOn/WoW API were a problem. If anyone is interested in the core code needed to get started, this is how you go about creating a single-color frame (box) that will update when a WoW API event is triggered (something specific happens in-game)
Edit:------------------------------------------------
-- Define Frames, could be done with a frame and subframes, but whatever the fuck
------------------------------------------------
local RedSquareTest = CreateFrame("Frame", nil, UIParent)
RedSquareTest:SetSize(50, 50)
RedSquareTest:SetPoint("BOTTOMLEFT", 0, 0)
RedSquareTest.texture = RedSquareTest:CreateTexture(nil, "BACKGROUND")
RedSquareTest.texture:SetAllPoints(true)
RedSquareTest.texture:SetColorTexture(0, 0, 0, 1)
------------------------------------------------
-- Player Info
------------------------------------------------
function Sandbox:getPlayerResources()
local uHealth = UnitHealth("player")
local uHealthMax = UnitHealthMax("player")
local uPower = UnitPower("player")
local uPowerMax = UnitPowerMax("player")
uHealth = uHealth / uHealthMax
uPower = uPower / uPowerMax
return uHealth, uPower, 1, 14
end
function updateHealthAndMana(self,event,...)
local uHealth, uPower, third, alpha = Sandbox:getPlayerResources()
RedSquareTest.texture:SetColorTexture(uHealth, 0, uPower, 1)
end
------------------------------------------------
-- Define Script and register events - SetScript field can only refer to a function that has already been defined
------------------------------------------------
RedSquareTest:SetScript("OnEvent",updateHealthAndMana)
RedSquareTest:RegisterEvent("UNIT_POWER_UPDATE")
-- This is an acceptable way to run the trigger once at addon loadtime
updateHealthAndMana()
This code is for creating andaddon from scratch. It would go inside of a 'Sandbox.toc' file and you would need a Sanbox.lua file with it. I didn't seem to need a Sanbox.xml
This tutorial has the fundamentals of addon creation AddOn programming tutorial | Vanilla WoW Wiki | Fandom
Last edited by novam; 01-03-2020 at 01:59 PM.
Before this thread was created I worked on a bot myself. This is a example of mine:
Streamable
Navigation - (mmaps based)
I will not release my code LUA or Bot Source but I wanted to show what's possible.