Problem with new target_Object function

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
Andreas_B
Posts: 40
Joined: Fri Oct 22, 2010 6:46 pm

Problem with new target_Object function

#1 Post by Andreas_B »

In the older version I got immediately the control back from the function. For instance I could check the color of the castbar and retry if it becames red (error or in use) or green (success). With the new version I can't check the color, because the function release the control only when the castbar isn't visible anymore. Therefore the older version works more quickly for me.
Please integrate a color-check ore integrate a parameter to get the old behavior.

The following code I use to check the castbar:

Code: Select all

    local visible = nil;
    repeat 
        visible = RoMScript("CastingBarFrame:IsVisible()");
        yrest(100); 
    until visible;
    if visible then
        repeat 
            visible = RoMScript("CastingBarFrame:IsVisible()"); 
            red, green, blue = RoMScript("CastingBarFrame:GetBarColor()");
            -- canceled? 
            if (red == 1) then visible = false; end;
            -- accomplished?
            if (green == 1) then visible = false; end;
            yrest(100); 
        until visible == false;
    end;
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Problem with new target_Object function

#2 Post by rock5 »

Hey, great idea. Maybe I can find memory pointers for the color of the cast bar and integrate that behavior in rombot. It will have to be tomorrow though.
  • 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
Post Reply