partydps autotargeting

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
paddo
Posts: 2
Joined: Mon Apr 23, 2012 12:50 pm

partydps autotargeting

#1 Post by paddo »

Hi there,

I´m new to this forum but am using micromacro since i started with rom :D
I found very nice functions here and created many waypoints, scripts eg.

But now I´m working on a auto targeting function for partydps since last weekend but hell... i can´t figure out how to get it work.

The script itself is really nice, but i´m missing the auto targeting function for targeting mobs arround the character for like a range of 100, but with the Icon I as primary target function, too...

Could someone do me the favor?

Thanks from paddo a fuckin garman nazi...
hope english my unterstandable is
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: partydps autotargeting

#2 Post by lisa »

If you want to only attack mobs with icon I then just use partydps.xml as the WP file.

If you want the bot to use normal target evaluation but also to add in icon I as priority then you will need to write your own eval target function.

Have a look at rom/classes/party.lua and maybe it will help guide you to what you want.
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
paddo
Posts: 2
Joined: Mon Apr 23, 2012 12:50 pm

Re: partydps autotargeting

#3 Post by paddo »

Thanks for your reply,

but i should start first with the auto targeting function but it doesn´t work.
--=== Find mobs in range of XXX(profile setting) and kill them ===--
player:target(player:findEnemy(true, nil, evalTargetDefault, player.IgnoreTarget))
if player:haveTarget() then
player:fight();
end
when the bot is following my main char he still isn´t killing anything by himself, but mobs attacking him.

I really spent a lot of time but still not getting it...

Could you help me here a little bit?
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: partydps autotargeting

#4 Post by lisa »

Did you look in party.lua ??

Showing me that snippet of code really doesn't help, need the entire WP file to work out your issue.

I can tell you that your code only checks for enemies when you are in combat

Code: Select all

CPlayer:findEnemy(aggroOnly, _id, evalFunc, ignore)
you have first argument as true which is aggroonly
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