Trouble with repair path loading

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
roflmaoromgold
Posts: 2
Joined: Sun Aug 29, 2010 3:41 pm

Trouble with repair path loading

#1 Post by roflmaoromgold »

Since this is my first post I would like to start by saying thank you to the programmers here for helping us noobs. You guys and gals really are a great bunch.

Now on to my issue. I am completely retarded when it comes to programming. I have tried to use the following waypoint code from rock5 to get my bot to repair.

Code: Select all

local dura = inventory:getMainHandDurability();
   printf("Durability:%s\n", dura);
   if( dura < 0.9 ) then
      loadPaths("your_repair_path.xml");
   end
The bot checks the durability and then moves on without loading the repair path. The low dura is properly returned in the MM window and I am receiving no other errors.

I have added the code between the <waypoint x= y=> CODE HERE </waypoint> in my Main waypoint file and have edited the "your_repair_path.xml" to "49-50-DDC/49-50-DDC.xml" .

Is there a function I need to add into my profile? If not then what should I do differently? All of my gear is under 50% dura and still nothing happens.

Thank you in advance.
User avatar
MiesterMan
Posts: 543
Joined: Tue Jul 06, 2010 9:15 pm
Location: Between the Second and Third Circles of Hell

Re: Trouble with repair path loading

#2 Post by MiesterMan »

Could you copy and paste what you see in micromacro window?
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Trouble with repair path loading

#3 Post by rock5 »

I believe getMainHandDurability now returns a value between 0 and 100 so try,

Code: Select all

   if( dura < 90 ) then
  • 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
roflmaoromgold
Posts: 2
Joined: Sun Aug 29, 2010 3:41 pm

Re: Trouble with repair path loading

#4 Post by roflmaoromgold »

Rock5's suggestion worked perfectly, thank you.
Post Reply