Hosq / BigWigs

BigWigs is a World of Warcraft AddOn to predict certain AI behaviour to improve the players performance. This Modification is build for Patch 1.12.1 and its content for use on the Lightshope private Server.
24 stars 18 forks source link

Suggestions #2

Closed 0ldi closed 7 years ago

0ldi commented 7 years ago

I have idea, how make classcall module for Hunters on Nefarian. As i know, UseContainerItem function does not require keypress, so: -when classcall coming UseItemByName("fakebow"), after classcall done UseItemByName("mainbow") -user enters the name of main and fake bows into chatboxes in BigWigs options -function UseItemByName("itemname") i found in SuperMacro addon, so need to add it into BigWigs (to working independently of the SuperMacro)... I am not sure what exactly need but I suppose that:

function UseItemByName(item)
    local bag,slot = FindItem(item);
    if ( not bag ) then return; end;
    if ( slot ) then
        UseContainerItem(bag,slot); -- use, equip item in bag
        return bag, slot;
    else
        UseInventoryItem(bag); -- unequip from body
        return bag;
    end
end
function FindItem(item)
    if ( not item ) then return; end
    item = string.lower(ItemLinkToName(item));
    local link;
    for i = 1,23 do
        link = GetInventoryItemLink("player",i);
        if ( link ) then
            if ( item == string.lower(ItemLinkToName(link)) )then
                return i, nil, GetInventoryItemTexture('player', i), GetInventoryItemCount('player', i);
            end
        end
    end
    local count, bag, slot, texture;
    local totalcount = 0;
    for i = 0,NUM_BAG_FRAMES do
        for j = 1,MAX_CONTAINER_ITEMS do
            link = GetContainerItemLink(i,j);
            if ( link ) then
                if ( item == string.lower(ItemLinkToName(link))) then
                    bag, slot = i, j;
                    texture, count = GetContainerItemInfo(i,j);
                    totalcount = totalcount + count;
                end
            end
        end
    end
    return bag, slot, texture, totalcount;
end
function ItemLinkToName(link)
    if ( link ) then
    return gsub(link,"^.*%[(.*)%].*$","%1");
    end
end

Or you can watch into SuperMacro yourself

Hosq commented 7 years ago

This is possible but im not going to make it. If you want you can make it and do a pull request

0ldi commented 7 years ago

Unfortunately, I do not know how to make a saving:

-user enters the name of main and fake bows into chatboxes in BigWigs options

And I do not know how to bind triggering "Classcall incoming" to changing bow function

0ldi commented 7 years ago

Could you improve a little C'Thun module?

  1. Change the orange background color of the words "Close Players" to red (when someone is linked) and green (when no one is linked)
  2. Need stomach tracking. Preferably in the same window as linking, but the separation somehow
  3. It would be nice to make "Close Players" the size of window depending on the length of the longest nickname of the character from the list. Not necessarily, but space saving.
  4. I'm not sure if there is a sound indicator when you're linking with someone. If not, it would be good.

As you probably already guessed, I would like a similar CThunWarner module. Because now, CThunWarner comfortable, the only thing that infuriates is activate it each time you enter the game.