August 27, 20169 yr As the title says. Looking for a way to make the bot know if a player i am in party with is dead, so i can cast a rebith on him Any ideas?
August 27, 20169 yr WoWPlayer resutarget = Party.GetParty().FirstOrDefault(p => !p.IsAlive && p.IsValid); if(resutarget != null) { // Target player Interact.InteractGameObject(resutarget.GetBaseAddress); // Use spell new Spell("SpellName").Launch(true); } This should work but not tested.
August 27, 20169 yr Author 4 minutes ago, iMod said: WoWPlayer resutarget = Party.GetParty().FirstOrDefault(p => !p.IsAlive && p.IsValid); if(resutarget != null) { // Target player Interact.InteractGameObject(resutarget.GetBaseAddress); // Use spell new Spell("SpellName").Launch(true); } This should work but not tested. Thanks ! will added it, but guess i cant really test if before legion :)
August 27, 20169 yr You should maybe add some more validations like "is target in range" or "is target visible" this is kinda just the basic
August 27, 20169 yr Author Just now, iMod said: You should maybe add some more validations like "is target in range" or "is target visible" this is kinda just the basic Yea ofc :) just noticed that the bot dont really have a "check if party member is dead" option
August 27, 20169 yr I see, i really have no clue about that xml stuff and its abilities. If you are able to use c# you can realize everything you want.
Create an account or sign in to comment