[HELP] Monster Range

04/11/2021 19:22 bhengot#1
Is there anyone have Experience same issue?

If ranger Attack the Boss . the boss not attacking !
[Only registered and activated users can see links. Click Here To Register...]
I think the problem is from the range . but i dont think so where i can find that.

Can someone please help me or give me some idea where i can fix it!

Thankyou so much!
04/12/2021 11:00 Knusper02#2
Hello, I havent tried this code myself but maybe it can fix your problem.
In MoverActEvent.cpp
Change this line:
Code:
if( IsNPC() && pHitObj->IsPlayer() && pHitObj->IsRangeObj( this, 10.0f ) == FALSE )
to this:
Code:
float fRange = 10.0f;
if( IsRank(RANK_BOSS) || IsRank(RANK_MIDBOSS) || IsRank(RANK_SUPER) )
	fRange = 120.0f;
if( IsNPC() && pHitObj->IsPlayer() && !pHitObj->IsRangeObj(this, fRange) )
04/13/2021 10:40 Tamus#3
fRange = 120.0f; ? range?
default is
float fRange = 10.0f;
04/13/2021 11:10 Knusper02#4
yes. It increases the range of boss monsters only to 120.0f. But I would like to hear from the thread creator if I have helped him.