Jump to content

PierreDeRosette

Members
  • Posts

    129
  • Joined

  • Last visited

Everything posted by PierreDeRosette

  1. OK. C'est moi :( Je n'avais pas mis les même using que toi. Maintenant ca semble bien rouler. Apres diner je turbine dessus. Merci encore... T'a pas changé :) toujours up pour ce bot. Bravo et chapeau pour tes competences
  2. Ok Super Il ne manque plus que le : ObjectManager.Me.Target != lastTarget Qui ne passe pas :P Merci beaucoup en tout cas
  3. Bonjour J'ai essaye de faire tourner les profils prècedent Draenor. Mais j'obtient des erreurs qui n'existaient pas auparavant : Voici le script qui etait utilisé : using System; using System.Threading; using System.Windows.Forms; using robotManager.Helpful; using Timer = robotManager.Helpful.Timer; using wManager.Wow.Class; using wManager.Wow.Enums; using wManager.Wow.Helpers; using wManager.Wow.ObjectManager; using Point = System.Drawing.Point; using System.Collections.Generic; using System.Linq; using System.Text; using System.Diagnostics; public class Main : ICustomClass { public float Range { get { return 40; } } internal static float InternalRange = 5.0f; private bool _loop; public UInt64 lastTarget = 0;//Declaration de loop private Timer _Cible = new Timer(0); private Timer _Sappe = new Timer(0); //Zone Sorts #region Spells public readonly Spell ArcaneShot = new Spell("Arcane Shot"); public readonly Spell ArcaneTorrent = new Spell("Arcane Torrent"); public readonly Spell SteadyShot = new Spell("Steady Shot"); public readonly Spell ConcussiveShot = new Spell("Concussive Shot"); public readonly Spell SerpentSting = new Spell("Serpent Sting"); public readonly Spell KillCommand = new Spell("Kill Command"); public readonly Spell HuntersMark = new Spell("Hunter's Mark"); public readonly Spell AspectoftheHawk = new Spell("Aspect of the Hawk"); public readonly Spell CallPet1 = new Spell("Call Pet 1"); public readonly Spell RevivePet = new Spell("Revive Pet"); public readonly Spell ScatterShot = new Spell("Scatter Shot"); #endregion Spells public void Initialize() { Logging.Write("Chargement CHASSEUR MDB PVP"); Main.InternalRange = 5.0f; _loop = true; while (_loop) { try { if (!ObjectManager.Me.IsDead && !Usefuls.IsLoadingOrConnecting && Usefuls.InGame) { Defense(); if (!ObjectManager.Me.IsMounted) { Permanent(); if (ObjectManager.Me.Target > 0 && ObjectManager.Target.Reaction <= Reaction.Neutral && ObjectManager.Target.IsAlive) Engagement(); } } } catch (Exception e) { Logging.WriteError("CustomClass > Initialize(): " + e); } Thread.Sleep(15); } _loop = false; } public void Defense() { if (ObjectManager.Target.GetDistance < 8 && ObjectManager.Target.IsCast) ArcaneTorrent.Launch(false); if (ObjectManager.Target.IsCast && ScatterShot.IsDistanceGood && ScatterShot.IsSpellUsable) { ScatterShot.Launch(false); return; } } public void Permanent() { if (!AspectoftheHawk.HaveBuff) AspectoftheHawk.Launch(false); if (!ObjectManager.Me.IsCast && (ObjectManager.Pet.Health == 0 || ObjectManager.Pet.Guid == 0) && CallPet1.IsSpellUsable && ObjectManager.Me.InCombat) { CallPet1.Launch(); Thread.Sleep(1000); } if (!ObjectManager.Me.IsCast && (!ObjectManager.Pet.IsAlive || ObjectManager.Pet.Guid == 0) && RevivePet.KnownSpell && RevivePet.IsSpellUsable && ObjectManager.Target.HealthPercent > 10 && ObjectManager.Me.InCombat) { RevivePet.Launch(); Thread.Sleep(1000); return; } if (!ObjectManager.Me.IsCast && !ObjectManager.Pet.IsAlive && RevivePet.KnownSpell && RevivePet.IsSpellUsable && !ObjectManager.Me.InCombat) { RevivePet.Launch(); Thread.Sleep(1000); } } public void Engagement() { if (ObjectManager.Me.Target != lastTarget) { Pull(); } else { Attaque(); } } public void Pull() { Lua.RunMacroText("/petattack"); if (ConcussiveShot.IsSpellUsable && !ObjectManager.Target.HaveBuff(5116)) ConcussiveShot.Launch(false); lastTarget = ObjectManager.Me.Target; } public void Attaque() { if (ConcussiveShot.IsSpellUsable && !ObjectManager.Target.HaveBuff(5116)) { ConcussiveShot.Launch(false); return; } if (KillCommand.IsSpellUsable) { KillCommand.Launch(false); return; } if (!ObjectManager.Target.HaveBuff(1978)) SerpentSting.Launch(false); if (SteadyShot.IsSpellUsable && ObjectManager.Me.Focus < 40) SteadyShot.Launch(false); } public void Dispose() { Logging.Write("Dispose Fight Class Hunter MDB"); _loop = false; } public void ShowConfiguration() { MessageBox.Show("Script pour Hunter MDB : Mauvaise classe"); } } Script pas publié car trop spécialisé a mon perso (Mon style de jeu et le lvl du perso) Donc visiblement la notion de MemoryRobot.Int128 est nouvelle (Objet)... Je crois savoir que le contenu des tutos deviens aussi obsolète...
  4. Effectivement J'avais oublié ce parametre (Normal je reprend ;)) . Je suis passé du DirectX 11 au DirectX 9 et relancé le jeu en 32bits et tout se passe bien désormais. Merci encore
  5. Bonjour J'ai un gros souci de démarrage du robot. Je lance wow, prend un perso et le met en jeu. Puis je lance wrobot. Le personnage est détecté, mais quand je clique sur Launch Bot, il me repond avec Popup " Please select game and connect to the game". Je me suis assuré d'avoir la dernière version directx, d'être lancé en WOW sous 32 bit, et dans le doute je réinstalle tous les prérequis indiqués dans le pdf. Même le robot je le re-download. (Au passage j'ai fait pareil pour battlenet.com au cas ou meme je sais qu'il n'est pas mis a contribution.) Bon je referme wow et je tente de demarrer WOW via wrobot. A la question "Do you want launch WOW in 32 bit mode", je repond OUI. Wow se lance, je select le perso que je met en jeu, et sur la fenetre Wrobot je fait un refresh - et mon personnage est "in use". Je clique sur Launch Bot...Et la surprise !!! Encore une fois il me dit : "Please select game process and connect to the game" Je m'assure qu'il n'y a aucun Teamviewer en marche, ou de programmes utilisant DirectX, je redémarre la machine. Et je retente bien 10 fois mais rien a faite pour lancer Wrobot. Bref retour raté sur Wow :) Mais je sais que vous trouverez vite vite la soluce a mon souci...comme d'hab quoi
  6. Hi I'm not sure if it's a bug because no-one talk about that in the forum I tryed to gather herbs since the last update, and the bot fly and fly but never start gathering. Alls options are ok (Verified picking herb on, enough skills) Not yet tryed others like mining Can someone verify ? I restarted, and i re-downloaded but always the same : flying and never gathering
  7. I'm running on a new account. Not yet lvl 90 characters. So complicate to do some valuable duels with my friend to test. But i made a test to know why wrotation not start when i enter in duel or in arena By elimination i found that when condition Fight.Infight is used, the result is "false" even after entering in fight against other players. All script using it not enter in combat because this condition stay at false in pvp (sometimes, but sometimes it's ok) in few days i'll do a good topic with scripts and screenshots. I not yet respond just because i haven't yet a lot of time to do it well.
  8. Bonjour Cela fait longtemps :) Mais du coup j'ai plusieurs points a présenter : Point 1 : J'ai vu de nombreux cas dire que dans Wrotation, aucune action ne se déclenchais (et donc que le bot ne fonctionnais plus) quelquefois en bg, arène et duels J'ai identifié la cause de ce probleme : Une certaine condition, en l'occurrence fight.InFight, reste sur false alors que le combat est bel et bien engagé. Comme dans la plupart des scripts, il s'agit d'un préalable pour enclencher la méthode Rotation(); , alors Wrotation ne declenche pas de procédure de combat. Ceci semble vrai aussi pour les combats réalisés avec FightClass. (J'ai pas encore testé avec FightClass) Point 2 : En mode fightclass, il était souvent question de créer 2 procédures de heal. Une pour soi, une pour l'équipe. Je me demandais si il était possible tout simplement de ne faire qu'une procédure, tout simplement en s'incluant dans l'équipe. J'explique : J'ai fait un script, qui est d'une redoutable efficacité. Vraiment démoniaque. Mais je ne l'ai pas encore présenté car j'ai de gros soucis avec la classe Interact qui rend mes mouvements pratiquement ingérables et j'essaie de me dépatouiller avec pour obtenir le meilleur compromis possible. Dans ce script, voila ce que j'ai fait : public void Ciblage(ulong Cible) { List<WoWPlayer> amisPlayerList; amisPlayerList = ObjectManager.GetWoWUnitHorde(); amisPlayerList.Add(ObjectManager.Me); WoWUnit[] patients = new WoWUnit[amisPlayerList.Count]; long[] patientPv = new long[amisPlayerList.Count]; int offset = 0; foreach (WoWUnit patient in amisPlayerList) { patients[offset] = patient; patientPv[offset] = patient.Health; offset++; } Array.Sort(patientPv, patients); for (int x = 0; x < amisPlayerList.Count; x++) { if (patients[x].GetDistance < 40 && patients[x].IsValid && patients[x].IsAlive) { if (patients[x].HealthPercent < 90) if (patients[x].GetBaseAddress != Cible) { Interact.InteractGameObject(patients[x].GetBaseAddress); break; } else break; } } } Et tu remarque a la ligne 4 que je crée une liste d'amis (grâce a toi ^^), a laquelle je me rajoute a la ligne 5. C'est un peu de la débrouille mais ca marche terriblement bien. L'idée était de rajouter cette possibilité la dans le fightclass Creator de manière officielle. Apres au choix du joueur de l'utiliser ou non... Point 3 : Il s'agit de la classe interract. Les mouvements sont assez complexes dans le sens ou soit un mouvement est inclus, soit un stop tout aussi genant est inclus (avec la correction que tu m'avais proposé récemment : Interact.InteractGameObject(wowUnit.GetBaseAddress, !ObjectManager.Me.GetMove); Existe t il un moyen de cibler sans mouvement du perso, ni meme mouvement de camera ? Autre chose : Existe t il un moyen de bouger la camera en instant, facon canalisation de sort (Lorsque le demono fait drain life par exemple, il fait toujours face a la cible facon instantanée) C'est ce genre de deplacement de camera qui m'interresse. J'ai essayé avec "face" mais ca ressemble trop au mouvement de camera de interact :) Edit : Il y a 4 mois on avait un reel contrôle sur les mouvements pourtant et c'etait bien Interact qui était utilisé. Le phénomène se produit aussi avec les fightclass (Je vient de tester). Bien que le sort est configuré comme pouvant être lancé en mouvement, on a quand même un disgracieux STOP dans notre mouvement lorsque le sort se déclenche. En esperant ne pas trop t'embêter. J'essaye juste de proposer pour arriver a la perfection.
  9. But it would be better if Fight.Infight works better because it's a very usefull command.
  10. Saurais tu faire en sorte de pouvoir cibler celui qui me cible ? (Joueur ou Mob, excepté pet ?) Merci beaucoup (Surtout si tu a le temps)
  11. I think it's the condition " Fight.InFight". She's often not triger On when we are at Duel or at Arena. I don't know why. But to solve that, i simply removed it and all work's fine after that.
  12. Aurais tu une routine magique en C# pour utiliser un objet dans le sac ou un trinket ? Objet dans le sac genre une potion... J'ai vu qu'il y avait un tuto en mode lua mais j'aimerais eviter le lua Ty :)
  13. Tu a raison C'est : Interact.InteractGameObject(); Qui provoque le mouvement, alors que c'est pas censé le faire :( Merci pour ta reponse
  14. En effet le bot manage les mouvements quel que soit etat du bouton.
  15. Il est useless et necessite une action supplementaire (un clic de trop) a chaque demarrage. A la place, un cadre coloré en rouge ou un prtit icone rouge en bas a droit pour signifier que c'est ON serat le bienvenu. En effet, parfois en BG on a besoin d'arreter / relancer wrobot et avoir ce popup ALT+X a chaque demarrage est genant,
  16. Hi The code that you provided is a treasure of new functions and possibilities. But also some others questions appear : 1/ If i use it like a custom class, i put it in folder custom profile, and choose it at "Product settings". But what i'm supposed to load in General settings-Fight class ? 2/ Shall i use a basic file with spells details and rotation attacks with their conditions (without targetting features of course )? 3/ It's a bug or a mistake of my part when the character always run to the target when he get a target (whatever i choose On or Off in Manage character rotation under Wrotation) 4/ Can i do something to avoid getting character running to the target with custom class features (and wrotation) ? I want absolutely keep my total movement control. And like that i can't use it. (Tryed this night ... Totally inusable for me. I can't get control of my movements) 5/ When you created Custom class features, what did you aiming ? A bot doing BG when BG up and farming when BG down ? Or something like that ? I've just discovered The custom class and many new features came with it. There is not enough documentation. Ps : Je suis vraiment impressionné par ta maitrise du codage et la rapidite a laquelle tu pond tes solutions :)
  17. Hello I made a first version. It's looks like ok but there is a little surprise : Wathever i choose On or Off, Manage rotation.... in Wrotation looks always on. Each time i get a target, the character run to it.... not what i want... (also perhaps you can improve my code :) not yet added rotation, only the targetting) Here is my used code : using System; using System.Threading; using System.Windows.Forms; using robotManager.Helpful; using Timer = robotManager.Helpful.Timer; using wManager.Wow.Class; using wManager.Wow.Enums; using wManager.Wow.Helpers; using wManager.Wow.ObjectManager; using Point = System.Drawing.Point; using System.Collections.Generic; using System.Linq; using System.Text; using System.Diagnostics; public class Main : ICustomClass { public float Range { get { return 40; } } private bool _loop; #region Spells public readonly Spell IceLance = new Spell("Ice Lance"); #endregion Spells private Timer _Resume = new Timer(0); public void Initialize() { Logging.Write("Chargement Mage Glace PVP"); List<WoWPlayer> enemyPlayerList; UInt64 lastTarget = 0; _loop = true; while (_loop) { try { enemyPlayerList = ObjectManager.GetWoWUnitHorde(); WoWPlayer[] Cibles = new WoWPlayer[enemyPlayerList.Count]; long[] CiblePV = new long[enemyPlayerList.Count]; int offset = 0; foreach (WoWPlayer adversaire in enemyPlayerList) { Cibles[offset] = adversaire; CiblePV[offset] = adversaire.Health; offset++; } Array.Sort(CiblePV, Cibles); for (int x = 0; x < enemyPlayerList.Count; x++) { if (Cibles[x].GetDistance < 150 && Cibles[x].IsValid && Cibles[x].IsAlive) { Interact.InteractGameObject(Cibles[x].GetBaseAddress); if (ObjectManager.Me.Target == Cibles[x].Guid) { Rotation(); } } } if (_Resume.IsReady) { for (int x = 0; x < enemyPlayerList.Count; x++) { Logging.Write(x + "e Joueur " + Cibles[x].Name + " = " + CiblePV[x] + " Dist " + Cibles[x].GetDistance); } _Resume = new Timer(5000); } } catch (Exception e) { Logging.WriteError("CustomClass > Initialize(): " + e); } Thread.Sleep(15); } _loop = false; } public void Rotation() { } public void Dispose() { Logging.Write("Dispose Fight Class Heal"); _loop = false; } public void ShowConfiguration() { MessageBox.Show("Script pour Moine heal : Mauvaise classe"); } }
  18. Hi and thank you very much for your very quick answer. Yes perhaps you need more informations but you gived me the right answer. I'm working for a script -On battlegrounds a list of ennemy players is build and always updated with their Pv -If several members of this list are at good range, the choosed target will be the lesser PV target and the choosed target will be always targeted first That's why i need this code to target something with his ID. :)) I just want to be more efficient and sometimes to be efficient we must choose the right target.
  19. All is on the title ;) When we are channeling a heal spell with a monk, we can't trigger another heal spell. I've tryed several ways like launch(false, false,true) but no way to channelong and csting a eal spell. An idea ?
  20. Hello I'm looking for a tip to : Attack only a player Target. I have that to avoid neutral targets : if (ObjectManager.Target.IsValid && ObjectManager.Target.Reaction <= Reaction.Neutral && UnitCanAttack.CanAttack(ObjectManager.Target.GetBaseAddress, ObjectManager.Me.GetBaseAddress)) Perhaps we can do better to test if a target is an hostile Player ? --------------------------------------------------------------------------------------------- Anymore, is there a code to target "ObjectManager.Me.Target" ? I've tryed this : Interact.InteractGameObject(ObjectManager.Me.GetBaseAddress); but we can't adapt this with "ObjectManager.Me.Target" So perhaps you have another solution ? Instead of that i use a Lua code to scan targets \targetEnnemyPlayer until obtain the good target. It's not the best choice. Thank you very much :)))
  21. Hi all I have a problem Usually this command : public void FocusBuild() { SteadyShot.Launch(false); } Never stop the bot during launch But in the last release, the bot always stop moving to launch it I think the library was modified and a bug is present now Can you confirm, and fix it pls ? Thank you very much :
×
×
  • Create New...