Page 1 of 1
Ignoring target
Posted: Sat Mar 06, 2010 7:26 pm
by muffins89
Anyone know where the settings for ignoring mob after a couple of tries attacking a mob?
I would like to change it to 2 seconds...
its now on 10.
Couldnt find it on the files. =)
Appricate the help!
Re: Ignoring target
Posted: Sat Mar 06, 2010 9:02 pm
by Administrator
The MAX_FIGHT_TIME profile option will make you drop the target if you're unable to hit him within the given time in seconds.
Re: Ignoring target
Posted: Sat Mar 06, 2010 9:30 pm
by muffins89
Thanks for reply.
I understand that part.
Just want the ignoring part after that to be shortend to 2 secounds.
Else its a big possiblity that he walks by mobs and my party memeber gets aggro.
=)
Re: Ignoring target
Posted: Sat Mar 06, 2010 11:45 pm
by Administrator
That's a problem due to aggro detection. It's a problem with how the game was made (not sure why
you enter combat just because someone in your party attacked or was attacked by something). You could turn off aggro detection, but then you'd have all sorts of other problems.
Open rom/classes/player.lua, search for this:
Code: Select all
self.Battling = debugAssert(memoryReadBytePtr(getProc(), addresses.staticbase_char,
addresses.charBattle_offset), language[41]) == 1;
Change to:
Re: Ignoring target
Posted: Sun Mar 07, 2010 8:43 am
by muffins89
What i mean is,
Sometimes when u do ranged, it cant see target. Then it waits.
Thats okay its 15 sec normal there.
But after that it goes into ingoring mode for 10 secounds.
So even if it sees a mob it ignores it untill the mob fights back.
Re: Ignoring target
Posted: Sun Mar 07, 2010 9:16 am
by Administrator
Just keep track of the time you left combat (store os.time() into a variable at the end of CPlayer:fight()), and check if it's been at least x seconds since the last fight before entering combat again.