Need help with macro for selling to vendor menu

User Tag List

Results 1 to 2 of 2
  1. #1
    djanius's Avatar Member
    Reputation
    9
    Join Date
    Nov 2009
    Posts
    12
    Thanks G/R
    4/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need help with macro for selling to vendor

    Good day to all.
    Please help me with macro to sell things from bags to vendor, sale should be in parts, for example 5 items at a time, because server has a limit on mass sale, when trying to use macro to sell all things throws out of the game.
    I have a macro that sells everything at once, please help to remake it.

    Code:
    /run for bag=0,4,1 do for slot=1, GetContainerNumSlots(bag),1 do local name=GetContainerItemLink(bag,slot); if name and string.find(name,'ff9d9d9d') then UseContainerItem(bag,slot) end; end; end;
    Wow version 1.12.1. Server lightshope.

    Thank you in advance for your help!


    P.S. Sorry for my english

    Need help with macro for selling to vendor
  2. #2
    djanius's Avatar Member
    Reputation
    9
    Join Date
    Nov 2009
    Posts
    12
    Thanks G/R
    4/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Understood himself. I had to write an addon that sells things at a set interval of time. Lay out, can anyone come in handy. I'm not a connoisseur in WoW programming, but how much I figured out, wrote so much, main thing that works. There is one problem, during the sale of things, the entire WoW interface hangs while the script is running. Can someone tell me how to make a delay without hanging the game interface.

    Wait(sec) function:
    Code:
    function My_Wait(sec)
    local My_currentTime = GetTime();
    while ( My_currentTime + sec > GetTime() ) do
    -- here we do not write anything
    end
    end
    Selling Function: (Called from XML file in opening event of vendor window)
    Code:
    function sellthings()
        
    for i = 1,8 do UseContainerItem(0,i) end
    My_Wait(1) -- enter time in seconds
    for i = 9,16 do UseContainerItem(0,i) end
    My_Wait(1)
    for i = 1,6 do UseContainerItem(1,i) end
    My_Wait(1)
    for i = 1,6 do UseContainerItem(2,i) end
    My_Wait(1)
    for i = 1,6 do UseContainerItem(3,i) end
    My_Wait(1)
    for i = 1,6 do UseContainerItem(4,i) end
    end
    Made this addon for myself, i think you will understand with slots of bags

    P.S.
    Once again i apologize for my english
    Last edited by djanius; 11-26-2017 at 03:26 AM.

  3. Thanks Deepoly (1 members gave Thanks to djanius for this useful post)

Similar Threads

  1. i need help with adding azshara crater to my server
    By trujillo in forum WoW EMU Questions & Requests
    Replies: 4
    Last Post: 09-24-2009, 03:46 PM
  2. Replies: 3
    Last Post: 04-27-2009, 03:06 PM
  3. Need Help With Program For Scam Paying $50
    By [Royal] in forum WoW Scams Help
    Replies: 1
    Last Post: 09-19-2008, 08:36 PM
  4. Need help with wifi leecher close to my house.
    By ghoulio in forum Community Chat
    Replies: 9
    Last Post: 11-30-2007, 05:45 AM
  5. Need help with making a portal to Alterac Valley WILL GIVE REP IF YOU HELP
    By mafiaboy in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 10-24-2007, 09:52 PM
All times are GMT -5. The time now is 02:23 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