• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Monster Change Target

scalper

New Member
Joined
Oct 12, 2008
Messages
10
Reaction score
0
Hello Guys

Anyone know how to turn a monster into another person when passing in front of him, as in rl tibia?
where do I edit it?
I'm using TFS 10.10


Thanks all = D
 
If you want to create that sort if behavior you are likely going to have to edit the source. That XML line has nothing to do, it only dictates how fast the monster retargets.
 
ctrl+f -> bool Monster::searchTarget
I tried to change and is now giving error at compile time: (
the truth is i do not know if I did the correct change.
if you can give some tips, I thank you.
I am new in this area of OTServer, then I'm learning :)
Thank you again.
 
I wanna know what i need to modify in that code, to make the monster begin to change their target when someone lure it at the person.
Now that u told what i need to have to make it, i dont know what i need to change to make it work :x
For example: what i need to change, which part, what code needs to be changed... these kind of things :S

Can u help me please? i could send u my monster.cpp if u want to

Thx anyway
Can you exactly explain your problem?
 
I wanna know what i need to modify in that code, to make the monster begin to change their target when someone lure it at the person.
Now that u told what i need to have to make it, i dont know what i need to change to make it work :x
For example: what i need to change, which part, what code needs to be changed... these kind of things :S

Can u help me please? i could send u my monster.cpp if u want to

Thx anyway

ctrl+f --> Monster::eek:nThinkTarget
and replace this part:
Code:
    if(mType->targetDistance <= 1)
        searchTarget(TARGETSEARCH_RANDOM);
    else
        searchTarget(TARGETSEARCH_NEAREST);
by this:
Code:
        searchTarget(TARGETSEARCH_ATTACKRANGE);

TARGETSEARCH_ATTACKRANGE = "flag targetdistance" in each monster.xml files
 
Back
Top