lukatxd
Active Member
- Joined
- Dec 9, 2010
- Messages
- 85
- Solutions
- 1
- Reaction score
- 39
I'm using the TFS 1.3 downgraded by Nekiro to work on Tibia 8.6. This is what happens when I try to use potions:
I can see the doTargetCombatMana in this file in the sources (original TFS, not the one I'm actually using)
In the downgraded version I can't find any of these functions
Plus, I'm also testing an item stat upgrade system, that invokes creature:getMana() which also happens to end in a 'nil value' and if any item has a mana drain attribute, the player owning the item can't even attack. What can I do to resolve this?
Code:
Lua Script Error: [Action Interface]
data/actions/scripts/other/potions.lua:onUse
data/actions/scripts/other/potions.lua:56: attempt to call global 'doTargetCombatHealth' (a nil value)
stack traceback:
[C]: in function 'doTargetCombatHealth'
data/actions/scripts/other/potions.lua:56: in function <data/actions/scripts/other/potions.lua:35>
Code:
Lua Script Error: [Action Interface]
data/actions/scripts/other/potions.lua:onUse
data/actions/scripts/other/potions.lua:56: attempt to call global 'doTargetCombatHealth' (a nil value)
stack traceback:
[C]: in function 'doTargetCombatHealth'
data/actions/scripts/other/potions.lua:56: in function <data/actions/scripts/other/potions.lua:35>
I can see the doTargetCombatMana in this file in the sources (original TFS, not the one I'm actually using)
forgottenserver/data/lib/compat/compat.lua at 4f5f0fb0837ae3ad814ae00a2ac751164cb4adc1 · otland/forgottenserver
A free and open-source MMORPG server emulator written in C++ - otland/forgottenserver
github.com
In the downgraded version I can't find any of these functions
Build software better, together
GitHub is where people build software. More than 100 million people use GitHub to discover, fork, and contribute to over 420 million projects.
github.com
Plus, I'm also testing an item stat upgrade system, that invokes creature:getMana() which also happens to end in a 'nil value' and if any item has a mana drain attribute, the player owning the item can't even attack. What can I do to resolve this?