cs007
New Member
- Joined
- Dec 2, 2010
- Messages
- 71
- Reaction score
- 2
grep -rnw '/path/to/server' -e 'You may not cast'
Binary file /home/global/theotxserver matches the defaultIf you are on a unix machine, you can do;
Bash:grep -rnw '/path/to/server' -e 'You may not cast'
Edit: Neither TFS nor OTX has this behaviour on their (current) repo's
If you only have the binary, this won't be possible.
I have found this exact line in a TFS 0.4 r3884, it's defined under "RET_YOUMAYNOTCASTAREAONBLACKSKULL".
Another grep through the 0.4 sources tell me it's used all over the spells.cpp.
if(g_config.getBool(ConfigManager::USE_BLACK_SKULL))
{
if(player->getSkull() == SKULL_BLACK && isAggressive && range == -1) // CHECKME: -1 is (usually?) an area spell
{
player->sendCancelMessage(RET_YOUMAYNOTCASTAREAONBLACKSKULL);
g_game.addMagicEffect(player->getPosition(), MAGIC_EFFECT_POFF);
return false;
}
}
You can try to remove the parts of the code (instead of config.lua), it's not very hard.Yes, but it has no effect.