[MACRO] Vendor Value of all items in Inventory menu

User Tag List

Results 1 to 2 of 2
  1. #1
    Novalok's Avatar Contributor
    Reputation
    166
    Join Date
    Oct 2006
    Posts
    213
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [MACRO] Vendor Value of all items in Inventory

    Now this requires a very specific setup and im using it for Archeology Botting, Its prob not the best way to handle this but was fun to learn how to do it so here it goes.
    This is a compileation of 6 macros. The first 5 have to be set on the Bottom Left Actionbar that is enabled in the Interface menu. Macro 6 can be anywhere

    Macro1:
    Code:
    /run  part1 = ("itemids = {};itemcount = {}; v=0 for i=0,4 do for j=1,GetContainerNumSlots(i)do n=(GetContainerItemLink(i,j)or'') if(not n:find ('fdf')) then do itemcount[v] = select(2,GetContainerItemInfo(i,j)) do itemids[v] = ");
    /click ActionButton2
    Macro2
    Code:
    /run part2 = ("GetContainerItemID(i,j) v = (v+1) end end end end end;");/click ActionButton3
    Macro3
    Code:
    /run value = 0;
    /run RunScript(part1 .. part2);
    /click ActionButton4
    Macro4
    Code:
    /run i=0; k=#itemcount;ic=0; while i <= k do value = (value+(select(11,GetItemInfo(itemids[i]))*itemcount[i])) i=(i+1) end ;
    /click ActionButton5
    Macro5
    Code:
    /script 
    /run SendChatMessage(("I have %dg %ds %dc"):format(value / 100 / 100, (value / 100) % 100, value % 100), "WHISPER", "ORCISH", "Novaior");
    /run value=0;
    /changeactionbar 1
    Macro6
    Code:
    /changeactionbar 6
    /click MultiBarBottomLeftButton1
    Check it out and let me know what you think, also taking all macro requests and if you can make this cleaner im up for suggestions

    [MACRO] Vendor Value of all items in Inventory
  2. #2
    Devanh's Avatar Contributor
    Reputation
    199
    Join Date
    Apr 2012
    Posts
    381
    Thanks G/R
    60/25
    Trade Feedback
    4 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you were to remove all the /click and /changeactionbar lines, you could put macros 1-5 in the same macro if you use an addon that will allow longer macro scripts. You can probably find one of those elsewhere on the forums - but it would help to save some space on the actionbars.

Similar Threads

  1. Gearscore / anything good check of all items in inventory?
    By tuiv in forum Diablo 3 Bots Questions & Requests
    Replies: 1
    Last Post: 12-22-2012, 12:20 PM
  2. [Macro] Mail or Trade All (specified item)
    By !iMacroMage! in forum WoW UI, Macros and Talent Specs
    Replies: 0
    Last Post: 07-18-2009, 09:23 PM
  3. Zul' Aman Vendors =-All Items-=
    By LJN in forum World of Warcraft Emulator Servers
    Replies: 12
    Last Post: 12-05-2007, 03:00 PM
  4. [TIP] Macro Vendor
    By Chief in forum World of Warcraft Guides
    Replies: 9
    Last Post: 12-01-2007, 03:20 PM
  5. sweet macro for rep turn in items
    By Elephant in forum World of Warcraft General
    Replies: 5
    Last Post: 10-01-2007, 08:53 PM
All times are GMT -5. The time now is 12:05 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search