What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

how to find casters, melees in range which target me and what are they casting

Dark_Star

New Member
Joined
Feb 6, 2011
Messages
6
Reaction score
0
Hi there i would need some help with some problems.

1. Count of meeles which are targeting me and are in melee range.

2. Count of casters wich are targeting me and are in caster range. And I need to get a bool if they are casting spell x, spell y, spell z. Get the castime from spell x, spell y, spell z.Get the left castime from spell x, spell y, spell z.

Thx for your help and reading this.
 
Last edited:
List<WoWUnit> mobList =(from o in ObjectManager.ObjectList where o is WoWUnit let p = o.ToUnit() where p.Distance2D < 50 && !p.Dead && p.IsTargetingMeOrPet && p.Attackable select p).ToList();


You can adapt that to do whatever you need.
 
Hi there i would need some help with some problems.

1. Count of meeles which are targeting me and are in melee range.

2. Count of casters wich are targeting me and are in caster range. And I need to get a bool if they are casting spell x, spell y, spell z.

Thx for your help and reading this.
FPSware beat me to it
PHP:
// list of spell IDs
List<uint>spell_ids = new List<uint>{1213,52323,2523,5232,5232,2352,23232};

List<WoWUnit> meleeUnits = ObjectManager.GetObjectsOfType<WoWUnit>().Where(u=>u.WithinInteractRange && u.IsAlive && u.IsTargetingMeOrPet).ToList();

List<WoWUnit> CasterUnits = ObjectManager.GetObjectsOfType<WoWUnit>().Where(u=>!u.WithinInteractRange && u.IsAlive && u.IsTargetingMeOrPet).ToList()

bool isCastingDeadlySpell = CasterUnits.Count(c => spell_ids.Contains(c.CastingSpellId)) > 0;
;
 
Last edited:
thx a lot looks like that will help. I not a friend with Styx atm but it looks like i will become one.

Btw is there any way to implimentate Styx help to VS 2010?

Now i need only the casting time or better the rest of thetime ^^
 
Last edited:
thx a lot looks like that will help. I not a friend with Styx atm but it looks like i will become one.

Btw is there any way to implimentate Styx help to VS 2010?

Now i need only the casting time or better the rest of thetime ^^
as long as you fallowed my CC Creation Guide, it should be auto completing a lot of your code.
 
as long as you fallowed my CC Creation Guide, it should be auto completing a lot of your code.

IS works so that is not the problem - i mean something like a normal help. XD whre i can surch for some words to find out which part of Styx i have to use.

Like im surchich for something like ist Target = melee i would surch for the word melee if i dont find it i have to write it on my own. Like hast target mana and !WoWClass = Paladin etc ....
 
Last edited:
IS works so that is not the problem - i mean something like a normal help. XD whre i can surch for some words to find out which part of Styx i have to use.

Like im surchich for something like ist Target = melee i would surch for the word melee if i dont find it i have to write it on my own. Like hast target mana and !WoWClass = Paladin etc ....

  1. In Visual Studio open the Object Browser (via the menu View > Object Browser or double clicking on a referenced dll)
  2. Click the browse dropdown menu in the upper left corner and select 'Custom Component Set'
  3. Click the '...' button to the right and a dialog will appear.
  4. Select the Browse tab, click the 'File of Type' dropdown menu that is in the middle of the dialog and select Executable files.
  5. Now browse to the folder that you have Honorbuddy.exe in,select it and click the add button.
  6. Click Ok to close the dialog. Now you can search all the types in Honorbuddy only from the 'Search' text box
 
Last edited:
Back
Top