Auto selling

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
Uniden65
Posts: 151
Joined: Thu Aug 20, 2009 5:17 pm

Auto selling

#1 Post by Uniden65 » Sun Apr 01, 2012 5:38 pm

I know there is a "IGNORE" option in profile so u dont sell somethings u need but is there a AUTOSELL option where it will just sell the item u have flaged ...i did not see that any where here on the fourm ? so would this statment below be true ?


<option name="INV_AUTOSELL" value="Armor Short Axe" />
<option name="INV_AUTOSELL" value="Spell Shield" />
<option name="INV_AUTOSELL_IGNORE" value="Amulet of Light" />


DOES NOT WORK


<option name="INV_AUTOSELL_STATS_SELL" value="Armor Short Axe" />
<option name="INV_AUTOSELL_STATS_SELL" value="Spell Shield" />
<option name="INV_AUTOSELL_STATS_SELL" value="Spirit Herb" />


Tryed many combinations from this page http://www.solarstrike.net/wiki/index.p ... uto_repair
but eather way u cant just get the bot to sell the items Named .....I think this would be good because everyone uses some kind of Junk pick up tool where it should not pick up what u flag on the addon ...so if iam flaging garbage and i want to sell only the higher priced items in my inventory (the ones i picked up) it would be nice that it did not sell the whole back pack but just Armor Short Axe ...or ect.

also tryed many combination of selling items in my bag ...nothing sells to vendor?

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Auto selling

#2 Post by rock5 » Sun Apr 01, 2012 8:23 pm

Selling only named items is practically never needed. I don't think there is any need to add an option for it. That said, this is how I would manually do it.

Code: Select all

local itemList = {"item one","item two"}
if player:openStore("npcname") then
    for slot = 61, 120 do -- first 2 bags
        local item = inventory.BagSlot[slot]
        for k,v in pairs(itemList) do
            if v == item.Name then
                item:use()
                -- add a yrest here if it goes too fast and doesn't work.
            end
        end
    end
end
Or maybe you could just go

Code: Select all

if player:openStore("npcname") then
    while inventory:findItem("item one") do inventory:useItem("item one") end
    while inventory:findItem("item two") do inventory:useItem("item two") end
end
First code is more efficient but longer. Second code is simpler but repeats many searches so is probably slower.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

Uniden65
Posts: 151
Joined: Thu Aug 20, 2009 5:17 pm

Re: Auto selling

#3 Post by Uniden65 » Sun Apr 01, 2012 8:25 pm

thanks Rock5 .....

ill give them all a try see what happens ....

Uniden65
Posts: 151
Joined: Thu Aug 20, 2009 5:17 pm

Re: Auto selling

#4 Post by Uniden65 » Sun Apr 01, 2012 8:32 pm

Thanks Rock5 again you know your shit ......

works great

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests