Page 1 of 1

partydps autotargeting

Posted: Mon Apr 23, 2012 1:05 pm
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

Re: partydps autotargeting

Posted: Mon Apr 23, 2012 7:20 pm
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.

Re: partydps autotargeting

Posted: Tue Apr 24, 2012 11:05 am
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?

Re: partydps autotargeting

Posted: Tue Apr 24, 2012 8:39 pm
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