tried that with every ability in the rotation, went thru one at a time, not a single one would fire off. D:
tried that with every ability in the rotation, went thru one at a time, not a single one would fire off. D:
Using build d after wow restart
/dump PQR_GetCVar("FacingTarget")Code:--------------------------- --------------------------- WoW Base: 3997696 CVarBaseMgr: 10802088 CVarBaseMgrArray: 10802116 CVarArrayResult: 100565856 BehindTarget: 260,1876 FacingTarget: 3,4023 DistanceTarget: 6,25829677683225 TargetGUID: 72057594105093095 TargetOfTargetGUID: 72057594047766589 --------------------------- Aceptar ---------------------------
[1]="3,4023"
but functions still not working.
[ Sheuron PQR Profiles Pack ] https://goo.gl/lfAMC
If you like this piece of code feel free to invite me a beer making a donation.
My paypal account: [email protected]
That is interesting... since your on an EU client it is changing the number format to 3,4023 vs 3.4023 if you rotate do you get results between 0-359.9999? I wonder if that matters... it shouldnt but who knows...
Just make the macro /script print(PQR_GetCVar("FacingTarget")) and spin around while targeting something
Last edited by Xelper; 04-29-2012 at 10:10 AM.
yes, 0 to 360, decimal delimiter is comma not period
[ Sheuron PQR Profiles Pack ] https://goo.gl/lfAMC
If you like this piece of code feel free to invite me a beer making a donation.
My paypal account: [email protected]
http://dl.dropbox.com/u/39925787/PQR..._213_BETAe.zip
Let me know if they all work now.
The reason they originally worked is because I was doing the true/false check in Windows which worked fine with comma decimal delimiter, but I changed from calculating true/false out of game to just inputting the number into WoW so it can be used for more purposes. WoW needs the numbers to use a period. Distance never worked because it always used a comma and was the number being input.
Works
Just an idea to give more functionality to PQR_FacingTarget()
PQR_FacingTarget(degrees)
Currently PQR_FacingTarget() return true is player is 180 degress in front of player. Would be useful to specify smaller range to use front cone spells (90 degress) like PQR_FacingTarget(90)
[ Sheuron PQR Profiles Pack ] https://goo.gl/lfAMC
If you like this piece of code feel free to invite me a beer making a donation.
My paypal account: [email protected]
http://dl.dropbox.com/u/39925787/PQR...R213_BETAf.zip
Just tweaked the PQR_BehindTarget() and PQR_FacingTarget() functions..
If you pass them a numeric value between 0 and 360 it will calculate with them. If you do not pass it a numeric value it will use 180 degrees as the default value. If you pass them true it will just return degrees.
Example:
PQR_FacingTarget(90) will figure out if the target is within a 90 degree cone of your facing.
PQR_FacingTarget() will figure out if the target is within 180 degrees of your facing (in front vs behind)
PQR_FacingTarget(true) will return degrees that you can do with what you would like.
Works for both functions.
None of this is changing how PQR works. It is up to the profile developer to determine if they want to cast a spell on the target or not.
This will allow profile developers to say "Oh I am not facing my target, don't try to cast Shadow Bolt... cast this DoT instead because I do not need to be facing to cast it..."
Or say: "I am not behind my target, cast Mangle instead of Shred"
Or for a paladin holy profile: "I am not facing my target, don't try to cast Judgement on it"
Last edited by Xelper; 04-29-2012 at 11:38 AM.
Demo Profile is coded and working just working on adding in the demon swap stuff. Unless you don't want the demon swap and want to do it with an ingame macro i'll go ahead and post it.
I was delayed due to storms haven't had power for a while.
Please if someone helped you donate rep to them.
btw, you have map scale factor on any variable i can use?
Im using this function to calculate distance between 2 units in same raid
and using another function to calculate map scale factor and convert that amount to game yards, but if oyu already have scale factor calculated i can skip that part.Code:function CheckDistance(unit1,unit2) local x1,y1 = GetPlayerMapPosition(unit1) local x2,y2 = GetPlayerMapPosition(unit2) return sqrt( (x1-x2)^2 + (y1-y2)^2 ) end
[ Sheuron PQR Profiles Pack ] https://goo.gl/lfAMC
If you like this piece of code feel free to invite me a beer making a donation.
My paypal account: [email protected]
Hello,
first of all: I don't speak english very well, hope you understand me.
I'am not a coder. So i will pay for good work.
Here is my problem:
My daughter is ill, she has spinal muscular atrophy. She can't play WOW in a normal way.
Can you/some of you write a profile for a DK frost (master) with 2-Hand weapon? She want to use it in Arena.
She can use a mouse with 6 buttons and (at the moment) she moves the charakter with the mouth joystick. Here left hand did not work anymore.
What she need:
A profile for combat against healers.
A profile against Plate.
A profile for self healing?
Every profile must have Hotkeys for Antimagic shell and so on...
Have you the time do do something like that?
Greetings Mandracore