Question: Using Simple Repair Hammer

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
ctrlaltdelete
Posts: 7
Joined: Thu Oct 20, 2011 2:00 am

Question: Using Simple Repair Hammer

#1 Post by ctrlaltdelete » Thu Oct 20, 2011 2:14 am

Is there a way to use a Simple Repair hammer on your main hand weapon (or off hand / bow) when the durability reaches a certain value?

It is not always conveniate to head back to a repair guy when I'm far out.

Thanks

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

Re: Question: Using Simple Repair Hammer

#2 Post by rock5 » Thu Oct 20, 2011 3:14 am

When main hand durability is below 'a certain value'

Code: Select all

if 80 > inventory:getMainHandDurability() then
Use the Simple Repair hammer.

Code: Select all

inventory:useItem("Simple Repair Hammer")
On the main hand weapon (thats a left click so like picking up)

Code: Select all

RoMScript("PickupEquipmentItem(15);"); -- I think in the game, main hand is 15.
You probably want to make sure you have hammers first or you could end up disarming yourself.

So

Code: Select all

if 80 > inventory:getMainHandDurability() then
    if inventory:itemTotalCount("Simple Repair Hammer") > 0 then
        inventory:useItem("Simple Repair Hammer")
        yrest(1000)
        RoMScript("PickupEquipmentItem(15);"); -- I think in the game, main hand is 15
    else
        -- Maybe here you could head back for repairs seeing as you are out of hammers
    end
end
Then just put it somewhere to execute regularly like the OnLeaveCombat section.

This is untested so watch it the first time to make sure it works.
  • 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

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Question: Using Simple Repair Hammer

#3 Post by lisa » Thu Oct 20, 2011 3:34 am

hmm question looks very familiar, search for "repair hammer" got this
or another thread is here
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

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 1 guest