tylerdurden
New Member
- Joined
- Jan 10, 2022
- Messages
- 17
- Reaction score
- 1
Steps to reproduce (include any configuration/script required to reproduce)
- Place a mana fluid in map editor on the ground
- Login to the game and type "/i ultimate healing rune" and place it near the mana fluid
- Stand at least 2 squares from both mana fluid and ultimate healing rune
- Try to use it on yourself from the distance
Expected behaviour
The mana fluid or ultimate healing rune should be used on yourself. The mana fluid should be poured on the floor when player is not a targetActual behaviour
The mana fluid is being poured on the floor and ultimate healing rune returns cancel message "You can only use it on creatures".Link to github:
Some fluids and runes, being used while approaching, work in a wrong way · Issue #3892 · otland/forgottenserver
This is a bug in the software that resides in this repository, and not a support matter (use https://otland.net/forums/support.16/ for support) This issue is reproducible without changes to the C++...
github.com
Hello, anybody knows how to fix this issue in the newest tfs? I run 7.4 server and I really need this to be done.
I think it needs to be done in source, because checking in lua (if the action is from the distance)
Lua:
function onUse(player, item, fromPosition, target, toPosition, isHotkey
if target.itemid == 1 then
if target.uid == player.uid then
For runes i tried to check this one in spells.cpp but crashes the server without any message:
C++:
bool Spell::playerRuneSpellCheck(Player* player, const Position& toPos)
{
const Creature* topVisibleCreature = tile->getBottomVisibleCreature(player);
const Player* targetPlayer = topVisibleCreature->getPlayer();
if (targetPlayer && targetPlayer == player) {
return true;
}
}
Last edited: