-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
second part of 5abc8c5 ranged monsters will change target correctly now (always picking the closest one), also all monsters have correct chance to change target and strategies as they work in real tibia, they can pick the nearest target, the one with the lowest % health, the one that did the most damage and also a random one. updated othire_win32.exe to latest changes
- Loading branch information
There are no files selected for viewing
16 comments
on commit 8e56757
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@peonso This commit failed to compile
https://travis-ci.org/TwistedScorpio/OTHire/builds/156956307 =(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can compile it with MSVC 2010, can you help me to fix this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll try to fix it here and I talk to you
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Compare the original file with my below changes:
Monster.cpp
http://paste.ubuntu.com/23122202/ (I don't know what I'm doing, I'm newbie in C++) 👍
You can use this site to compare: https://www.diffchecker.com/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which item id?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@peonso ID: 1386 a ladder
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gonna try to track this, I don't think it's related at all with this commit. I committed your changes, compiled here fine, seems to be working as intended.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fix it!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
òn RL the can pick any player, not the nearest.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kito2 Says who?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@peonso I have been playing a lot the last 2 years and leveled manually from 0 to 470. I know how it exact works.
For example:
- Sometimes hunting on deeper banuta with some friends when I was around 150-18. Mages used to stand over energybombs. Paladin used to lure and run around the knight, while the knight was surrounded of 8 creatures. Sometimes ALL monsters over there had a retarget which wasn't based on the nearest player (which would be the paladin), it happened sometimes that they retargeted the mages (while there were attacking the paladin or the knight).
- Same happening on roshamuul prison.
- Same happening on catacombs.
The only difference is about SOME monsters has a lot of chance of retarget.
The only ones with an artificial intelligence based on statistics or formula are bosses.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't get me wrong dude, saw a lot of people claiming things about mechanics this whole years I've being messing around with replicating correct Tibia ones, backing up their claims with their memory/experience, just to be contradicted by some fact check, myself included. Unless you give me some resource to actual check what would be wrong here or the correct behavior is, I will just think you are mistaken. This lines of code are based on decompiled version of 7.7 leaked files. What you described don't even contradict the code present here, even imply you actually don't understood it and sounded vague.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure your target search selecting is correct ? for example if you have lowest hp 60% and most dmg 60% it will always pick only lowest hp strategy.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gunzino
Total should be 100, if you set one to 60 and the other to 60 the code is not prepared for the 120% chance and will stick to the last picked strategy before the sum goes over 100.
this line should never be changed