-
Posts
581 -
Joined
-
Last visited
Content Type
Forums
Articles
Bug Tracker
Downloads
Store
Everything posted by iMod
-
XML: no clue C#: // Get unit in range and lowest health float distance = 10; WoWUnit unit = ObjectManager.GetWoWUnitHostile().OrderBy(u => u.HealthPercent).FirstOrDefault(u => u.GetDistance <= distance); // Any unit? if (unit != null && unit.IsValid) { // Interact Interact.InteractGameObject(unit.GetBaseAddress); } This will target and interact with a target that is in range of 10 and has the lowest health. (untestet)
-
i'm not sure if i understood the question right but if you want to use such items or spells here is an example in c# ClickOnTerrain.Spell(SpellID, this.Me.TargetObject.Position); ClickOnTerrain.Item(ItemID, this.Me.TargetObject.Position); I think it is not possible to auto detec if the item needs a cursor or not but i never took a look at such scenario.
-
Yeah would be nice if we had a list with all changes and not just the "big" one. Like the change that there are now 10 objects in the quest profile and not 5 anymore. I'm working at some tools and it is like try and error if we have no full change list.
-
// Get target you want to WoWUnit target = any target you want // Target the target Interact.InteractGameObject(target.GetBaseAddress, !ObjectManager.Me.GetMove); This would be one way how you target something.
-
how to cast paralysis on focus or on other non target unit
iMod replied to thejm's topic in Fight Classes assistance
At the end take a look at the wowapi there is alot you can do. -
You tried it in a raid (not dungeon) group as leader?
-
try it out and if yes it also should be possible to use lua(wowapi).
-
Are addons working at that server?
-
if i'm not wrong it is impossible if you are not able to use the wowapi. Are you playing at the offical or private server?
-
If you want to swap, you can use the wow api http://wowwiki.wikia.com/wiki/API_SetRaidDifficulty
-
Do you really need to swap or is it enough to reset the instance? You could use the chat plugin to reset it via lua " ResetInstances()"
-
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.
-
You should maybe add some more validations like "is target in range" or "is target visible" this is kinda just the basic
-
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.
-
Movement stuck detection too sensitive for Caster
iMod commented on Runaro's bug report in Bug Tracker
Same problem here. Seems that it ignores "IsCasting". -
How to get the UnitID out of the WoWUnit object
iMod replied to iMod's topic in Developers assistance
This will be my first try ;) if someone has another idea just let me know GetUnits(int range) is a method that returns a list of all mobs around you. The goal is to check those mobs if we own 100% threat and if not we will interact with them if we still don't have them in the target. /// <summary> /// Switch to the target with the lowest threat /// </summary> /// <param name="range">The range we want to search for</param> public static void SwitchTargetByThread(int range) { Dictionary<WoWUnit, int> targets = GetUnits(range).ToDictionary(t => t, t => GetThreat(t)); targets.OrderBy(t => t.Value); // Skip? if (targets.All(t => t.Value == 100)) { return; } // Get target with the lowest threat KeyValuePair<WoWUnit, int> target = targets.FirstOrDefault(); // Any target and is not our current target? if (target.Key != null && !target.Key.IsMyTarget) { Logging.WriteDebug($"Switching target: {target.Value}% threat."); // Target the mob Interact.InteractGameObject(target.Key.GetBaseAddress, !ObjectManager.Me.GetMove); } } /// <summary> /// Switch to the target with the lowest threat /// </summary> /// <param name="range">The range we want to search for</param> public static void SwitchTargetByThread(int range) { Dictionary<WoWUnit, int> targets = GetUnits(range).ToDictionary(t => t, t => GetThreat(t)); targets.OrderBy(t => t.Value); // Skip? if (targets.All(t => t.Value == 100)) { return; } // Get target with the lowest threat KeyValuePair<WoWUnit, int> target = targets.FirstOrDefault(); // Any target and is not our current target? if (target.Key != null && !target.Key.IsMyTarget) { Logging.WriteDebug($"Switching target: {target.Value}% threat."); // Validate target if (target.Key.IsValid && !target.Key.IsDead) { // Target the mob Interact.InteractGameObject(target.Key.GetBaseAddress, !ObjectManager.Me.GetMove); } } } -
How to get the UnitID out of the WoWUnit object
iMod replied to iMod's topic in Developers assistance
Thanks i will try it later. -
I'm trying to get the UnitID from my UnitObject to get the threat public static int GetThreat(WoWUnit target) { return Lua.LuaDoString<int>($"local _, _, threatpct, _, _ = UnitDetailedThreatSituation(\"player\", \"{target.Guid}\"); return threatpct;"); } Hope someone can give me a clue what Guid means and BaseAddress.
-
Well in the theory you could create a plugin that checks the durability of each equiped item in a specified interval Lua: current, maximum = GetContainerItemDurability(bag, slot); Pseudo: foreach item if the item is under durability % use hearthstone
-
1-is it work 64 bit -> No (Edit. Thought you mean the host system) 2-is the combat routines good -> If you have special needs you need to create your own one. 3-is it make fps down ? Sometimes but not verry often
-
You could ask BetterSister to create you something for money or maybe someone else is able to work for you. Nothing is for free you know? ;)
- 9 replies
-
- tank
- conditions
-
(and 1 more)
Tagged with:
-
Was genau möchtest du wissen?
-
Just post it and let the community check it ;) i'm just interessted at 3.3.5a stuff.