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

TFS 0.X TFS 0.4_SNV (r0ev 3996) How FIX Excesive Exhaust Problems

Joined
Jun 25, 2018
Messages
50
Reaction score
9
Hi community, i came here because can't found a solution for this Problem.
Im using the TFS 0.4_SNV rev 3996 with various fix and improvements at date

Problem Description:
The player can't stand using POTIONS and Trying shoot a magic wall at same time, doing that at same then happen that Player can't use any pots or magic wall because the exhaustion are same for both items (pots and runes)
The player can't stand using POTIONS and Trying shoot a magic wall at same time + trying move on item FROM Backpack or floor or equip items smoothly because the exhaustion are SAME this tree "actions"

I have played OT like, kaldrox, and similar 8.60 and i can do all this actions with elfbot or manually with not exhaustion problem (I think they have a "group exhaustion for each action")

Like that (idk):
exhaustion for Potions ( i think timeBetweenExActions = 1000 already exist normally)
exhaustion for ItemsUsage (maybe need to be created or edit some in sources for reduce the exhaustion with others actions)
exhaustion for Runes (maybe need to be created or edit some in sources for reduce the exhaustion with others actions)


I'm have trying all in the Config.lua edit these values below with not success, if i put timeBetweenExActions = 100 i can use potions very very faster but when trying shoot a magi wall or use/move any item the "Exhaustion" is applied and i can't do more actions at same time.

LUA:
My Config.lua has:

    -- Item usage
    timeBetweenActions = 500
    timeBetweenExActions = 1000
    timeBetweenCustomActions = 500


I also trying with this POST : TFS 0.3 - 0.3.7-r5969-v8.60 - exhaust system (https://otland.net/threads/tfs-0-3-0-3-7-r5969-v8-60-exhaust-system.252851/)


And i see this error in this Post : Compiling - Moveitem exhaust (https://otland.net/threads/moveitem-exhaust.235919/)



Thanks for take time read my Post.
NOTE: Soorry my bad english
 
I analyzed the FeTads OTX implementation. The fix is not only CONDITION_EXHAUST; the real solution is separating action exhausts by subId. Potions use EXHAUST_POTION, normal item use uses EXHAUST_USEITEM, and machete uses EXHAUST_MACHETE. This prevents potions/runes from locking the global nextAction used by item movement. I ported the same idea to my TFS 1.8 and it works perfectly with ElfBot: players can run, use potions/runes and push items much more smoothly.


You don’t need to port everything manually.

Just put the TFS 3996 folder and the OTX folder in the same directory. Then open it with Codex, Cursor, Copilot, or any code AI you use, and ask the AI to analyze the OTX source and port/adapt that system to your TFS 33996.

The idea is simple: the AI will compare both sources, find where OTX separated the action exhausts, and adapt it to your code.

After that, recompile. If you get any error, copy the full terminal error and send it back to the AI so it can fix the exact place that failed. Then recompile again, test in-game, and also test with ElfBot.

If it still does not fully solve the issue, ask the AI to search for other action locks in the source, such as canDoAction, setNextAction, setNextActionTask, nextAction, global exhaust, etc. There is probably another place still blocking potions, runes, push, or item movement. Then separate each action until everything is complete.

That is how I did it on my TFS 1.8: I sent a lot of OTX code to the AI, asked it to compare and port it to my TFS, then I kept recompiling, fixing error by error, and testing in-game until it was ready.
 
Last edited:
Back
Top