Well today i decided to make a bot to do some bg's for me while i afk abit.
WHAT BOT DOES:
-Auto Start logging the chat as soon as you enter the bg, and stop when bg end. This way u can see if someone was talking about you to report. (NEW FEATURE)
-Queue and Requeue always the first option in pvp frame. ex: (Random BG) or low lvl's (Warsong)
-Auto Accept when queue is ready.
-Auto Release if dead.
-Auto Mount. (will always mount ur second mount, if you only have 1 mount just change the "2" to "1" in the code: ("CallCompanion("MOUNT",2)")
-Auto Select nearest friend player and follow him around. If player is far away will try to select the other one closest.
-If your dead will not follow anyone, so u dont leave the gv area, so you can respawn there.
-Auto Leave bg's after alliance or horde wins, no wait time. Insta leave for faster bg's.
TODO:
-Might implement a check to change to a fighting profile when in combat. (so you dont look so much a bot)
-Your ideas.
HOW TO USE IT:
-Create a new rotation for ur class. And uncheck the requirement for combat.
-Create a new profile.
-Create a new ability and past this code inside it.
Code:
local status, mapName, instanceID, bracketMin, bracketMax, teamSize, registeredMatch = GetBattlefieldStatus(1)
local inside = IsIndoors()
local mounted = IsMounted()
local winner = GetBattlefieldWinner()
local waitTime = GetBattlefieldEstimatedWaitTime(1)
if waitTime == 0 and status == "none" then
RunMacroText("/run TogglePVPFrame()")
end
if winner == 0 or winner == 1 or winner == 255 then
PQR_WriteToChat("Your chat as stop beeing logged")
LoggingChat(0)
LeaveBattlefield()
end
if status == "none" then
JoinBattlefield(1)
elseif status == "confirm" then
AcceptBattlefieldPort(1,1)
elseif status == "active" then
PQR_WriteToChat("Your chat is beeing logged to Logs\\WOWChatLog.txt")
LoggingChat(1)
if UnitIsDead("player") then
RepopMe()
end
if not UnitExists("target") then
TargetNearestFriendPlayer()
end
if UnitIsDead("player") == nil and CheckInteractDistance("target",4) then
FollowUnit("target")
else
ClearTarget()
end
if not PQR_IsMoving() then
if not inside and not mounted then
CallCompanion("MOUNT",2)
end
end
end
-Click Save.
-Add the new ability to the rotation
-Set that new rotation in PQR.
-Press the hotkey in game.
-PROFIT.
Enjoy,
GRB