https://subversion.assembla.com/svn/..._Reference.lua
follow that link gives some examples of PQR api's
and this:
http://www.ownedcore.com/forums/worl...ml#post2789958 (PQR - Rotation Bot)
has a few extras the first link misses
https://subversion.assembla.com/svn/..._Reference.lua
follow that link gives some examples of PQR api's
and this:
http://www.ownedcore.com/forums/worl...ml#post2789958 (PQR - Rotation Bot)
has a few extras the first link misses
Last edited by crystal_tech; 08-10-2013 at 08:37 AM.
Please if someone helped you donate rep to them.
crystal_tech thxbut it's all I found in the search.
I do not need to know what they do, i need to know how they do it, i need their code (the functions body).
Ok, I took the facing code that was posted before, cleaned it up a bit, added a throttle and also fixed the angle checks, it seems to work well and with less fps spikes, feel free to try it.
PHP Code:
function GetPointYawAngle(x1, y1, facing, x2, y2)
local yaw = atan2(y1-y2, x1-x2) - facing
if yaw < 0 then
yaw = yaw + 360
end
return yaw
end
function GetUnitYawAngle(unitID1, unitID2)
if not (UnitExists(unitID1) and UnitExists(unitID2)) then return 0 end
local x1, y1, _, facing = PQR_UnitInfo(unitID1)
local x2, y2 = PQR_UnitInfo(unitID2)
return GetPointYawAngle(x1, y1, deg(facing), x2, y2)
end
function IsUnitFacingUnit(unitID1, unitID2, throttle)
if lastFacing == nil then lastFacing = false end
if lastFacingTime == nil then lastFacingTime = 0 end
if not throttle or (GetTime() - lastFacingTime) > throttle then
lastFacingTime = GetTime()
local yawAngle = GetUnitYawAngle(unitID1, unitID2)
if yawAngle > 0 and yawAngle > 90 then lastFacing = true return true end
if yawAngle < 0 and yawAngle < -90 then lastFacing = true return true end
lastFacing = false
end
return lastFacing
end
function IsUnitBehindUnit(unitID1, unitID2, throttle)
return not IsUnitFacingUnit(unitID2, unitID1, throttle)
end
Last edited by vitalic; 08-10-2013 at 12:51 PM.
yes, I did like this
bigger interval for checking = less frequently framerate dropPHP Code:
if FacingTime == nil then FacingTime = 0 end
function PlayerFacingTarget(Time)
if not UnitExists("target") or UnitIsUnit("player","target") then return false end
if FacingTime < GetTime() - Time then
FacingTime = GetTime()
local x1,y1,_,facing = PQR_UnitInfo(UnitGUID("player"))
local x2,y2 = PQR_UnitInfo(UnitGUID("target"))
local yawAngle = atan2(y1 - y2, x1 - x2) - deg(facing)
if yawAngle < 0 then yawAngle = yawAngle + 360 end
if yawAngle > 90 and yawAngle < 270 then
FacingCheck = true else FacingCheck = false
end
end
end
if FacingCheck then PlayerFacingTarget(2) else PlayerFacingTarget(1) end
does not work with objects like the foots of Lord Rhyolith
Last edited by WWF; 08-10-2013 at 01:43 PM.
Latest PTR Offsets
<?xml version="1.0" encoding="UTF-8"?>
<Offsets>
<CurrentWoWVersion>17271</CurrentWoWVersion>
<WoWVersionOffset>0xD9DF35</WoWVersionOffset>
<PlayerName>0xFE4720</PlayerName>
<PlayerClass>0xFE489D</PlayerClass>
<GetCurrentKeyBoardFocus>0xCC57B8</GetCurrentKeyBoardFocus>
<GameState>0xE85C3E</GameState>
<Lua_DoStringAddress>0x5A664</Lua_DoStringAddress>
<Lua_GetLocalizedTextAddress>0x488F92</Lua_GetLocalizedTextAddress>
<CVarBaseMgr>0xCA6270</CVarBaseMgr>
<CVarArraySize>0x400</CVarArraySize>
<ObjMgr>0xDD8464</ObjMgr>
<CurMgr>0x462C</CurMgr>
<LocalGUID>0xE0</LocalGUID>
<FirstObject>0xCC</FirstObject>
<NextObject>0x34</NextObject>
<Descriptors>0x4</Descriptors>
<Obj_TypeOffset>0xC</Obj_TypeOffset>
<Obj_X>0x7F8</Obj_X>
<Obj_TargetGUID>0x28</Obj_TargetGUID>
<ClickTerrain>0</ClickTerrain>
</Offsets>
how do i get PQR to work on the PTR i downloaded the newest offsets and it only will go into edit mod someone plz hlp
1. Go to the offsets folder
2. Copy and paste another offset file, like Offsets_17128.xml
3. Rename that to Offsets_(ptr version).xml, so in this case Offsets_17271.xml
4. Open the file in notepad
5. Replace all the contents with what was posted above here, so
Code:<?xml version="1.0" encoding="UTF-8"?> <Offsets> <CurrentWoWVersion>17271</CurrentWoWVersion> <WoWVersionOffset>0xD9DF35</WoWVersionOffset> <PlayerName>0xFE4720</PlayerName> <PlayerClass>0xFE489D</PlayerClass> <GetCurrentKeyBoardFocus>0xCC57B8</GetCurrentKeyBoardFocus> <GameState>0xE85C3E</GameState> <Lua_DoStringAddress>0x5A664</Lua_DoStringAddress> <Lua_GetLocalizedTextAddress>0x488F92</Lua_GetLocalizedTextAddress> <CVarBaseMgr>0xCA6270</CVarBaseMgr> <CVarArraySize>0x400</CVarArraySize> <ObjMgr>0xDD8464</ObjMgr> <CurMgr>0x462C</CurMgr> <LocalGUID>0xE0</LocalGUID> <FirstObject>0xCC</FirstObject> <NextObject>0x34</NextObject> <Descriptors>0x4</Descriptors> <Obj_TypeOffset>0xC</Obj_TypeOffset> <Obj_X>0x7F8</Obj_X> <Obj_TargetGUID>0x28</Obj_TargetGUID> <ClickTerrain>0</ClickTerrain> </Offsets>
Or JPS dps-addon! lol
I downloaded the program and downloaded my rotation and put it in correct folder, i run the program select my toon and then go into game and Hold down Alt+x and it says enabled and then it does nothing no attacking at all. please help its going on 3 days and i can't figure it out its pissing me off.
i use shadow bot, its basicly then new lazy bot with some improvements. its great for gathering which is what i use it for... but its so bad at dps its funny (at least for my shadow priest who is my boter) it could just be the standard profile but it was doing so bad it would die to lvl 85 mobs and hes 90... after deciding to use PQR along side the bot the difference was night and day lol.
in short its a awesome (100% fully passive wow bot!) that works wonders for gathering/grinding/and to a point pvp, but is no rotation bot.
here is the link if u want to check it out: Shadow Bot - Your premier windows leveling bot!
Alpha Profiles: - All profiles with PQInterface support!
Alpha Interrupt: https://goo.gl/OLhGi - Ignore List, Random Percentage, Time Delays, & much More!
Alpha Utilities: https://goo.gl/rt7WA - Farming, Prospecting, Disenchanting, Milling, & Questing
Alpha Moonkin: https://goo.gl/gjxw0 - Optimized DPS Rotation for PvE, Mashup of 3 Profiles
Avery's Ret: https://goo.gl/GhurM - My take on Avery's outstanding Ret profile with PQI