asking for scripting help once again

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
kanta
Posts: 424
Joined: Thu Nov 11, 2010 4:08 pm

asking for scripting help once again

#1 Post by kanta »

I'm sure everyone is getting tired of me by now.... But I'm trying, really I am.... I've been trying to figure something out for the last 7 hours. Not wanting to ask for help but I'm at the point of ripping my hair out. I'm sure the solution isn't difficult but I can't find any info anywhere on how to do this...

In Origin, while fighting Life Leecher he spawns Dark Blood Bug which blow up and kill you. You have to switch targeting from LL to the Bug and kill it before it gets to you. When the bug spawns it is off to the side so when I try to use findtarget it is just far enough out of sight that it doesn't get targeted. target_NPC sometimes works but that makes my character run toward the bug which is the last thing I want to do.

Please, someone give me an idea what I need to do....

Meanwhile, I'll keep trying to figure something out
Scout/Knight/Rogue 70/66/66
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: asking for scripting help once again

#2 Post by rock5 »

findTarget is a bit obsolete. What I would do is search for the bug after each skill use and change target if found.

Code: Select all

bug = player:findNearestNameOrId("Dark Blood Bug")
if bug then 
    player:target(bug)
    player:update()
end
I'm not sure what will happen if you change target in the middle of battle but it's worth a try.
  • 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
kanta
Posts: 424
Joined: Thu Nov 11, 2010 4:08 pm

Re: asking for scripting help once again

#3 Post by kanta »

Thanks Rock.
Scout/Knight/Rogue 70/66/66
Post Reply