disenchant question by mailman

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

disenchant question by mailman

#1 Post by lisa » Tue Jun 21, 2011 8:06 pm

So really looking around and didnt see anything like this. Is there a bot that just stands and buys items, then disenchants them? I tried to work on something, but i dont have RoM here, so its patched together just with some ideas i had from other people on the forum. If someone could help me out or offer some pointers that would be great! Thanks.

Code: Select all

player.free_counter1 = 0
player:openStore(_npcname, _option);

inventory:update()
  while inventory:getItemCount("Apprentice Boots") > inventory:itemTotalCount("<EMPTY>","bags")
    inventory:storeBuyItem("Apprentice Boots");
    player.free_counter1 = player.free_counter1 + 1;
end

while ( player.free_counter1 > 0 )
     -- run disenchant macro... not sure what to use for this
     rest( 3550 );
     player.free_counter1 = player.free_counter1 - 1;
     -- takes about 3.5 seconds to disenchant an object
     -- maybe have it fire this macro
  
end

Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

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

Re: disenchant question by mailman

#2 Post by rock5 » Wed Jun 22, 2011 8:17 am

I don't think you need the counter. You can just count the items. I think I would do it like this.

Code: Select all

player:openStore(_npcname, _option);

-- inventory:update() -- not needed. getItemCount updates the inventory.
-- while inventory:getItemCount("Apprentice Boots") > inventory:itemTotalCount("<EMPTY>","bags")-- not sure what you mean here
while 1 > inventory:itemTotalCount("<EMPTY>","bags") do -- fills bag with items
	inventory:storeBuyItem("Apprentice Boots");
end

while ( inventory:getItemCount("Apprentice Boots") > 0 ) do
	-- run disenchant macro... not sure what to use for this
	-- Find some boots
	local boots = inventory:findItem("Apprentice Boots")
	-- Use Disenchant skill
	RoMScript("UseSkill(1,3)") -- Make sure your Disenchant is on tab 1, skill 3.
	-- Clicks the item
	RoMScript("PickupBagItem("..boots.BagId..")") 
	rest( 3550 );
end
  • 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

mailman
Posts: 1
Joined: Mon Jun 20, 2011 2:15 pm

Re: disenchant question by mailman

#3 Post by mailman » Wed Jun 22, 2011 10:27 am

Great thanks! ill have to try it out!

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests