Jump to content

iMod

Elite user
  • Posts

    581
  • Joined

  • Last visited

Everything posted by iMod

  1. is there really a way to use the internal lua function just with "reflection" and without asm?
  2. XML or C# rotation? Alt + X will pause your product. if you want something like alt as toggle button you need to implement something like this:
  3. Just write @Droidz a private message and he will take care of it.
  4. Damn and i thought about to write it :D
  5. what was the reason? may other people with the same problem can fix it, too :)
  6. If you restart everything and the bot will show you the process "in use" a other programm is attached to the game process and might be the problem.
  7. If you restart the game and the bot is there still the entry of your process with "in use"?
  8. So you clicked at the entry in the list and pressed launch and this error pops up?
  9. May you could make a quick screenshot of your problem? that would help alot.
  10. You can setup the 32 mode in your wow launcher. The bot needs wow in 32 mode. After that just start wow and Wrobot.exe and you should be fine.
  11. Was genau ist denn das Problem was du hast das er nicht läuft? Das Forum ist voll von Anleitungen wie man was wie macht und benutzt :) Schau dir die mal an und wenn du dann noch Fragen hast stelle diese einfach im Forum. Nur 32 bit soweit ich das mitbekommen habe.
  12. http://wrobot.eu/forums/forum/10-help-and-support-wrobot/ Just use the search bar
  13. You should take a look at quest profiles or custom profiles. There should be tutorials in the tutorial section about both questing types.
  14. Thanks for you answer but i'm using the focus for the tank so i'm not able to use your way. I wrote another method for it wich works fine. The only problem i noticed is that i always need a target to get the bot starting the routine. If i dont have a target the bot does nothing. Heal method: /// <summary> /// Cast a heal /// </summary> /// <param name="spell">The heal you want to cast</param> /// <param name="target">The target you want to heal</param> /// <param name="healthProcent">The health procent we want to heal</param> /// <param name="buffTimeLeft">Recast if buff is under the given time</param> /// <param name="stacks">How much stacks you want at the target</param> /// <param name="debuff">The debuff we are looking for</param> /// <param name="owner">Flag that determines if we need to be the owner</param> /// <returns>Returns true if we can cast the spell otherwise false</returns> public static bool CastHeal(Spell spell, WoWUnit target, int healthProcent, int buffTimeLeft = 0, int stacks = 0, Spell debuff = null, bool owner = true) { // Need heal? if (target.HealthPercent > healthProcent) { // Skip return false; } // Wait until global cooldown is done Thread.Sleep(SpellManager.GlobalCooldownTimeLeft()); bool hasDebuff; if (debuff != null) { hasDebuff = Functions.HasBuff(debuff, target, buffTimeLeft, stacks, owner); } else { hasDebuff = Functions.HasBuff(spell, target, buffTimeLeft, stacks, owner); } // Validate spell if (!ObjectManager.Me.IsStunned && !ObjectManager.Me.IsDead && !ObjectManager.Me.IsCast && !target.IsDead && spell.KnownSpell && spell.IsSpellUsable && spell.IsDistanceGood && !hasDebuff) { if (target.Guid == ObjectManager.Me.Guid) { // Cast on self Lua.LuaDoString($"CastSpellByID({spell.Id}, \"player\")"); } else { // Cast on target Lua.LuaDoString($"CastSpellByID({spell.Id}, \"{target.Name}\")"); } // Log Logging.WriteDebug($"Cast: {spell.NameInGame}"); // Return return true; } // Return return false; } HasBuff method: /// <summary> /// Determines if the given target has the buff with the given conditions /// </summary> /// <param name="spell">The spell you want to check</param> /// <param name="target">The target you want to check</param> /// <param name="buffTimeLeft">Recast if buff time is under the given time</param> /// <param name="stacks">How much stacks you want at the target</param> /// <param name="owner">Flag that determines if we need to be the owner</param> /// <returns>Returns true if the target has the spell on it with the given conditions otherwise false</returns> public static bool HasBuff(Spell spell, WoWUnit target, int buffTimeLeft = 0, int stacks = 0, bool owner = true) { // Get target auras List<Aura> auraList = target.GetAllBuff(); // Get aura Aura aura = null; if (owner) { // Set aura = auraList.Where(s => s.ToString().Contains(spell.Name) && s.Owner == ObjectManager.Me.Guid).FirstOrDefault(); } else { // Set aura = auraList.FirstOrDefault(s => s.ToString().Contains(spell.Name)); } // Any found? if (aura != null) { // Validate if (aura.TimeLeftSeconde > buffTimeLeft && aura.Stack >= stacks) { // Return return true; } } // Return return false; } Hope it will help some people who dealing with stuff like that :) Info: It wont work with copy & paste, you need to correct some lines, i'm sorry for that but this are just snippets out of my own framework.
  15. I tried CastSpellByID(spellID, "targetName") sometimes it works but sometimes it is doing strange stuff and target my toon or is casting at my current target. May someone got a idea how i can realize it lie healbot for example that i don't need a target selected to heal it? UPDATE: I found a solution for it but my problem now is that the bot only starts healing if he has a target doesn*t matter what. Any tipps?
  16. I have no clue why my old method stoped working but i found a mistake in the new one and the problem is solved now. Thanks for your time. If you want you can delete the thread.
  17. SpellName: Frost Fever I'll check that later again and report. Stange now it works for some reasons.... sorry for the trouble -.- You can delete the post.
  18. Well failure detected... stacks is not working anymore after the update. Reported.
  19. i wrote a small method for it, may it helps someone. Not tested yet but should work in the theory. /// <summary> /// Determines if the given target has the buff with the given conditions /// </summary> /// <param name="spell">The spell you want to check</param> /// <param name="target">The target you want to check</param> /// <param name="buffTimeLeft">Recast if buff time is under the given time</param> /// <param name="stacks">How much stacks you want at the target</param> /// <param name="owner">Flag that determines if we need to be the owner</param> /// <returns>Returns true if the target has the spell on it with the given conditions otherwise false</returns> public static bool HasBuff(Spell spell, WoWUnit target, int buffTimeLeft = 0, int stacks = 0, bool owner = true) { // Get target auras List<Aura> auraList = target.GetAllBuff(); // Get aura Aura aura = null; if(owner) { // Set aura = auraList.SingleOrDefault(s => s.GetSpell.Id == spell.Id && s.Owner == ObjectManager.Me.Guid); } else { // Set aura = auraList.FirstOrDefault(s => s.GetSpell.Id == spell.Id); } // Any found? if (aura != null) { // Validate if (aura.TimeLeftSeconde > buffTimeLeft || aura.Stack >= stacks) { // Return return true; } } // Return return false; } My brain is fked up a bit, so i can be possible that the conditions are not 100% right.
  20. Thanks i was hoping that i dont need to change my methods but thanks for the hint about the auras.
  21. Hello, i try to detec if the target has frostfever from me and everything was fine until the update. Pseudocode: if(!ObjectManager.Me.TargetObject.BuffCastedByAll(FrostFever.Name).Contains(ObjectManager.Me.Guid)) { use spell.... } resul = it is spamming frostfever Thanks in advance, iMod
  22. I'm testing the stuff with an alt account or dungeons but i'm just at a private server
  23. Yeah sometimes it takes some time if he is busy in real life. the problem at the moment is that you tried to use an old offical version with a private server key. that wont work.
  24. Well this is a version that is not really supported as far i know but i can be wrong. Write @Droidz a message, he can help you.
  25. Yeah i saw it, the code is kinda messi no offense. What part doesn't work maybe i can help you out.
×
×
  • Create New...