New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Data/XML/Groups.xml/Flags dont work #2790
Comments
yes it works, I've just tested
|
example: I set |
yes I tested it well, also make sure that you are using default TFS groups.xml (that is the one that I'm using), since you seem to be using an edited one that god group id is 4, so your group_id in your database should be 4 instead of 3, next time reporting a bug, try to reproduce it with vanilla TFS, |
I has vanilla TFS. My bad. I tested with one. |
so, bug solved? xD |
@EmperorEduardo was you able to understand? if you think this is not a but, you could close this issue |
All 3 checks out as FALSE, as they should if you want your GM to practically be an invincible player. Which means that there is obviously something wrong when I can't attack players but I can attack monsters with these settings. Don't close it since it's still an issue. |
Now it's SOLVED combat.cpp bool Combat::isProtected(const Player* attacker, const Player* target)
{
uint32_t protectionLevel = g_config.getNumber(ConfigManager::PROTECTION_LEVEL);
if (target->getLevel() < protectionLevel || attacker->getLevel() < protectionLevel) {
return true;
}
//if (attacker->getVocationId() == VOCATION_NONE || target->getVocationId() == VOCATION_NONE) {
//return true;
//}
if (attacker->getSkull() == SKULL_BLACK && attacker->getSkullClient(target) == SKULL_NONE) {
return true;
}
return false;
} Switch out the old one with this in the sources please so we can bury this 5+ year old problem once and for all. |
If you make any changes this it doesn't work.
<flag cannotusecombat="1" />
The text was updated successfully, but these errors were encountered: