What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

About Using an Item

turbocross

New Member
Joined
Mar 23, 2010
Messages
231
Reaction score
0
Hi, I'm currently farming some motes and as my bags get full I'd like my character to use the motes to make them into primals. How can I do this?

I know to use items using:
Code:
        private WoWItem MoteofMana
        {
            get
            {
                return HaveItemCheck(22576);
            }
        }

        private uint tmpMoteofManaCount
        {
            get
            {
                uint tmpMoteofManaCount = 0;

                Lua.DoString("luaMoteofManaCount = GetItemCount(22576)");

                tmpSoulShardCount = Lua.GetLocalizedUInt32("luaMoteofManaCount", ObjectManager.Me.BaseAddress);

                if (tmpMoteofManaCount > 9)
                {
                    slog("Mote of Mana: " + tmpMoteofManaCount.ToString() + ".");
                    Lua.DoString("UseItemByName(\"" + MoteofMana.Name + "\")");
                    Thread.Sleep(600);
                }
                return tmpMoteofManaCount;
            }

I use the above but HB never loads my CC after I input this code as it always says no CC loaded.
 
Umm, I just searched for tinybag and 'tiny bag' but both searches didn't come up with any addon.

Do you have a link?
 
Try this:

Code:
        public static void ConsolidateBagSpace()
        {
            foreach (WoWItem i in (from i in ObjectManager.GetObjectsOfType<WoWItem>()
                                   let n = i.Name
                                   where i.IsOpenable && i.ItemInfo.BookPages == 0 && i.ItemInfo.RequiredSkillId == 0 &&
                                   !i.Name.StartsWith("Eternal") && !i.Name.StartsWith("Primal")
                                   select i))
            {
                i.Interact();
            }
        }

It's pretty much what TinyBags did. (Just opens anything openable in your bags, excluding primals, and eternals.) It'll consolidate bag space. (Stack motes, open clams, bags, etc.) I have no idea if it works properly (might have issues with locked boxes, etc) but it should work.

Edit: quick edit to avoid the lockpicking bug I spoke about above.
 
How about the addon?

I dont' wanna risk going into the CC and changing things then having it mess up.

I'll have to do that after studying more about it ;o
 
Try this:

Code:
        public static void ConsolidateBagSpace()
        {
            foreach (WoWItem i in (from i in ObjectManager.GetObjectsOfType<wowitem>()
                                   let n = i.Name
                                   where i.IsOpenable && i.ItemInfo.BookPages == 0 && i.ItemInfo.RequiredSkillId == 0 &&
                                   !i.Name.StartsWith("Eternal") && !i.Name.StartsWith("Primal")
                                   select i))
            {
                i.Interact();
            }
        }

While this is small&simple i think its too simple.
Name.StartsWith("Eternal") , doesnt that fail if you are using a russian game client or something else that isnt english?

</wowitem>
 
Back
Top