According to Tibia, the limit of characters in the player's name is 29. If you try to cast exiva on names longer than 20 characters in TFS 1.x it simply doesn't work or tells you player isn't online. This quick workaround fixed it and it might be useful for those who allow players to have long character names. Dunno if there's repercussions on changing those default values, but tests have gone all fine.
sources/game.cpp
Change
For
sources/spells.cpp
Change
For
sources/game.cpp
Change
Code:
if (strlen == 0 || strlen > 20) {
Code:
if (strlen == 0 || strlen > 29) {
sources/spells.cpp
Change
Code:
Player* playerExiva = g_game.getPlayerByName(param);
Code:
Player* playerExiva = nullptr;
g_game.getPlayerByNameWildcard(param, playerExiva);