Hello
I have a problem with potions in my server. It seems that there is a 2sec CD between using them. I manage to solve the problem by editing this line in my potions.lua:
to this
But why do i have to do that? In my config.lua i have these lines:
If i'm setting to 1ms why it takes 2sec? I know how long it is taking because i added this code:
just after this line:
So it prints on the console the time it used the potion.
Datapack: Lastest from https://otland.net/threads/10-77-tfs-1-2-orts-a-real-map-project.204514/
Distro: Lastest TFS from https://github.com/otland/forgottenserver/ compiled on my own machine using Windows 8.1.
As i said i manage to solve the problem but i wanna know why was that needed and if it can have any other unwanted effects.
PS: I want this to be as close as possible to rl tibia.
Thanks!
I have a problem with potions in my server. It seems that there is a 2sec CD between using them. I manage to solve the problem by editing this line in my potions.lua:
Code:
exhaust:setParameter(CONDITION_PARAM_TICKS, (configManager.getNumber(configKeys.EX_ACTIONS_DELAY_INTERVAL) - 100))
Code:
exhaust:setParameter(CONDITION_PARAM_TICKS, (configManager.getNumber(configKeys.EX_ACTIONS_DELAY_INTERVAL) - 1000))
Code:
timeBetweenActions = 200
timeBetweenExActions = 1000
Code:
print(os.date("%c"))
Code:
doCreatureSayWithRadius(target, 'Aaaah...', TALKTYPE_MONSTER_SAY, 2, 2)
Datapack: Lastest from https://otland.net/threads/10-77-tfs-1-2-orts-a-real-map-project.204514/
Distro: Lastest TFS from https://github.com/otland/forgottenserver/ compiled on my own machine using Windows 8.1.
As i said i manage to solve the problem but i wanna know why was that needed and if it can have any other unwanted effects.
PS: I want this to be as close as possible to rl tibia.
Thanks!