Jump to content

iMod

Elite user
  • Posts

    581
  • Joined

  • Last visited

Everything posted by iMod

  1. It is, I allready started such project but it will take some time since its just a fun project and its not directly made for wrobot.
  2. Would take more time to convert them than creating them new. Those profiles are a mess. They'r using different xml notes for the same action/thing.
  3. ! negates the actually state of the boolean. bool variable = true; "!variable" = false "variable == !variable" will set allways the opposit of the current state. MSDN Sample: class MainClass4 { static void Main() { Console.WriteLine(!true); Console.WriteLine(!false); } } /* Output: False True */ I highly recommend to read some C# basics and you will see it makes a lot more fun to work with.
  4. Are you talking about your current target? ObjectManager.Me.TargetObject.HaveBuff(1234); or targets around you? ObjectManager.GetObjectWoWUnit().Any(u => u.HaveBuff(1234));
  5. It is a plugin that you have to copy in the plugin folder. After that you just need to activate the plugin and you can use it with anything.
  6. How about Party.GetParty(); ?
  7. Kinda easy, just get an existing profile and take a look at it to understand the struncture. Do the same with HB one and now you are able convert the HB profile to a WRobot one. At the end its just XML without any magic as far i remember. EDIT: There is also a search button that can help you
  8. HB profiles are a mess in their structure. It won't be possible to convert them to 100% there will be always something you need to fix and this will take more time as making them new.
  9. Versuchen wir es mal anders ;) Schreib mir einfach mal ein paar Fragen und ich schaue ob ich sie dir beantworten kann. Realisieren kannst du eigentlich alles nur ob es sich lohnt die alten Sachen zu benutzen oder etwas neues zu machen ist dann die andere Frage.
  10. tonumber(WowLuaDoLocalizedString(luacode, 'francymax'))==1 then To Lua.DoString<int>(luacode, "francymax") == 1 then Since you are just looking for a boolean you also could make it like this function isFrencyStack5() luacode = "francymax = 0; for i=1,40 do local _,_,_,c,_,_,_,_,_,_,s = UnitAura('player',i); if s==19615 and c==5 then francymax = 1 break end end" return Lua.DoString<int>(luacode, "francymax") == 1; // Or as bool since its 0 or 1 return Lua.DoString<bool>(luacode, "francymax"); end
  11. Oh damn i had the same problems y.y thats why i switched over to lua ingame detection. This will be a part for Driodz.
  12. readonly KeyboardHook _hookKeybinding = new KeyboardHook(); public InitMethod() { _hookKeybinding.KeyPressed += (object sender, KeyPressedEventArgs e) => { Logging.Write("Key was pressed!"); }; _hookKeybinding.RegisterHotKey(ModifierKeys.Shift, Keys.Insert); } Something like this is not working for you?
  13. There is no documentation available and wont be i guess.
  14. Oh i see then i'm out i have no clue about vanilla and what kind of function it has.
  15. Abuse the focus as target. Set your focus target by your self and cast the spell at it. /// <summary> /// Sets the target as focus target and executes the given method /// </summary> /// <param name="action">The method we want to execute</param> public static void SetAsFocusTarget(WoWUnit target, Action action) { if (ObjectManager.Me.FocusGuid != target.Guid) { // Hold old target ulong oldFocusTarget = ObjectManager.Me.FocusGuid; // Set focus target ObjectManager.Me.FocusGuid = target.Guid; // Call action action.Invoke(); // Set old focus ObjectManager.Me.FocusGuid = oldFocusTarget; } else { // Call action action.Invoke(); } } // Dummy unit WoWUnit unit = new WoWUnit(1); SetAsFocusTarget(unit, () => new Spell("SpellName").Launch(true, true, false, "focus"));
  16. Give MovementManager.StopMove() a try and double check your return value, false if he was casting looks kinda strange.
  17. Yes i just tried to demonstrate what the expression does in the background. The first one is with expression and the other one without.
  18. List<WoWUnit> units = new List<WoWUnit>(); // Short version IEnumerable<WoWUnit> sortedUnits = units.Where(u => u.Health < 10); // Long version List<WoWUnit> sortedUnits = new List<WoWUnit>(); foreach(WoWUnit unit in units) { // Validate if(unit.Healt < 10) { // Add unit sortedUnits.Add(unit); } } Hope it explains it a bit. At the end the compiler won't do something else.
  19. Copy wow to another location and delete the following folders: Cache Interface Logs WTF Utils\cache Utils\logs
  20. Just change the dx version in your launcher to 9 and give it a try.
  21. Do you changed the directX version to 9?
  22. ObjectManager.Pet.IsValid May that helps.
  23. frost nova is a spell that you need to click right? if yes make sure that you set in the setting on terrain or something like this i actually don't know the correct name of the setting
  24. Not as far i know. I would create a small tcp/ip server and client to communicate to each other. Just take a look at google and search for "C# client server" or "C# chat application" this should bring you up some ideas.
×
×
  • Create New...