Adding the API content on the WIKI (on progress) : API - SPQR - Passive Rotation Bot
Adding the API content on the WIKI (on progress) : API - SPQR - Passive Rotation Bot
Anthraxbot & SPQR Creator / Administrator
[6:52:49 PM] -- Loading Customclasses...
[6:52:56 PM] -- Line number 18, Error Number: CS1514, '{ expected
[6:52:56 PM] -- Line number 18, Error Number: CS1001, 'Identifier expected
[6:52:56 PM] -- Line number 19, Error Number: CS1001, 'Identifier expected
[6:52:57 PM] -- SPQR v:1.0.5206.39896 loaded.
Is this something on my part? Just trying it out as stock setup nothing modified.
I can't figure out how to make this check for runes that are ready. In the API I found this code, but I can't figure out how to get it to function as a check for using "Death Strike"
Any help would be appreciated.Code:int deathRuneCount = MySPQR.Internals.ObjectManager.WoWLocalPlayer.GetReadyRuneCountByType(MySPQR.Patchables.Enums.WoWRuneType.DEATH); Logger.WriteLine("Ready Blood Rune Count = " + deathRuneCount);
Something like that ?
Code:if (MySPQR.Internals.ObjectManager.WoWLocalPlayer.GetReadyRuneCountByType(MySPQR.Patchables.Enums.WoWRuneType.FROST) > 0 && MySPQR.Internals.ObjectManager.WoWLocalPlayer.GetReadyRuneCountByType(MySPQR.Patchables.Enums.WoWRuneType.CHROMATIC) > 0) //change rune and number according to your needs MySPQR.Internals.ActionBar.CastSpellById(49998); //www.wowhead.com/spell=49998
Anthraxbot & SPQR Creator / Administrator
Hello, I tried to create a basic DK frost rotation ([C#] Frost DK - Pastebin.com) but it doesn't seem to fire for some reason. Can you take a look and maybe give me a hint for what could be wrong in the code?
Thanks muchly
Firstly, thank you so much for making this program!
I have some trouble getting MySPQR.Internals.ActionBar.CanCast(spellId) for Horn of the Winter to work. It returns true even if the spell is on CD. I'm using spellID: 57330
Edit: this seams to be a general problem, it does not detect any spell cooldowns it seams.
Also, it complains that the function GetReadyRuneCountByType does not exist.
Edit: link to complete code: http://pastebin.com/CgiCkrGq
Last edited by Snikur; 04-05-2014 at 10:04 AM.
Rename your file to something else, AND change :
toCode:public override string DisplayName { get { return "DeathKnight"; } //This is the name displayed in SPQR's Class selection DropdownList }
Code:public override string DisplayName { get { return "Whatever unique name you want"; } //This is the name displayed in SPQR's Class selection DropdownList }
Anthraxbot & SPQR Creator / Administrator
I'm having a similar issue with the GetReadyRuneCountByType - Blood DK Leveling - Pastebin.com
Here is my error
Sorry if I'm being completely dumb, this is the first profile I've tried making. I've modified others in PQR & PE... trying to make one is a bit harderCode:[10:29:21 AM] -- Loading Customclasses... [10:29:22 AM] -- Line number 62, Error Number: CS1061, ''MySPQR.Classes.WoWLocalPlayer' does not contain a definition for 'GetReadyRuneCountByType' and no extension method 'GetReadyRuneCountByType' accepting a first argument of type 'MySPQR.Classes.WoWLocalPlayer' could be found (are you missing a using directive or an assembly reference?) [10:29:22 AM] -- Line number 62, Error Number: CS1061, ''MySPQR.Classes.WoWLocalPlayer' does not contain a definition for 'GetReadyRuneCountByType' and no extension method 'GetReadyRuneCountByType' accepting a first argument of type 'MySPQR.Classes.WoWLocalPlayer' could be found (are you missing a using directive or an assembly reference?) [10:29:23 AM] -- SPQR v:1.0.5206.39896 loaded.
EDIT: I also wanted to say thanks for the app and support - this is exactly what I was hoping for after the banwave.
Last edited by Ichiboo; 04-05-2014 at 12:53 PM.
hoops, my fault, not pushed the update with this function... what a dumbass![]()
Anthraxbot & SPQR Creator / Administrator
I now have new problem, whenever I try to use the ME.HasAurabyId(<some spell ID>) the bot stops working. It also stops working if I try to get Auras in the debug window. Auras from target works just fine.
Here is an example that makes the bot stop working:
var ME = MySPQR.Internals.ObjectManager.WoWLocalPlayer;
if (ME.HasAurabyId(81141))
{
SPQR.Logger.WriteLine("I have the buff!");
}
Last edited by Snikur; 04-05-2014 at 04:50 PM.
I'm currently looking to fix thoses bugs, thats why there is less released thoses days, stay tuned![]()
Anthraxbot & SPQR Creator / Administrator
I don't know if I'm going to use it, but I really appreciate your work Nonowmana, great to have people like you in the community. Keep up the good work!