flaviiojr
Active Member
- Joined
- Jan 20, 2017
- Messages
- 230
- Solutions
- 13
- Reaction score
- 39
Shows these errors in distro tfs 1.2, saying that it is not declared, I tried to solve it, but I still have the same problem.
These functions were taken from distro tfs 1.0, how to update these functions?
Thank you, I appreciate all the help.
Lines where errors are located:
BUMP
BUMP
BUMP
1>..\src\tile.cpp(539): error C2039: 'Harmful': is not a member of 'MagicField'
1> c:\users\flavio buarque\desktop\otxserver-testing-master\src\combat.h(329): note: see declaration of 'MagicField'
1>..\src\tile.cpp(544): error C2039: 'IgnoreFields': is not a member of 'Monster'
1> c:\users\flavio buarque\desktop\otxserver-testing-master\src\monster.h(40): note: see declaration of 'Monster'
1>..\src\tile.cpp(545): error C2039: 'hasAttacked': is not a member of 'Monster'
1> c:\users\flavio buarque\desktop\otxserver-testing-master\src\monster.h(40): note: see declaration of 'Monster'
These functions were taken from distro tfs 1.0, how to update these functions?
Thank you, I appreciate all the help.
Lines where errors are located:
C++:
MagicField* field = getFieldItem();
if (field && !field->isBlocking() && field->IsHarmful()) {
CombatType_t combatType = field->getCombatType();
//There is 3 options for a monster to enter a magic field
//1) Monster is immune
if (!monster->isImmune(combatType) && !monster->canIgnoreField() &&
!monster->canWalkthrough(combatType) && !monster->IsAttacked() && !monster->isSummon()) {
BUMP
BUMP
BUMP
Last edited by a moderator: