Matenia
Elite user-
Posts
2230 -
Joined
-
Last visited
Content Type
Forums
Articles
Bug Tracker
Downloads
Store
Everything posted by Matenia
-
-
-
@Marsbar you can do this completely automatically: Lua.LuaDoString(@" if GetItemInfoFromItemLink ~= nil then return end function GetItemInfoFromItemLink(link) local itemId = nil; if ( type(link) == 'string' ) then _,_, itemId = string.find(link, 'item:(%d+):'); if (itemId) then local version, build, date = GetBuildInfo(); if (tonumber(build) > 5875) then local itemName, itemLink, itemQuality, itemLevel, itemMinLevel, itemType, itemSubType, itemCount, itemEquipLoc, itemTexture = GetItemInfo(itemId); return itemName, itemLink, itemQuality, itemLevel, itemType, itemSubType, itemCount, itemTexture; else return GetItemInfo(itemId); end end end end "); uint quiverSlotCount = Lua.LuaDoString<uint>(@" for slot = 20,23 do local link = GetInventoryItemLink('player', slot); if link then then local itemName, itemLink, itemQuality, itemLevel, itemType, itemSubType, itemCount, itemTexture = GetItemInfoFromItemLink(link); if itemType == 'Quiver' then return GetContainerNumSlots(slot - 19); -- gets back slot end end end "); Works at least vanilla => WotLK. So you can turn that into a free plugina nd post it here :)
-
Creature type of WoWUnit
Matenia replied to Findeh's topic in WRobot for Wow Vanilla - Help and support
You can do the focus part in vanilla by using mouseover as the unit and writing the mouseover guid into memory. Use my vanilla fightclass framework as an example -
Creature type of WoWUnit
Matenia replied to Findeh's topic in WRobot for Wow Vanilla - Help and support
Updated my code example -
-
Creature type of WoWUnit
Matenia replied to Findeh's topic in WRobot for Wow Vanilla - Help and support
List.Any(unit => unit.CreatureTypeTarget == "Humanoid" ) Basically like that (pseudo code) -
-
You should try it in the wRobot dev tools and to test it you can use: for i=1,40 do local name, rank, iconTexture, count, debuffType, duration, timeLeft = UnitDebuff('player', i); if debuffType == 'Disease' then hasDebuff = true break; end end DEFAULT_CHAT_FRAME:AddMessage(hasDebuff and 'true' or 'false')
-
Include ingame macros into Fightclass
Matenia replied to Lowky's topic in WRobot for Wow Vanilla - Help and support
buffed("Moonfire", "target") does not exist. You're trying to use some functions that are either PQR and not proper Lua or from within an addon that wRobot might not have access to UseAction should use the macro regardless of its contents (but then throw an error, potentially). Also what you're doing, starting with /script or /run are technically "macros" in that they execute Lua only after the "/run" portion. Edit: After re-reading it seems that this might be due to wRobot's Lua protection (so it doesn't get caught for unlocking). Unsure why this would cause issues. -
Include ingame macros into Fightclass
Matenia replied to Lowky's topic in WRobot for Wow Vanilla - Help and support
If that works, then UseAction(1) should work and press the button in that action slot. If you are using custom action slots through addons, DON'T. -
Include ingame macros into Fightclass
Matenia replied to Lowky's topic in WRobot for Wow Vanilla - Help and support
Shouldn't be a problem. Try DEFAULT_CHAT_FRAME:AddMessage('test message ingame') and see if it prints anything in your chat frame -
Include ingame macros into Fightclass
Matenia replied to Lowky's topic in WRobot for Wow Vanilla - Help and support
Does it throw a Lua error ingame? Otherwise you could put the macro on an action slot, then use UseAction(1) http://wowwiki.wikia.com/wiki/API_UseAction?oldid=181130 -
Include ingame macros into Fightclass
Matenia replied to Lowky's topic in WRobot for Wow Vanilla - Help and support
RunMacro takes an id, not a name. And yes, you need to activate "not spell, is lua script" for that particular one. -
Pathing -How can we make it look less suspicious?
Matenia replied to hearthstoner's topic in Grinder assistance
-
[PAID] Affliction/Demonology Warlock 1-60
Matenia commented on Matenia's file in Fight Classes - Vanilla
-
Include ingame macros into Fightclass
Matenia replied to Lowky's topic in WRobot for Wow Vanilla - Help and support
https://wow.gamepedia.com/API_RunMacro it's a simple Lua call -
Version 1.2
148 downloads
Plugin that automatically makes you walk to the warlock pet trainer, buy the books and learn them - but only if you are within 800 yards (so right after regular training). You can adjust the code for this yourself. The "Entry" (Id for your pet) might change depending on the server, but in my tests Imp has always been 416. Voidwalker can vary - so you might need to adjust this yourself. You can get the current entry by summoning Voidwalker and using development tools in wRobot to get ObjectManager.Pet.Entry. This will be included in the next HMP release. -
[All] ItemsManager.GetItemCountByNameLua is incorrect
Matenia commented on Matenia's bug report in Bug Tracker
I forgot string.match is not in vanilla, this works across vanilla-wotlk: public static int GetItemCount(string itemName) { string countLua = $@" local fullCount = 0; for bag=0,4 do for slot=1,36 do local itemLink = GetContainerItemLink(bag, slot); if (itemLink) then local _,_, itemId = string.find(itemLink, 'item:(%d+):'); if (GetItemInfo(itemId) == ""{itemName}"") then local texture, count = GetContainerItemInfo(bag, slot); fullCount = fullCount + count; end end end end return fullCount;"; return Lua.LuaDoString<int>(countLua); } -
Sunwell Bot Error
Matenia replied to potsy123's topic in WRobot for Wow The Burning Crusade - Help and support
As far as I know, the IsSitting boolean has never existed. So basically your fightclass is throwing errors because it's not for tbc -
It's a bug with the free auto choose food and drink plugin it seems. Make sure it's up to date. If it is, I'll have to fix this on Monday when I get back home.
-