• 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!

TFS 1.2 C++ code logic help.

Shrouded

New Member
Joined
Sep 26, 2015
Messages
6
Reaction score
0
Hi guys i 've edited a few lines in c++ TFS 1.2 downgrade to 8.6 by ninja. There are no errors, but the things i wanted to implement don't really work. So it made me think that what i thought would work is illogical and my way of implementing a certain system is bad due to 1)misunderstanding c++, 2)misunderstanding TFS 1.2 structure, 3) maybe some TYPO or little mistake. IF anyone is interested in reading the code and changes i would like to send him a private message. It will be too messy to spam in this thead. Thanks everyone :).
 
Last edited:
https://www.diffchecker.com/pgtrx8yq SPELLS.CPP
https://www.diffchecker.com/bkjmofut Player.cpp line 2127 only here
https://www.diffchecker.com/3hln5dzb player.h line 613, only declaration of player.cpp function
https://www.diffchecker.com/nm40muyh condition.cpp line 204
https://www.diffchecker.com/iyhj3eik enums.h line 253
https://www.diffchecker.com/5lmxgdvc luascript.cpp line 1127
https://www.diffchecker.com/1jovizwq player.cpp line 2127
in player.h added void addSupportExhaust(uint32_t ticks);

The way i imagined it works is :
I put in spells.xml support = "1" to a certain spell, which turns support into true and function postCastSpell will add third kind of exhaust. Meaning i can still use healing spell and different offensive spells. So i could use 3 spells instantaneously. Somehow i still can't use offensive and support spell at the same time.
 
Back
Top