-
Posts
332 -
Joined
Content Type
Forums
Articles
Bug Tracker
Downloads
Store
Posts posted by Apexx
-
-
Hey @reapler, How is that you use SPELL_CAST_SUCCESS
I would like a more accurate wait time between casts. Thank you! -
Will try that out, you come to the rescue again @reapler
-
I think I may have solved it on my own. It does seem to be working:
if (player.GetEquipedItemBySlot(wManager.Wow.Enums.InventorySlot.INVSLOT_RANGED) != 0) { Logging.WriteFight("Using Wand."); Lua.RunMacroText("/cast !Shoot"); }
-
Hi, I was wondering how one might search the player's equipped items to see if the player has a wand equipped?
I have tried playing with:
player.GetEquipedItemBySlot(wManager.Wow.Enums.InventorySlot.INVSLOT_RANGED)
-
Ah very well! Thank you @reapler
-
-
-
How in c# can I test if the product loaded and running is Party and Healer mode?
-
It is a bit redundant to sit to replenish mana or health while eating and drinking just when a buff falls off, and my player gets up mid-meal to buff again. Is there a check for this issue?
Thanks!
-
// Return Number of Hostile Units Attacking in Specified Range private int HostileUnitsInRange(float range) { int hostileUnitsInRange = ObjectManager.GetUnitAttackPlayer().Count(u => u.GetDistance <= range); return hostileUnitsInRange; }
Try something like the following (Will check if no unit is attacking you within 30 yards):
wManager.Events.FightEvents.OnFightEnd += delegate { if (HostileUnitsInRange(30) == 0) Buff(); };
-
Maybe check for your buffs at the end of a fight?
wManager.Events.FightEvents.OnFightEnd += delegate { Buff(); };
-
Thanks for the reply @lonellywolf. When I started the FightClass from ground zero again, I managed to get it to work. Once I added a few more abilities, it stopped
working as I intended it to. If I even clicked a hostile unit from a large distance gap (Say 50-100 yards away) and wait a second, you can see the Auto Attack
button start flashing. It would be nice if it didn't automatically try to attack the unit, unless the player is within the Range value we set inside the C# class.
When it was working, I could literally stand right on top of a hostile unit without it even attacking it unless I moved behind the target, then it opened with Shred.
If I was not behind the target, it seemed that I would manually have to use an ability to open the rotation and have the script do the rest of the work.
But yes, it is a bummer there is no real way to disable Auto Attack. -
I have tried to script the druid ability Shred while stealth and behind target. WRotation always toggles Auto-Attack and never allows time to cast Shred. It looks so bad when I pop out of stealth for auto-attack.
Any solution to this behavior?
-
Thanks @reapler, good eye!
-
Gentle Bump @Droidz. Is there any way to prevent the Logging.WriteDebug for the Return new spell for GetActiveStance? It's hard to debug my scripts with the endless spam while checking the player's current stance.
Thanks!
-
I did not see any option to add a thumbnail to my Fight Class submission inside the Wrath of the Lich King fight class listing. Is this possible?
-
Anyways, thanks for the support! lol
-
Yeah, I just found out that I had launched Demo Shout inside my Battle shout Buff routine! ugh!
-
Hey @reapler Here's a the log file from one fight using your latest post example:
06:43:34 - [Fight] Player Attack Galak Windchaser (lvl 24) 06:43:35 - not active [F] 06:43:35 - [Spell] Cast Demoralizing Shout (Demoralizing Shout) 06:43:35 - not active [F] 06:43:35 - [Spell] Cast Demoralizing Shout (Demoralizing Shout) 06:43:36 - not active [F] 06:43:36 - [Spell] Cast Demoralizing Shout (Demoralizing Shout) 06:43:36 - not active [F] 06:43:36 - [Spell] Cast Demoralizing Shout (Demoralizing Shout) 06:43:37 - not active [F] 06:43:37 - [Spell] Cast Demoralizing Shout (Demoralizing Shout) [F] 06:43:37 - [Spell] Cast Bloodrage (Bloodrage) [F] 06:43:38 - [Spell] Cast Rend (Rend) 06:43:38 - not active [F] 06:43:38 - [Spell] Cast Demoralizing Shout (Demoralizing Shout) 06:43:39 - not active [F] 06:43:39 - [Spell] Cast Demoralizing Shout (Demoralizing Shout) [F] 06:43:39 - [Spell] Cast Mocking Blow (Mocking Blow) [F] 06:43:39 - [Spell] Cast Demoralizing Shout (Demoralizing Shout) 06:43:40 - debuff active 06:43:40 - debuff active 06:43:40 - debuff active 06:43:41 - debuff active [F] 06:43:41 - [Spell] Cast Thunder Clap (Thunder Clap) 06:43:41 - debuff active 06:43:42 - debuff active 06:43:42 - debuff active 06:43:42 - debuff active 06:43:43 - debuff active 06:43:43 - debuff active 06:43:44 - debuff active [F] 06:43:44 - [Spell] Cast Mocking Blow (Mocking Blow) 06:43:44 - debuff active 06:43:45 - debuff active 06:43:45 - debuff active 06:43:45 - debuff active 06:43:46 - debuff active [F] 06:43:46 - Galak Windchaser casting time remaining: 1.1 seconds. [F] 06:43:46 - Player interrupted with Shield Bash (Id found: 72, Name found: Shield Bash, NameInGame found: Shield Bash, Know = True, IsSpellUsable = False) 06:43:46 - debuff active [F] 06:43:46 - Galak Windchaser casting time remaining: 0.7 seconds. [F] 06:43:46 - Player interrupted with Shield Bash (Id found: 72, Name found: Shield Bash, NameInGame found: Shield Bash, Know = True, IsSpellUsable = False) 06:43:46 - debuff active [F] 06:43:46 - [Spell] Cast Demoralizing Shout (Demoralizing Shout) [F] 06:43:47 - Galak Windchaser casting time remaining: 0.1 seconds. [F] 06:43:47 - [Spell] Cast Shield Bash (Shield Bash) [F] 06:43:47 - Player interrupted with Shield Bash (Id found: 72, Name found: Shield Bash, NameInGame found: Shield Bash, Know = True, IsSpellUsable = False) 06:43:47 - debuff active 06:43:48 - debuff active 06:43:48 - debuff active 06:43:48 - debuff active 06:43:49 - debuff active 06:43:49 - debuff active 06:43:50 - debuff active 06:43:50 - debuff active [F] 06:43:50 - [Spell] Cast Demoralizing Shout (Demoralizing Shout) 06:43:51 - debuff active 06:43:51 - debuff active 06:43:51 - debuff active 06:43:52 - debuff active 06:43:52 - debuff active 06:43:52 - debuff active [F] 06:43:53 - [Spell] Cast Demoralizing Shout (Demoralizing Shout) 06:43:53 - debuff active 06:43:53 - debuff active 06:43:54 - debuff active 06:43:54 - debuff active 06:43:55 - debuff active 06:43:55 - debuff active 06:43:55 - debuff active 06:43:56 - debuff active 06:43:56 - debuff active 06:43:57 - debuff active 06:43:57 - debuff active 06:43:57 - debuff active 06:43:58 - debuff active [F] 06:43:58 - [Spell] Cast Rend (Rend) 06:43:58 - debuff active 06:43:59 - debuff active 06:43:59 - debuff active 06:43:59 - debuff active 06:44:00 - debuff active [F] 06:44:00 - [Spell] Cast Demoralizing Shout (Demoralizing Shout) 06:44:00 - debuff active 06:44:01 - debuff active 06:44:01 - debuff active 06:44:02 - debuff active 06:44:02 - debuff active 06:44:02 - debuff active 06:44:03 - debuff active 06:44:03 - debuff active 06:44:04 - debuff active 06:44:04 - debuff active 06:44:04 - debuff active 06:44:05 - debuff active 06:44:05 - debuff active 06:44:05 - debuff active 06:44:06 - debuff active 06:44:06 - debuff active 06:44:06 - debuff active 06:44:07 - debuff active 06:44:07 - not active [F] 06:44:07 - [Spell] Cast Demoralizing Shout (Demoralizing Shout) 06:45:13 - [Apexx Protection Warrior v1.0] Stop in progress.
Demoralizing Shout Debuff lasts for 30 seconds. I am not sure why it keeps reapplying it.
-
Thanks for the replies. I am still not quite sure how I can check each different id to whichever spell id the player currently has (as per rank and level of training).
Lower level warriors use spell id 1160, while rank 2 of Demoralizing shout uses 6190. If I run a for loop through each demoralizing shout id that each mob
might have, I am wondering if this will be very efficient? -
Thank you! Do you think you could share the list?
-
Finding the different spell IDs might be a small hurdle, but I will give it a try.
-
I have not tried with Spell IDs yet because I would like it to be adaptable with leveling and rank ups as you train.
-
Thanks for the reply @arkhan. However, this is not checking for debuff on me, but rather ObjectManager.Target
Heals Casting Twice With Timer
in WRobot for Wow Wrath of the Lich King - Help and support
Posted
That's wild! Thank you for the exuberant example. I will need to look this over a few times to try and wrap my head around it. Why is this sort of thing not already implemented into WRobot? Also, you defined _msDelay. Where does this number come from?
Thank you again!