Is there a way to make an own evalTarget function and use it to the normal fight system instead of evalTargetDefault? If I try to rewrite it in the player class the bot stop working.
Thx in advance
evalTarget
Re: evalTarget
So you are not talking about using your own evalfunc when using player:fight() yourself, you are talking about using your own evalfunc when the bot is running around and auto targeting mobs, right?
I think the easiest way would be to start with the evaltargetDefault function and just edit it to do the checks you want.
I think the easiest way would be to start with the evaltargetDefault function and just edit it to do the checks you want.
- 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
- Administrator
- Site Admin
- Posts: 5353
- Joined: Sat Jan 05, 2008 4:21 pm
Re: evalTarget
You could just write your eval function in a userfunction script, and set evalTargetDefault to your new function. Basically, just hook it.
Code: Select all
local originalEval = evalTargetDefault;
evalTargetDefault = function(address)
-- stuff here
end
-
WhiteTiger
- Posts: 84
- Joined: Tue Jun 22, 2010 8:06 am
Re: evalTarget
thx
, forgot that u could overwrite functions in userfuctions