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

C++ Removing exhaust on certian items only

Yuggi

Member
Joined
May 18, 2017
Messages
64
Reaction score
10
Hello, right now in my server using TFS 1.2 the exhaustion works like this:

whenever you use an item it triggers the exhaust "timeBetweenExActions = 1000" in config.lua, so I want to fix that certain items do not trigger this exhaust at all.

This means that I cannot use runes and potions at the same time. And I want to be able to do that.

I think the best way would be for me to manually add the IDs of the runes into the source that I want don't want to be affected by timeBetweenExActions. I think this is the part that I need to adjust
forgottenserver/actions.cpp at 7acfab77d19720585ec4329e11e05f058a8aa34b · otland/forgottenserver · GitHub

Let's say I want the ITEM ids 2268 and 2270 to ignore timeBetweenExActions completely, how would I go about adding that into the source?
 
Back
Top