Arcangelo 105 Posted August 27, 2016 Share Posted August 27, 2016 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? Link to comment https://wrobot.eu/forums/topic/3709-use-rebith-on-a-dead-player/ Share on other sites More sharing options...
iMod 99 Posted August 27, 2016 Share Posted August 27, 2016 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. Link to comment https://wrobot.eu/forums/topic/3709-use-rebith-on-a-dead-player/#findComment-17293 Share on other sites More sharing options...
Arcangelo 105 Posted August 27, 2016 Author Share Posted August 27, 2016 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 :) Link to comment https://wrobot.eu/forums/topic/3709-use-rebith-on-a-dead-player/#findComment-17294 Share on other sites More sharing options...
iMod 99 Posted August 27, 2016 Share Posted August 27, 2016 You should maybe add some more validations like "is target in range" or "is target visible" this is kinda just the basic Link to comment https://wrobot.eu/forums/topic/3709-use-rebith-on-a-dead-player/#findComment-17295 Share on other sites More sharing options...
Arcangelo 105 Posted August 27, 2016 Author Share Posted August 27, 2016 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 Link to comment https://wrobot.eu/forums/topic/3709-use-rebith-on-a-dead-player/#findComment-17296 Share on other sites More sharing options...
iMod 99 Posted August 27, 2016 Share Posted August 27, 2016 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. Link to comment https://wrobot.eu/forums/topic/3709-use-rebith-on-a-dead-player/#findComment-17297 Share on other sites More sharing options...
Droidz 2738 Posted August 27, 2016 Share Posted August 27, 2016 Hello, no tested, but in fightclass editor you can use this code like this: Arcangelo and BetterSister 2 Link to comment https://wrobot.eu/forums/topic/3709-use-rebith-on-a-dead-player/#findComment-17299 Share on other sites More sharing options...
Arcangelo 105 Posted August 27, 2016 Author Share Posted August 27, 2016 The bot crashes when the code is set into the bot :/ Link to comment https://wrobot.eu/forums/topic/3709-use-rebith-on-a-dead-player/#findComment-17312 Share on other sites More sharing options...
Droidz 2738 Posted August 28, 2016 Share Posted August 28, 2016 a.xml Link to comment https://wrobot.eu/forums/topic/3709-use-rebith-on-a-dead-player/#findComment-17323 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now